• Priority: 0
  • Status: Waiting on customer
  • Theme: Alysum
  • Assigned To: Fred
  • Private: No
  • Open Date: 12.01.24, 18:30
  • Opened by: Mamor

Ticket #25219 - Variations + disappearing guides

Subject: Issues with variations and guides

Hi Fred,

I’m writing to you because I’m having some issues with variations and guides (yes, we still haven’t been able to resolve them).

For the variation bug: When I change the variation, the image doesn’t follow behind, it stays fixed. Variations have always been a problem!

How to reproduce it?

Go to this product page: https://www.lora-moi.ch/en/p/592-angelsvoice-flower-of-life-bracelet-in-silver-with-natural-stones.html

And change the variation, you’ll see the image doesn’t move even though it should change.

For the guides (size guide module), I don’t understand what’s going on.

On some products, it appears, on others it doesn’t.

All it takes is to refresh the page for it to disappear, and I’m not even talking about when there’s a variation, it jumps right away.

How to reproduce it?

Go to this product page:

https://www.lora-moi.ch/en/p/1043-gold-flower-of-life-bracelet-with-onyx.html

When you arrive, you’ll see the guide, but if you don’t refresh the page, it disappears.

Thanks for your help.

Have a nice evening,

Orlando

Comments

Fred 12 Jan 2024, 20:38

Hi Orlando.
Strange, I don't remember such a problem so far.
Try following trick.
- open the file

/themes/alysum/templates/catalog/_partials/product-variants.tpl

- remove {hook h='displayGuide'}
- add that hook manually through the shortcode widget

Mamor 15 Jan 2024, 10:28

Hi Fred,

Thank you for your reply and solution!

It works great, the size guide stays and doesn't disappear anymore! Thank you for your help.

There is just one issue left that when you change the variation, the image doesn't change.

How to reproduce the bug:

Go to this page: https://www.lora-moi.ch/en/p/592-angelsvoice-flower-of-life-bracelet-in-silver-with-natural-stones.html

And change the variation. The image doesn't change and there should normally be a black bracelet for onyx, white for howlite and pink for rose quartz.

Thanks for your help.

Have a great day,

Orlando

Mamor 15 Jan 2024, 12:18

For the guide > There's still the bug that when you don't refresh the page, it disappears!

Mamor 15 Jan 2024, 12:43

I think I've found the source of the problem that makes the guide disappear when you refresh a page.

I noticed a very strange element, when I activate in the module "sizeguide" = Show global size guide (see screen) and the guides fit on all pages after refreshing.

We had to make custom guides in the size guide list because we could only have one global one (see screen), and I think the bug is with these guides!

Maybe JavaScript can't figure out whether to display it or not.

And I don't think you have the bug on your side, because you have the global guides displayed on all pages and it work nicely.

For the moment, I've compensated for the bug by enabling the global size guide to be displayed.

It would be great if you could have a look,

Thanks for the help.

Attachments:

Fred 15 Jan 2024, 19:50

Yes, I think you are right. We will investigate that and I'll let you know the result later

Mamor 17 Jan 2024, 12:45

All right! Keep me informed

Attachments:

Fred 20 Jan 2024, 10:39

I can't reproduce the issue locally. Which product has enabled only custom guide to let me see the problem?

Mamor 22 Jan 2024, 10:03

Hi Fred,

All products, because we can't apply a general guide, so you need to create custom guides.

Here is a typical product: https://www.lora-moi.ch/fr/p/1006-collier-marguerite-plaque-or.html

To reproduce the bug, all you have to do is reload the page for the guide to disappear.

Do you now have access to the store without Cloudflare blocking you?

Fred 22 Jan 2024, 11:49

That was a cache issue, now it's resolved, please check

Mamor 22 Jan 2024, 11:54

That's it, I've added your ip to clouflare and you should be able to access the store.

It's perfect! It works, the guide holds even after the page is refreshed, thanks for the help.

Fred 22 Jan 2024, 11:58

Great!