Hi David
can information about the merchant be placed on the product page like the merchant logo?
Brent
Hi david
sorry, I did not make it clear, I have the logo already on the page, what I wanted was to somehow have merchant info also on the page,the idea is to have contact details etc for each merchant on the product page.
brent
Hi Brent,
Ah - I understand - something very similar posted here whereby you can create .html files containing additional merchant info. The code described in that thread is for use within the price comparison table foreach loop, but can be used wherever a merchant name is in context.
For example within the main product information in html/product.php instead of $product["merchant"] you would use $mainProduct["merchant"], e.g.
<?php
$merchantinfoFilename = "merchantinfo/".$mainProduct["merchant"].".html";
if (file_exists($merchantinfoFilename))
{
require($merchantinfoFilename);
}
?>
Hope this helps!
Cheers,
David.
--
PriceTapestry.com
Hi Brent,
Sure - within the product section of the product page (html/product.php) the merchant name(s) for the joint cheapest products are displayed by this code within line 28:
<strong><?php print $priceProduct["merchant"]; ?></strong>
...so to use the merchant logo (if exists), REPLACE the above with:
<?php print (file_exists("logos/".$priceProduct["merchant"])?"<img src='".$config_baseHREF."logos/".$priceProduct["merchant"]."' border='0' />":$product["merchant"]); ?>
Cheers,
David.
--
PriceTapestry.com