- 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
I have updated AMP to the latest version, now it should work
Is still not working sorry
I need access to your back office
ok you can access now, sorry
I’m not able to edit modules settings https://take.ms/FgA1p
oh sorry again i’ve fixed now
it seems works now https://take.ms/gdgmk
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
seems the problem with Radio buttons, I have switched to Checkboxes and now filter works for me https://take.ms/jT3iq
Yes now the list is changing, but the results doesn’t match the desktop version
You can check this by serching for EFFETTO → Muretto or Legno At some point the list on mobile shows some product with no attribute or even with total different attribute
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
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 EFFETTO → Legno, 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
Ok, I see. We need a bit more time to figure out what’s wrong
ETA?
Hope to find a solution today, but can’t say for sure
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
I see the button but now when filtering i can see only 12 product even if there si more why?
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.
Could you please disable Opcache for a while https://www.pianetaffari.it/phpinfo.php
Ok, done
Tell me when i can enable it again
please test it out now
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: EFFETTO → Cementine Order by: Rilevanza
it’s a terrible issue. working on a solution…
Hope you find a solution, i’updated the theme to 5.5.0 meantime
In progress…
spent several hours today with no success, I’ll back tomorrow
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
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
What was the errors?
In every
the ‘>’ was missing
any news?
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.
Do you have enabled Opcache? I want to apply some changes in code what I made locally
disabled now, you can go now
keep working on that…
Back to you tomorrow…
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
I’m sorry, my fault.
Any luck?
I’ll back to the issue today, sorry for the delay
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
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.
I have extended your support for couple days more