VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: mmleoni on May 20, 2014, 18:06:54 PM

Title: bug in 'add to cart'without ajax
Post by: mmleoni on May 20, 2014, 18:06:54 PM
Hi guys!

I think there is a bug in 'views\productdetails\tmpl\default_addtocart.php' on line 125:

<noscript><input type="hidden" name="task" value="add"/></noscript>

if you disable 'Using the product Scripts', you can't add products to cart. <noscript> works when js is disabled, not if vmJS is not loaded  ;D ;D

bye,
marco
Title: Re: bug in 'add to cart'without ajax
Post by: mmleoni on May 20, 2014, 18:20:40 PM
ops, I forgot the solution  :(

change line 125 with:
<?php if(!VmConfig::get ('jprice'TRUE)): ?><input type="hidden" name="task" value="add"/><?php endif; ?>

bye,
marco