VirtueMart Forum

VirtueMart 2 + 3 + 4 => Administration & Configuration => Topic started by: dviret on October 10, 2017, 16:43:40 PM

Title: Cannot add child products in cart
Post by: dviret on October 10, 2017, 16:43:40 PM
I use :
- Joomla 3.8.1
- Virtuemart 3.2.4

I have an issue with child products, impossible to add them to the cart after choosing a variation : the "add to cart" button appears but has no effect. No problem with products which do not have children.
I suppose this could be a cache issue because sometimes it works (but very rarely and cannot reproduce it). I tried to clear Joomla cache, but nothing changes.

You can try this here, in the "Test" category. The "no children" product can be added to the cart but not the others.
http://nbsofklm.preview.infomaniak.website/index.php/accueil/test

Thanks for any help.
Title: Re: Cannot add child products in cart
Post by: jenkinhill on October 10, 2017, 17:43:41 PM
It is a problem with your template. If you force the page to use Protostar and VM default templates  using  http://nbsofklm.preview.infomaniak.website/index.php/accueil/test?tmpl=component&template=protostar  you see:
 
(https://image.ibb.co/ftAWbG/variant.jpg)

The Choisir une variante button is not shown on your template, so the link is to the product details page where the variant can be selected. The no children product can go straight to cart.
Title: Re: Cannot add child products in cart
Post by: dviret on October 11, 2017, 08:59:30 AM
Thanks for your reply,

The redirection to product detail page is not a problem. The problem is that, even in product detail, when I choose a variation of product, the "add to cart" button appears but doesn't work.

I see in your printscreen with protostar template that the "choisir une variante" button appears but is disabled ... maybe are these problems linked ?
Title: Re: Cannot add child products in cart
Post by: jenkinhill on October 11, 2017, 11:45:15 AM
It is certainly a problem with your template. You should ask the template developer for an updated version that works with current VirtueMart versions.  http://forum.virtuemart.net/index.php?topic=108212.0
Title: Re: Cannot add child products in cart
Post by: dviret on October 11, 2017, 13:12:30 PM
You are right, it seems to be a problem with the template. Thanks for your help.