- Priority: 0
- Status: Closed
- Theme: Alysum
-
Assigned To:
Fred
- Private: No
- Open Date: 21.06.21, 14:15
- Opened by: So So
- Closed by: Anonymous Submitter
- Closed on:
- Reason: Not a bug
Ticket #21780 - AMP Product page not reloading on attributes selection
Hello,
The behaviour of the product page is different between desktop and mobile.
On desktop : attributes selection reload the page to display the same pictures.
On mobile : stays on the same page whatever is selection you make.
Can please advise
Thanks in adance
Comments
Can I upgrade AMP module to the latest version?
Hello Fred, of course be my guest!
Now the image is updated after changing an attribute https://take.ms/ylRkq
Hello Fred and thanks for the work.
I see we’re almost there.
But it works on products with one attribute.
More than one, the reload returns a “null” as reference on the front.
Is it because all secondary attributes are displayed? (given that the color is the first and main attribute).
I mean on the desktop version, the page only shows attributes going with each color. So when you switch a color it will switch all the choices.
And not the other way around.
Could you please give me a link to a page where I can see the issue?
Yes my bad!
Desktop: https://eshop.tallaeyewear.com/en/sunglasses/16-Cicles Mobile: https://eshop.tallaeyewear.com/en/mobile/product/16-Cicles
Yes, I see now.
There is no fast solution. Something is wrong in “filter” logic.
Working on that…
Understood.
If you ever have a time frame, we’re going to delay the opening.
Good luck!
Could you please disable Opcache in your server configuration for a while?
Hi Fred the php cache is disabled.
Thanks!
So the desktop version works in following way: if you select an attribute and the image with current attributes combination is not available, prestashop switched to the next available combination.
In AMP it’s a problem to make it work in that way, so I offer you the following solution https://take.ms/0nwbA
Thanks for the work but we’d rather disable AMP and make UX corrections via CSS.
We want to privilege user experience.
Yes, I understand, sorry