at ? Retailers
Submitted by philstone on Tue, 2006-05-23 08:56.Price Tapestry
Hi dave
what would be the best way to impliment a code that would for example change the product search on buy24-7 for "Philips 37PF9631D" that currently says
from £1599.77
Compare Prices
to
£1599.77 - £1648.93
from 3 stores
Regards
Phil
Hi Phil,
The number of merchants is in the query, and available in the $product array (which is used to display each result in html/searchresults.php) as the key "numMerchants".
To display the "from n stores" text instead of "Compare Prices", change the following line:
<span class='nobr'><a href='<?php print $product["productHREF"]; ?>'><?php print translate("Compare Prices"); ?></a></span>to:
<span class='nobr'><a href='<?php print $product["productHREF"]; ?>'>from <?php print $product["numMerchants"] ?> stores</a></span>..you can do the same in html/featured.php if required.
Cheers,
David.