News:

Support the VirtueMart project and become a member

Main Menu

Cannot add child products in cart

Started by dviret, October 10, 2017, 16:43:40 PM

Previous topic - Next topic

dviret

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.

jenkinhill

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:
 


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.
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

dviret

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 ?

jenkinhill

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
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

dviret

You are right, it seems to be a problem with the template. Thanks for your help.