You are here:  » Merchant logo are not showing up


Merchant logo are not showing up

Submitted by fstore on Wed, 2013-05-15 13:50 in

Hi David
I have moved my hosting provider.
after doing the site migration I noticed that merchant logos are not showing up anywhere.

Merchant logo are showing up at backend under pt>admin>merchant logo> setting.

My site url is {link saved}

please advise what could be the problem.

Thanks
Hassan

Submitted by support on Wed, 2013-05-15 13:55

Hello Hassan,

If merchant logos are not showing (but show fine in /pt/admin/ Merchant Logos) it is most likely that one or both of the Base HREF and Install Path settings (wp-admin > Settings > PriceTapestry.org, scroll down to the External section) are either not set or incorrect.

You can find the values for them on the /pt/admin/ Support Info page, simply copy and paste into the plugin configuration and that should be all it is...

Cheers,
David.
--
PriceTapestry.com

Submitted by fstore on Thu, 2013-05-16 13:30

David
Both Base HREF and Install Path are OK.

Feature product section showing logo OK too...

Search page is not showing the logo...could that be related to search page php file?
should i send you the file or access to my backend?

Submitted by support on Thu, 2013-05-16 15:14

Hello Hassan,

Search results don't display the merchant logo by default so it sounds like you may have made some modifications to implement this in which case, it might be just that the necessary variables have not been declared global. It may just be a case of adding the following lines immediately above any modification to show merchant logos elsewhere:

  global $pto_config_externalPath;
  global $pto_config_externalBaseHREF;

...but if that's not it, sure - email me your modified file(s) and I'll check it out for you...

Cheers,
David.
--
PriceTapestry.com

Submitted by fstore on Sun, 2013-05-26 12:44

David
The above code is already exist.

I have send you my file to your email.

Regards
Hassan

Submitted by Selector84 on Tue, 2016-01-26 00:42

Hi David,

Using beta 3 wordpress plugin and couldn't get the image to show for merchant so modified to this on to_product.php and now works

line 99

<?php
    
if ($pto_config_externalPath)
    {
      if (
file_exists($pto_config_externalPath."logos/".$product->merchant).'.img')
      {
        
$merchant_html "<img border='0' src='".$pto_config_externalBaseHREF."logos/".str_replace(" ","%20",$product->merchant).".img' />";
      }
    }
?>

Base HREF is correct, is this modification needed to include the .img?

Submitted by support on Tue, 2016-01-26 09:28

Hi,

That's correct - the .img extension for logos was introduced in 15/09A so I'll update the beta accordingly - thanks for bringing to my attention.

Cheers,
David.
--
PriceTapestry.com