VirtueMart Forum

VirtueMart 2 + 3 + 4 => Product pricing => Topic started by: davidjosue on September 20, 2015, 02:25:00 AM

Title: How Show total Product Price times Selected Quantity on VM Product details Page
Post by: davidjosue on September 20, 2015, 02:25:00 AM
Hello,

My purposes is to show in VM 3 the total price of a purchase of a particular product based on the quantity ordered.

Example if you wish to buy 3 mugs for $50, then a "Total: $150"  will be shown. If you wish to changed it to something like quantity of 5, then it will display "Total: $250", and so on..

Please look at the image below
(http://i.imgur.com/cFY5YTb.gif)

I am not talking about one product price per quantity range features. I want to have the total price dynamically change according to the quantity in the product page (not the in the cart).

Thanks for help
Title: Re: How Show total Product Price times Selected Quantity on VM Product details Page
Post by: GJC Web Design on September 20, 2015, 10:15:09 AM
there would be various ways .. all require coding I think

vmprices.js is fired when the quan. is changed..  that's your starting point
Title: Re: How Show total Product Price times Selected Quantity on VM Product details Page
Post by: davidjosue on September 20, 2015, 12:55:21 PM
Thanks you for the clue. But there is'nt any hack...or plugin ?
This feature seems to be logical, it's surprising that no one has previously thought.
Title: Re: How Show total Product Price times Selected Quantity on VM Product details Page
Post by: GJC Web Design on September 20, 2015, 20:07:02 PM
look at how the cart module is updated.. perhaps use that code filtered by the current product id
Title: Re: How Show total Product Price times Selected Quantity on VM Product details Page
Post by: lindapowers on February 04, 2016, 16:41:56 PM
I think a price display with this option would be nice, no way to show it currently other than at minicart or checkout. Customer only see the price for quantity one at product details and category view.