Code: Select all
Product: Perfume $10.00
Size:
- 25ml
- 50ml (+10.00)
- 100ml (+20.00)
Essentially the same as this:
Code: Select all
Product: Perfume $0.00
Size:
- 25ml (10.00)
- 50ml (20.00)
- 100ml (30.00)
But for those people who want to price by option feature similar to Zencart, this script will grab all the option prices and grab the lowest price for the displayed main price.
The price for this product below is set to 0.00
The lowest option price is 14.00
It shows the lowest option price as the main price on module and non-product pages
Category/Module Pages:
For product pages, I've altered this slightly to add "Starting at:" to the beginning
Product Page:
NOTE: There was some complexity to this method to support Options Price Update Redux. The product page uses a different method than the other pages for the price. To avoid doubling the price when using Option Price Update Redux, I use the currency library to fake the price. This allows options price update redux to work. It also offers the ability to add a message to the price on the product page like "Starting At $x.xx". This cannot be added on other pages with this mod alone.
Here's a video of how it works with the Options Price Update Redux mod:
http://screencast.com/t/uEwFeLXqErH