Variants behaving weird

  • Posts: 357
  • Thank you received: 24
  • Hikaserial Standard Hikashop Business
3 years 2 months ago #328852

-- url of the page with the problem -- : new.coinsnstamps.store/monter/europa/product/9-t-shirt
-- HikaShop version -- : 4.4.0
-- Joomla version -- : 3.9.24
-- PHP version -- : 7.4

Hi
I'm playing around with variants to get to know it, because I'm making a shop for a clothes store.
But I having some issues.

new.coinsnstamps.store/monter/europa/product/9-t-shirt

When I choose L and Rød, no price shows and adding it to the cart, gives me the Hvid in the cart?

Regards
Thomas

Please Log in or Create an account to join the conversation.

  • Posts: 81509
  • Thank you received: 13064
  • MODERATOR
3 years 2 months ago #328865

Hi,

The problem comes from another extension on your website.
If you like at the javascript console of your browser on your link, you'll see this javascript error:
monosnap.com/file/pQxKG8dHAeDJSEiAmuF0pWCOnif8Ow
As you can see, it says that there is an error on line 344.
And then, if you look at the source code of the page, you can see this:
monosnap.com/file/FPBgN8t8dPmbxYXeZMLyVe16iuoEau
This javascript code apparently comes from your menu system.
When the page is being loaded by the browser, it first initializes the javascript on the page.
However, because of that error, it stops there and doesn't initialize the rest of the javascript on the page, and thus the javascript of the variants system is not initialized. That's why the system doesn't work properly.
Fixing that javascript error will allow the variants selector to run properly.

Please Log in or Create an account to join the conversation.

  • Posts: 357
  • Thank you received: 24
  • Hikaserial Standard Hikashop Business
3 years 2 months ago #328871

Oh, I see ...

Thanks, will have a closer look to fix this :-)

Please Log in or Create an account to join the conversation.

  • Posts: 357
  • Thank you received: 24
  • Hikaserial Standard Hikashop Business
3 years 2 months ago #328872

Should be fixed now, but the error seems to be there still and no prices are shown on certain combinations?

Please Log in or Create an account to join the conversation.

  • Posts: 81509
  • Thank you received: 13064
  • MODERATOR
3 years 2 months ago #328880

Hi,

It seems there is some bug with the variants switching on the page.
However, we don't have such issue on our end with a similar setup with the current version.
So I'm thinking it's probably related to a view override on your end.
Check the folder templates/YOUR_TEMPLATE/html/com_hikashop/product via FTP of a file manager provided by your hosting.
You should find view override files in there.
Try renaming that whole folder to something else to deactivate all the overrides in there and see if that helps (clear the caching you have, if any).
If it does, then the issue comes from one of the files in that folder. You can revert the name of the folder and then change the name of the files in there one by one to check which file is causing the problem.
Then, either leave it renamed or check with the person who made the view override (your template provider maybe ?) if it changes your layout in a way you don't want.
If renaming the folder doesn't change anything, then it might be linked to the magic toolbox extension you're using. I know they've added one or two patches regarding the variants switching mechanism in 2020, and you might not have these patches, or it could be a new issue. So you could first check that you have their latest version, and then try disabling it to see if it's linked to that extension.

Please Log in or Create an account to join the conversation.

  • Posts: 357
  • Thank you received: 24
  • Hikaserial Standard Hikashop Business
3 years 2 months ago #328921

Hey ...

It was indeed the Magic Toolbox, thanks - I'll check with them!

Please Log in or Create an account to join the conversation.

Time to create page: 0.063 seconds
Powered by Kunena Forum