Variant products and mini cart issue

  • Posts: 38
  • Thank you received: 2
8 years 11 months ago #251147

-- HikaShop version -- : 2.6.4
-- Joomla version -- : 3.6.2
-- PHP version -- : 5.4.45

Hi everyone

Can someone help or point me in the right direction please?

I've added quite a few products to the site I'm currently building and all was working well until I started to add variants.

I've got the mini cart module positioned top right and before I added variants to a product to test I could add a product to the cart and the mini cart would update the product quantities accordingly. However, now, if I add a variant product to the cart the mini cart doesn't update the product quantities unless there's already a product or default product in the cart (sometimes this doesn't work). It will update if I navigate away from the product with variants but when I navigate back the mini cart will show no products in the cart until I go back to a detailed product page.

Also if you add a product without variants or a default product to the cart I receive a message telling me that a product has been added to the cart but I don't receive the message for variant products.

I hope all this makes sense.

I've been trying to work this out since yesterday and I can't find any errors.

Can someone help please?

Many thanks.

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

  • Posts: 84313
  • Thank you received: 13705
  • MODERATOR
8 years 11 months ago #251151

Hi,

As far as I can see, this is not a variants issue but a caching issue. Make sure that you turn off all the cache on your website (in the Joomla configuration, the cache plugin of Joomla, etc) and that should solve the problem.

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

  • Posts: 38
  • Thank you received: 2
8 years 11 months ago #251201

Hi Nicolas

The Joomla page cache plugin is disabled and system configuration cache is also disabled.

I have made display views modifications but I removed then then tested again and the problem persists.

Thanks.

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

  • Posts: 84313
  • Thank you received: 13705
  • MODERATOR
8 years 11 months ago #251258

Hi,

Then, could you provide a link to a product page with the issue so that we could have a look at the problem ?

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

  • Posts: 38
  • Thank you received: 2
8 years 11 months ago #251286

Hi Nicolas

Thanks for your reply.

I'll send a PM to you with the link.

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

  • Posts: 38
  • Thank you received: 2
8 years 11 months ago #251385

Hi Nicolas

Just checking to see if you've received my PM to you OK as I'm not sure if it sent successfully.

Many thanks.

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

  • Posts: 84313
  • Thank you received: 13705
  • MODERATOR
8 years 11 months ago #251387

I didn't receive your PM. Please use our contact form to send credentials:
www.hikashop.com/support/contact-us.html

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

  • Posts: 38
  • Thank you received: 2
8 years 11 months ago #251414

Hi Nicolas

Just sent a link using your contact form.

Many thanks.

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

  • Posts: 84313
  • Thank you received: 13705
  • MODERATOR
8 years 11 months ago #251418

Hi,

In my tests I didn't had the problem. The mini cart display was refreshed each time I added variants of your product to the cart, regardless of what I had in the cart and what I did before.

However, I can see that you're using Varnish on your web server, which is a caching system for websites.
So it would well be linked to that.
You could try deactivate it or make sure that it is properly configured:
massivescale.net/varnish-joomla.html
It is supposed to be compatible with HikaShop and Joomla thanks to a specific patch. Maybe you don't have that patch ?

The following user(s) said Thank You: JasonJJBW

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

  • Posts: 38
  • Thank you received: 2
8 years 11 months ago #251549

Hi Nicolas

Thank you very much for taking a look for me, I do appreciate it.

I use shared hosting so sadly have no control over the web server.

It appears that the products do actually go into the cart it's the mini cart product quantity number that doesn't update or refresh correctly. I've tried it on other computers and it doesn't update correctly on those either so you think it's an issue with Varnish? I'll contact my host and see if there's anything they can do.

Many thanks for your help and time.

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

  • Posts: 38
  • Thank you received: 2
8 years 11 months ago #251561

Update:

I've disabled Varnish and it's made no difference.

If you add a variant product first the mini cart product quantity doesn't update but if you then add the default product it does including the variant.

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

  • Posts: 38
  • Thank you received: 2
8 years 11 months ago #251567

Further update:

selecting Yes to 'Use AJAX when possible for add to cart buttons' has solved the update above.

The following user(s) said Thank You: PeterChain

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

Time to create page: 0.074 seconds
Powered by Kunena Forum