News:

Looking for documentation? Take a look on our wiki

Main Menu

Update price based on amount

Started by vieke, October 15, 2014, 16:08:36 PM

Previous topic - Next topic

vieke

Dear community;

I know this is not a default feature in VM2, i've been searching the forums and google for a solution but can't find any, i also tried coding this myself, but i'm not a coder...

Basically i just want the price on the product details page to update with the amount the user is picking.

So if the base price of the product is 10$ and the user clicks the plus sign for 2 units, the price updates to 20$.

I tried multiplying the php variable, but this only works on page load, i know i should find the solution in Javascript but like i said, i can't code.

Please help me out.

jenkinhill

Of course the price does not change, as it is the unit price - ie the price of each product. , which is normal shop practice. If you want a running total on that page then you will have to code it or commission a developer to do it for you.
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum