• Priority: 0
  • Status: Closed
  • Theme: Alysum
  • Assigned To: Fred
  • Private: No
  • Open Date: 20.04.20, 10:38
  • Opened by: Pianeta Affari
  • Closed by: Anonymous Submitter
  • Closed on:
  • Reason: Not a bug

Ticket #17422 - Filter not working on amp version

Hello,
We noticed that on amp version the filter on category pages is not working properly. If i select an option and click ‘Apply’ (also where is it the translation of that part??) the list of products not changes at all
We have the 5.4.0 version of the theme and as i can read from the changelog this issue it’s supposed to be fixed in the 5.3.9

Comments

Fred 20 Apr 2020, 12:42

I have updated AMP to the latest version, now it should work

Pianeta Affari 20 Apr 2020, 12:50

Is still not working sorry

Fred 20 Apr 2020, 13:00

I need access to your back office

Pianeta Affari 20 Apr 2020, 16:28

ok you can access now, sorry

Fred 21 Apr 2020, 12:45

I’m not able to edit modules settings https://take.ms/FgA1p

Pianeta Affari 21 Apr 2020, 13:03

oh sorry again i’ve fixed now

Fred 21 Apr 2020, 13:18

it seems works now https://take.ms/gdgmk

Pianeta Affari 22 Apr 2020, 12:13

Yes ok the category filter is working but not the attrubute filtering, if you go on https://www.pianetaffari.it/it/mobile/category/7-pavimenti-e-rivestimenti and choose any effect filter wou will see the problem

Fred 22 Apr 2020, 16:50

seems the problem with Radio buttons, I have switched to Checkboxes and now filter works for me https://take.ms/jT3iq

Pianeta Affari 23 Apr 2020, 11:19

Yes now the list is changing, but the results doesn’t match the desktop version
You can check this by serching for EFFETTOMuretto or Legno At some point the list on mobile shows some product with no attribute or even with total different attribute

Fred 25 Apr 2020, 13:19

That is just a question of sorting, if you select the same sorting on mobile and desktop https://take.ms/PAXtE you will have the same result

Pianeta Affari 27 Apr 2020, 11:00

The sort wans’t the same yes, i didn’t notice that, but on both desktop and mobile sorting for Rilevanza (relevance) and filtering by EFFETTOLegno, on mobile after 12 result (that is exactly the ‘Product Number Per Page’ in ‘Category Page’ on amp settings) the list shows me other products with total different attribute, you can check it easly,
It seems that after the first 12 result (or whatever you set in ‘Product Number Per Page’ setting) the filter get lost on pagination

Update: I checked the xhr request on load more button and the requested url is without filters

Fred 27 Apr 2020, 13:15

Ok, I see. We need a bit more time to figure out what’s wrong

Pianeta Affari 29 Apr 2020, 09:51

ETA?

Fred 29 Apr 2020, 10:16

Hope to find a solution today, but can’t say for sure

Fred 01 May 2020, 15:03

Hi, Pianeta Affari.
I have tested this category https://take.ms/GRHwk and a first “Marca” - “BAMPI”. Now if there are no more product you will see the button “NIENTE PIÙ PRODOTTI”

Please test it out

Pianeta Affari 04 May 2020, 16:55

I see the button but now when filtering i can see only 12 product even if there si more why?

Fred 05 May 2020, 15:36

Yes, my fault, sorry, I didn’t check that. Keep working to find a solution. The problem here is that there is no certain way to detect the end of product list.

Fred 08 May 2020, 20:21

Could you please disable Opcache for a while https://www.pianetaffari.it/phpinfo.php

Pianeta Affari 11 May 2020, 10:04

Ok, done
Tell me when i can enable it again

Fred 12 May 2020, 14:22

please test it out now

Pianeta Affari 12 May 2020, 15:02

I checked and again after 12 products, the load more button shows products with different attribute
I tested (both Desktop and mobile) with:
Category: Pavimenti e rivestimenti Filter: EFFETTOCementine Order by: Rilevanza

Fred 12 May 2020, 15:12

it’s a terrible issue. working on a solution…

Pianeta Affari 13 May 2020, 09:42

Hope you find a solution, i’updated the theme to 5.5.0 meantime

Fred 13 May 2020, 09:42

In progress…

Fred 13 May 2020, 20:41

spent several hours today with no success, I’ll back tomorrow

Pianeta Affari 14 May 2020, 09:46

Ok and thank you a lot, really
But for know can you please look at the AMP checkout ticket issue that i opened yesterday? It’s more urgent, beacuse customers are having issue with this

Pianeta Affari 18 May 2020, 10:11

Ok i think we can resume this, but i found that in the ajax pk_amp/controllers/front/ajaxFilter.php had several code error (now i’ve fixed) this caused to not load product list in the category page, keep in mind that this is a production site and this type of error are money loss

Fred 18 May 2020, 10:14

What was the errors?

Pianeta Affari 18 May 2020, 10:29

In every

'sortOrder' => $params['sortOrder']['comp']

the ‘>’ was missing

Pianeta Affari 19 May 2020, 10:26

any news?

Fred 19 May 2020, 10:38

Not yet. Seems something was changed in prestashop code since we start to develop AMP, and now I’m looking the difference. Didn’t think it will take so much time.

Fred 19 May 2020, 18:17

Do you have enabled Opcache? I want to apply some changes in code what I made locally

Pianeta Affari 20 May 2020, 14:58

disabled now, you can go now

Fred 20 May 2020, 18:04

keep working on that…

Fred 20 May 2020, 23:50

Back to you tomorrow…

Pianeta Affari 21 May 2020, 09:44

Maybe i was not clear last time, if you make same changes and you need debug mode once you have done you have to disable it. Our client was comlpaining this morning
because they weren’t able to buy because of the debug mode screaming for errors. PLEASE DISABLE DEBUG WHEN YOU ARE DONE

Fred 21 May 2020, 09:45

I’m sorry, my fault.

Pianeta Affari 26 May 2020, 10:21

Any luck?

Fred 26 May 2020, 13:49

I’ll back to the issue today, sorry for the delay

Fred 28 May 2020, 00:08

Sorry for a long waiting. Hope to have a bit time tomorrow, today we had about 100 tickets what is a huge load for support. we are working 14 hours per day

Fred 22 Jul 2020, 13:58

Hi.
I will not ask to sorry more, it just has no sense now. I just say we really can’t find a solution.
I have a couple ideas and I need to check that on your store because you have configured it in “properly” way when the issue appears.

Fred 22 Jul 2020, 13:59

I have extended your support for couple days more