You are here:  » Merchant Logos included

Support Forum



Merchant Logos included

Submitted by Paul1107 on Sun, 2010-11-07 21:41 in

Hi David,

I've seen a couple of posts regarding this, and the ones I've read are using the logos in product.php I think?

But I would like them to be used in Searchresults.php, external.php & product.php as per the unique(ish) nature of the way my site uses PT?

It that doable please?

Regards

Paul

Submitted by support on Mon, 2010-11-08 09:13

Hi Paul,

Merchant logos can be implemented anywhere that a merchant name is in scope - bear in mind that with search results, if it is a compared results (e.g. more than one merchant stocking the same product), the $product["merchant] at that point is undefined and not necessarily the cheapest merchant.

In general, anywhere within the html/* files, you can replace (and being compatible with external.php:

print $product["merchant"];

if (file_exists($external_path."logos/".$product["merchant"]))
{
  print "<img src='".$config_baseHREF."logos/".$product["merchant"]."' />";
}
else
{
  print $product["merchant"];
}

($external_path will be empty when not being called via external.php so it's fine to include in the code)...

Cheers,
David.
--
PriceTapestry.com

Submitted by Paul1107 on Mon, 2010-11-08 09:28

Thnaks David,

I'm assuming that I can have a /logo/ folder in the installation and the logos have to have exactly the same file names as the feed without any extensions?

Is that correct?

Cheers

Paul

Submitted by support on Mon, 2010-11-08 09:32

Spot on, Paul!