• 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

Fred 21 Jun 2021, 21:26

Can I upgrade AMP module to the latest version?

So So 21 Jun 2021, 22:51

Hello Fred, of course be my guest!

Fred 22 Jun 2021, 10:22

Now the image is updated after changing an attribute https://take.ms/ylRkq

So So 22 Jun 2021, 12:18

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.

Fred 22 Jun 2021, 13:47

Could you please give me a link to a page where I can see the issue?

Fred 22 Jun 2021, 16:48

Yes, I see now.
There is no fast solution. Something is wrong in “filter” logic.
Working on that…

So So 23 Jun 2021, 11:44

Understood.
If you ever have a time frame, we’re going to delay the opening.
Good luck!

Fred 23 Jun 2021, 17:48

Could you please disable Opcache in your server configuration for a while?

So So 23 Jun 2021, 23:56

Hi Fred the php cache is disabled.
Thanks!

Fred 24 Jun 2021, 15:03

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

So So 24 Jun 2021, 17:18

Thanks for the work but we’d rather disable AMP and make UX corrections via CSS.
We want to privilege user experience.

Fred 24 Jun 2021, 18:16

Yes, I understand, sorry