Author Topic: Cannot add child products in cart  (Read 237 times)

dviret

  • Beginner
  • *
  • Posts: 3
  • A beginner
Cannot add child products in cart
« 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.

jenkinhill

  • UK Web Developer & Consultant
  • Global Moderator
  • Super Hero
  • *
  • Posts: 26428
  • Always on vacation
    • Jenkin Hill Internet
Re: Cannot add child products in cart
« Reply #1 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:
 


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

Jenkin Hill Internet,
Lowestoft, Suffolk, UK

Unsolicited PMs/emails will be ignored.

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

Currently using VM3.2.10 on Joomla 3.8.3 PHP 7.0.25

Testing VM3.2.10.9700 on J3.8.3

dviret

  • Beginner
  • *
  • Posts: 3
  • A beginner
Re: Cannot add child products in cart
« Reply #2 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 ?

jenkinhill

  • UK Web Developer & Consultant
  • Global Moderator
  • Super Hero
  • *
  • Posts: 26428
  • Always on vacation
    • Jenkin Hill Internet
Re: Cannot add child products in cart
« Reply #3 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
Kelvyn

Jenkin Hill Internet,
Lowestoft, Suffolk, UK

Unsolicited PMs/emails will be ignored.

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

Currently using VM3.2.10 on Joomla 3.8.3 PHP 7.0.25

Testing VM3.2.10.9700 on J3.8.3

dviret

  • Beginner
  • *
  • Posts: 3
  • A beginner
Re: Cannot add child products in cart
« Reply #4 on: October 11, 2017, 13:12:30 pm »
You are right, it seems to be a problem with the template. Thanks for your help.