View Full Version : Is it possible to change the buy link to merchant logo?
Hi
does anyone know how to change the buy image link to the merchant logo for the product?
Ken
Discovered how to do it
In templates/template_2a_red/elements/product_display_list.tpl
replace
<span class="sw_productbuy">
{if #PopUpWindow#=='yes'}
<a href="#" onclick="window.open('{$oProduct->sProductBuyLink}', '', '{#PopUpSettings#}')">
{else}
<a href="{$oProduct->sProductBuyLink}">
{/if}
{#currencySign#}{$oProduct->fSearchPrice|number_format:2} <img src="{$templatePath}/images/buy_button.gif" title="Buy Now!" /> </a>
</span>
With
<span class="sw_productbuy">
{if #PopUpWindow#=='yes'}
<a href="#" onclick="window.open('{$oProduct->sProductBuyLink}', '', '{#PopUpSettings#}')">
{else}
Price: <a href="{$oProduct->sProductBuyLink}">{#currencySign#}{$oProduct->fSearchPrice|number_format:2}</a>
{/if}
<a href="{$oProduct->sProductBuyLink}">
<img src="{$oProduct->sMerchantLogoUrl|default:$noLogo} " title="Buy Now!" alt= "{$oProduct->sMerchantName}" border="0" />
</a>
</span>
and this is what we get
http://computers-site.com/search.php?q=advent+laptop&c=61&iListOffset=20
trading365.co.uk
31-01-08, 18:55
Ken,
This is excellent ! - Many thanks !, I was just about to post about the same question !!!
I have also just taken a look at your website and I wonder if you could assit me in integrating Google Adsense in the same way you have done ?
I just need to know what files to paste the AdSense code in to. I would like the Ads to appear on the right hand side of the product results. You can see my site here : http://www.aspenit.co.uk/shop/index.php
Also, would you happen to know how to integrate eBay product search results ?, I currently use the CJ.com scheme for eBay on the main site http://www.aspenit.co.uk (http://www.aspenit.co.uk)and http://www.trading365.co.uk
Ideally once I get this all sussed I want to have trading365.co.uk (http://www.trading365.co.uk)fully integrated with AffiliateWindow and the CJ.com eBay scheme with Adsense Ads throughout.
AspenIT.co.uk (http://www.aspenit.co.uk)will then just specialise in all things IT and Internet (as was my original intention).
Really would appreciate your help and advice.
Best Wishes
Steve