You are here:  » limiting prices when comparing

Support Forum



limiting prices when comparing

Submitted by paullas on Sat, 2011-09-17 14:34 in

hi david

is it possible to limit the amout of prices that show when a product has more than 1 price. for example i have a product showing that is availbale from 7 different merchants all at different prices which makes the page look bad, so is it possible to only limit it to show the best 3 prices/merhants only.

thanks

Submitted by support on Sat, 2011-09-17 16:38

Hi paullas,

Sure - for all distributions it's easiest to implement this in html/prices.php. Look for the following code at line 9:

    <?php foreach($prices["products"] as $product): ?>

...and REPLACE with:

     <?php $maxPrices 3?>
     <?php foreach($prices["products"] as $product): ?>
     <?php $maxPrices--;if (!$maxPrices) break; ?>

Cheers,
David.
--
PriceTapestry.com