Magento – How to build a “price-range” display for simple products

magento-1.7magento-1.8

As far as I can see, there is no way for us to display a price range instead of a static product price for simple products. Ideally we want something like '$1000 – $1250' on the product page and category pages.

I could not find any extensions that will do this, and Magento does not have the out-of-the-box capability.

This may be unsolvable or require more work than we thought, because we will also need the ability to input these prices in the Admin panel somehow.

Best Answer

You'll certainly need to build a module for this. The price range will affect everything from the display price, right through to the price the customer pays at checkout. This includes working out tax and shipping.

All this will need to be taken into account.

If you're not using a checkout however, (I can't imagine how you would use a checkout with a price range) then it's fairly trivial to add additional attributes to the product which will give you a min and max price. You can do this with minimal coding and no module creation. Creating Attributes. You'd only need to code the output of this field to the screen:

<?php echo $_product->getMinPrice(); ?>-<?php echo $_product->getMaxPrice(); ?>
Related Topic