VirtueMart Forum

VirtueMart 2 + 3 + 4 => Product pricing => Topic started by: jokimies on October 19, 2015, 18:18:18 PM

Title: Showing the starting price (lowest price from quantity pricing)
Post by: jokimies on October 19, 2015, 18:18:18 PM
Hi,

All my products have a quantity based pricing and I am looking for a way to show the cheapest price in a category view. So if 1 item is 10€ and 20 items is 5€ each I would like to have that 5€ shown on a category and featured views.

I managed to do it with try & error & good luck in Gavick News Show module on front page. I could use the same module elsewhere too, but its not a good option. So I know that can be done, but how?

I am using Joomla 3.4.4 and WM 3.0.9.6. Live site at kopterissa.com
Title: Re: Showing the starting price (lowest price from quantity pricing)
Post by: GJC Web Design on October 19, 2015, 21:50:39 PM
Yes it is possible just with template over rides

use the product model and the getPrice function for the max quantity to retrieve and display the lowest price

the same technique can be used in the cat display template -- works with all discounts etc

$product->min_order_level  is already there

you can see what we did here:  details->  http://keepitpromo.com/index.php/en/promotional-usb-flash-drives/promotional-usb-drives-column-3/promotional-themed-usb-drives-with-logo-print-2/baby-bottle-usb-drive-detail

cats->  http://keepitpromo.com/index.php/en/promotional-usb-flash-drives/promotional-usb-drives-column-3/promotional-themed-usb-drives-with-logo-print-2
Title: Re: Showing the starting price (lowest price from quantity pricing)
Post by: jokimies on November 05, 2015, 15:29:32 PM
I just cant make it work. Any examples of code lines I could try?

Keepitpromo.com has done it so beautifully. Respect!
Title: Re: Showing the starting price (lowest price from quantity pricing)
Post by: GJC Web Design on November 05, 2015, 21:53:10 PM
QuoteKeepitpromo.com has done it so beautifully. Respect!

ha ha...  that's  GJC has done it so beautifully. Respect!  ;)

I'm available for hire.. this is what I do...   :)
Title: Re: Showing the starting price (lowest price from quantity pricing)
Post by: servlet on November 07, 2015, 21:53:37 PM
Nice ;)