You are here:  » at ? Retailers


at ? Retailers

Submitted by philstone on Tue, 2006-05-23 08:56 in

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

Submitted by support on Tue, 2006-05-23 10:32

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.

Submitted by philstone on Tue, 2006-05-23 11:10

thanks dave

works great!!

phil