News:

Support the VirtueMart project and become a member

Main Menu

bug in 'add to cart'without ajax

Started by mmleoni, May 20, 2014, 18:06:54 PM

Previous topic - Next topic

mmleoni

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
just another *nix coder/sysadmin

mmleoni

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


just another *nix coder/sysadmin