VirtueMart Forum

VirtueMart 2 + 3 + 4 => Product creation => Topic started by: hakan26 on March 23, 2015, 21:10:15 PM

Title: Quantity of product
Post by: hakan26 on March 23, 2015, 21:10:15 PM
Hi all,

I am using VirtueMart 3.0.6 and can not change quantity of my products. If I click to "+" or "+" I get this error: NaN

How to fix it?

Regards,
Hakan
Title: Re: Quantity of product
Post by: GJC Web Design on March 23, 2015, 22:38:01 PM
Your template isn't the latest.... pretty the fix is in vmprices.js on VM3.0.6.2

//Fallback for layouts lower than 2.0.18b
      if(isNaN(Ste)){
         Ste = 1;
      }

Title: Re: Quantity of product
Post by: hakan26 on March 23, 2015, 23:03:47 PM
Thank you at first for your reply.

I am sorry, where to add this code or change?

I have updated VM.
Title: Re: Quantity of product
Post by: GJC Web Design on March 24, 2015, 00:56:56 AM
this code should already be in components\com_virtuemart\assets\js\vmprices.js and solve the problem
Title: Re: Quantity of product
Post by: hakan26 on March 24, 2015, 08:49:00 AM
I checked it and found this code:

//Fallback for layouts lower than 2.0.18b
      if(isNaN(Ste)){
         Ste = 1;
      }

But issue is not fixed on my shop.
Title: Re: Quantity of product
Post by: GJC Web Design on March 24, 2015, 10:55:02 AM
then some further changes are needed in your template - try with protostar to confirm
Title: Re: Quantity of product
Post by: hakan26 on March 24, 2015, 11:43:32 AM
You are right.. its working on other templates.