VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: anhel on October 02, 2017, 22:18:02 PM

Title: Cart button problem
Post by: anhel on October 02, 2017, 22:18:02 PM
Hi i'm using virtue mart 3.0.6.2 in joomla 3.4.8 my tempalte is captiva from vitruemart tempaltes.

Sudently without any change the buttons to increase or dicrease quantity not working and if i press up or down arrow it gives message NaN also i can not add second item in cart.

My url is crossxracing.com

Any ideas

Thank you
Title: Re: Cart button problem
Post by: jenkinhill on October 02, 2017, 23:13:26 PM
Quote from: anhel on October 02, 2017, 22:18:02 PM
i'm using virtue mart 3.0.6.2 in joomla 3.4.8 .

Those are very old and insecure versions and liable to be hacked!  It is also possible thet you host has updated the PHP version on the server to one more recent, so older software (including your template) does not work properly.  http://forum.virtuemart.net/index.php?topic=118683.0

Current versions are Joomla 3.8 and VirtueMart 3.2.4   To use these you will almost certainly need an updated template from your supplier.
Title: Re: Cart button problem
Post by: anhel on October 03, 2017, 16:46:30 PM
Dear jenkinhill

Thank you for your quick reply and your efforts.

I 'm afraid to make update because i will loose a lot of work that i have done, that problem appeared suddently and i guess aftair your niotice that my host provider might have update php or something.

Title: Re: Cart button problem
Post by: kishoreonwork on October 04, 2017, 20:09:39 PM
your input quantity box is missing 2 attribute value   'step' and 'init' . You need to add them in your virtuemart template sublayout - addtocartbar.php



Currently it is


<input class="quantity-input js-recalculate" name="quantity[]" value="1"  type="text">



After adding it will become

<input class="quantity-input js-recalculate" name="quantity[]" value="1" init="1" type="text">


Thanks
kishore
Title: Re: Cart button problem
Post by: anhel on October 13, 2017, 07:57:43 AM
Thank you kishoreonwork

I will try it

Best regards