[Skip to main content](#vessel-content)

#   Variant products and mini cart issue

##

- **[JasonJJBW](/forum/user/5558-jasonjjbw "View JasonJJBW's Profile")**
- [![JasonJJBW's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/5558-jasonjjbw "View JasonJJBW's Profile") Topic Author
- [ Offline](/forum/user/5558-jasonjjbw)

Less More

- Posts: 38
- Thank you received: 2
-
-

10 years 1 month ago [\#251147](#251147) by [JasonJJBW](/forum/user/5558-jasonjjbw "View JasonJJBW's Profile")  *[Variant products and mini cart issue](/forum/26-product-category-display/886670-variant-products-and-mini-cart-issue#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.")* was created by *[JasonJJBW](/forum/user/5558-jasonjjbw "View JasonJJBW's Profile")*

-- 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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84ODY2NzAtdmFyaWFudC1wcm9kdWN0cy1hbmQtbWluaS1jYXJ0LWlzc3VlP3RtcGw9bWFya2Rvd24=) or [Create an account](/register) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86322
- Thank you received: 14281
-
-

10 years 1 month ago [\#251151](#251151) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Variant products and mini cart issue](/forum/26-product-category-display/886670-variant-products-and-mini-cart-issue#251151 "-- 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.")*

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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84ODY2NzAtdmFyaWFudC1wcm9kdWN0cy1hbmQtbWluaS1jYXJ0LWlzc3VlP3RtcGw9bWFya2Rvd24=) or [Create an account](/register) to join the conversation.

- **[JasonJJBW](/forum/user/5558-jasonjjbw "View JasonJJBW's Profile")**
- [![JasonJJBW's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/5558-jasonjjbw "View JasonJJBW's Profile") Topic Author
- [ Offline](/forum/user/5558-jasonjjbw)

Less More

- Posts: 38
- Thank you received: 2
-
-

10 years 1 month ago [\#251201](#251201) by [JasonJJBW](/forum/user/5558-jasonjjbw "View JasonJJBW's Profile")  Replied by *[JasonJJBW](/forum/user/5558-jasonjjbw "View JasonJJBW's Profile")* on topic *[Variant products and mini cart issue](/forum/26-product-category-display/886670-variant-products-and-mini-cart-issue#251201 "-- 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.")*

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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84ODY2NzAtdmFyaWFudC1wcm9kdWN0cy1hbmQtbWluaS1jYXJ0LWlzc3VlP3RtcGw9bWFya2Rvd24=) or [Create an account](/register) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86322
- Thank you received: 14281
-
-

10 years 1 month ago [\#251258](#251258) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Variant products and mini cart issue](/forum/26-product-category-display/886670-variant-products-and-mini-cart-issue#251258 "-- 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.")*

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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84ODY2NzAtdmFyaWFudC1wcm9kdWN0cy1hbmQtbWluaS1jYXJ0LWlzc3VlP3RtcGw9bWFya2Rvd24=) or [Create an account](/register) to join the conversation.

- **[JasonJJBW](/forum/user/5558-jasonjjbw "View JasonJJBW's Profile")**
- [![JasonJJBW's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/5558-jasonjjbw "View JasonJJBW's Profile") Topic Author
- [ Offline](/forum/user/5558-jasonjjbw)

Less More

- Posts: 38
- Thank you received: 2
-
-

10 years 1 month ago [\#251286](#251286) by [JasonJJBW](/forum/user/5558-jasonjjbw "View JasonJJBW's Profile")  Replied by *[JasonJJBW](/forum/user/5558-jasonjjbw "View JasonJJBW's Profile")* on topic *[Variant products and mini cart issue](/forum/26-product-category-display/886670-variant-products-and-mini-cart-issue#251286 "-- 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.")*

Hi Nicolas

Thanks for your reply.

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

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84ODY2NzAtdmFyaWFudC1wcm9kdWN0cy1hbmQtbWluaS1jYXJ0LWlzc3VlP3RtcGw9bWFya2Rvd24=) or [Create an account](/register) to join the conversation.

- **[JasonJJBW](/forum/user/5558-jasonjjbw "View JasonJJBW's Profile")**
- [![JasonJJBW's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/5558-jasonjjbw "View JasonJJBW's Profile") Topic Author
- [ Offline](/forum/user/5558-jasonjjbw)

Less More

- Posts: 38
- Thank you received: 2
-
-

10 years 1 month ago [\#251385](#251385) by [JasonJJBW](/forum/user/5558-jasonjjbw "View JasonJJBW's Profile")  Replied by *[JasonJJBW](/forum/user/5558-jasonjjbw "View JasonJJBW's Profile")* on topic *[Variant products and mini cart issue](/forum/26-product-category-display/886670-variant-products-and-mini-cart-issue#251385 "-- 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.")*

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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84ODY2NzAtdmFyaWFudC1wcm9kdWN0cy1hbmQtbWluaS1jYXJ0LWlzc3VlP3RtcGw9bWFya2Rvd24=) or [Create an account](/register) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86322
- Thank you received: 14281
-
-

10 years 1 month ago [\#251387](#251387) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Variant products and mini cart issue](/forum/26-product-category-display/886670-variant-products-and-mini-cart-issue#251387 "-- 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.")*

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

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84ODY2NzAtdmFyaWFudC1wcm9kdWN0cy1hbmQtbWluaS1jYXJ0LWlzc3VlP3RtcGw9bWFya2Rvd24=) or [Create an account](/register) to join the conversation.

- **[JasonJJBW](/forum/user/5558-jasonjjbw "View JasonJJBW's Profile")**
- [![JasonJJBW's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/5558-jasonjjbw "View JasonJJBW's Profile") Topic Author
- [ Offline](/forum/user/5558-jasonjjbw)

Less More

- Posts: 38
- Thank you received: 2
-
-

10 years 4 weeks ago [\#251414](#251414) by [JasonJJBW](/forum/user/5558-jasonjjbw "View JasonJJBW's Profile")  Replied by *[JasonJJBW](/forum/user/5558-jasonjjbw "View JasonJJBW's Profile")* on topic *[Variant products and mini cart issue](/forum/26-product-category-display/886670-variant-products-and-mini-cart-issue#251414 "-- 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.")*

Hi Nicolas

Just sent a link using your contact form.

Many thanks.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84ODY2NzAtdmFyaWFudC1wcm9kdWN0cy1hbmQtbWluaS1jYXJ0LWlzc3VlP3RtcGw9bWFya2Rvd24=) or [Create an account](/register) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86322
- Thank you received: 14281
-
-

10 years 4 weeks ago [\#251418](#251418) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Variant products and mini cart issue](/forum/26-product-category-display/886670-variant-products-and-mini-cart-issue#251418 "-- 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.")*

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](http://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](/forum/user/5558-jasonjjbw "View JasonJJBW's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84ODY2NzAtdmFyaWFudC1wcm9kdWN0cy1hbmQtbWluaS1jYXJ0LWlzc3VlP3RtcGw9bWFya2Rvd24=) or [Create an account](/register) to join the conversation.

- **[JasonJJBW](/forum/user/5558-jasonjjbw "View JasonJJBW's Profile")**
- [![JasonJJBW's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/5558-jasonjjbw "View JasonJJBW's Profile") Topic Author
- [ Offline](/forum/user/5558-jasonjjbw)

Less More

- Posts: 38
- Thank you received: 2
-
-

10 years 4 weeks ago [\#251549](#251549) by [JasonJJBW](/forum/user/5558-jasonjjbw "View JasonJJBW's Profile")  Replied by *[JasonJJBW](/forum/user/5558-jasonjjbw "View JasonJJBW's Profile")* on topic *[Variant products and mini cart issue](/forum/26-product-category-display/886670-variant-products-and-mini-cart-issue#251549 "-- 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.")*

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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84ODY2NzAtdmFyaWFudC1wcm9kdWN0cy1hbmQtbWluaS1jYXJ0LWlzc3VlP3RtcGw9bWFya2Rvd24=) or [Create an account](/register) to join the conversation.

- **[JasonJJBW](/forum/user/5558-jasonjjbw "View JasonJJBW's Profile")**
- [![JasonJJBW's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/5558-jasonjjbw "View JasonJJBW's Profile") Topic Author
- [ Offline](/forum/user/5558-jasonjjbw)

Less More

- Posts: 38
- Thank you received: 2
-
-

10 years 4 weeks ago [\#251561](#251561) by [JasonJJBW](/forum/user/5558-jasonjjbw "View JasonJJBW's Profile")  Replied by *[JasonJJBW](/forum/user/5558-jasonjjbw "View JasonJJBW's Profile")* on topic *[Variant products and mini cart issue](/forum/26-product-category-display/886670-variant-products-and-mini-cart-issue#251561 "-- 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.")*

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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84ODY2NzAtdmFyaWFudC1wcm9kdWN0cy1hbmQtbWluaS1jYXJ0LWlzc3VlP3RtcGw9bWFya2Rvd24=) or [Create an account](/register) to join the conversation.

- **[JasonJJBW](/forum/user/5558-jasonjjbw "View JasonJJBW's Profile")**
- [![JasonJJBW's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/5558-jasonjjbw "View JasonJJBW's Profile") Topic Author
- [ Offline](/forum/user/5558-jasonjjbw)

Less More

- Posts: 38
- Thank you received: 2
-
-

10 years 4 weeks ago [\#251567](#251567) by [JasonJJBW](/forum/user/5558-jasonjjbw "View JasonJJBW's Profile")  Replied by *[JasonJJBW](/forum/user/5558-jasonjjbw "View JasonJJBW's Profile")* on topic *[Variant products and mini cart issue](/forum/26-product-category-display/886670-variant-products-and-mini-cart-issue#251567 "-- 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.")*

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](/forum/user/570-peterchain "View PeterChain's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84ODY2NzAtdmFyaWFudC1wcm9kdWN0cy1hbmQtbWluaS1jYXJ0LWlzc3VlP3RtcGw9bWFya2Rvd24=) or [Create an account](/register) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.138 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
