VirtueMart Forum

VirtueMart 2 + 3 + 4 => Product creation => Topic started by: miroki on July 11, 2017, 13:40:30 PM

Title: I need the value of the number of products. Before adding it to the cart.
Post by: miroki on July 11, 2017, 13:40:30 PM
Hello.
I need the value of the number of products before adding it to the cart.
After pressing +, the value increases. I need the new figure. (4 of the attachment)
I expected it to be "quantity". Before adding to the cart, "quantity" is just one unit. And I'm looking for the increased number.
Which variable I can use.
Thank you very much, I wander all day.
VM 3.2.2.
J. 3.7.2
Title: Re: I need the value of the number of products. Before adding it to the cart.
Post by: VMTemplates.net on July 11, 2017, 17:07:37 PM
Hi,

try this:

1. open a product
2. select Product Status
3. Type 4 in  Minimum Purchase Quantity field (Products Status area)

Thanks,
Jason.
Title: Re: I need the value of the number of products. Before adding it to the cart.
Post by: miroki on July 12, 2017, 08:44:08 AM
Thanks, but I do not ask that.
I'm integrating a credit calculator.
The default quantity is 1 and the calculator works for one product. When you press +, another product is added, but the variable "quantity" continues to be 1. In the row reads 2. And the variable is 2.
Which variable to use to take the new number.
I have to take the number that is visible after pressing + or -.
You have to put it in the calculator to work.
Š¢hanks.