PDA

View Full Version : Amazon.Com Affiliate Link


mymichael2
11-27-2006, 07:58 PM
I would like to remove the esyndicat ID from my directory's "View Amazon Info" links, and add in my Amazon.Com affiliate ID.

Is there a simple way to do this?

Dave Baker
11-27-2006, 08:27 PM
Hello mymichael2,
Open link-display.tpl and try to find this line

{if $config.amazon_link}
| <a href="http://partner.alexa.com/amzn/redirect_to_detail?amzn_id=esyndicatfree-20&amp;url={$link.url}">{$lang.view_amazon}</a>
{/if}

mymichael2
11-27-2006, 10:49 PM
Thanks. It looks like this will work perfectly.

I also set the link to open a new browser window (blank), so as to keep visitors on my site.

Mominur Rahman
02-24-2007, 05:47 PM
I also set the link to open a new browser window (blank), so as to keep visitors on my site.

How to do that for v2.0.01?

Dave Baker
02-25-2007, 04:07 PM
Hello Mominur Rahman,
Open link-display.tpl and try to find this line:

{if $config.amazon_link}
| <a href="http://partner.alexa.com/amzn/redirect_to_detail?amzn_id=esyndicatfree-20&amp;url={$link.url}">{$lang.view_amazon}</a>
{/if}

Add your affiliate ID with this parameter:

target="_blank"

Your code with the parameter should looks like this:

{if $config.amazon_link}
| <a href="http://partner.alexa.com/amzn/redirect_to_detail?amzn_id=esyndicatfree-20&amp;url={$link.url}" target="_blank">{$lang.view_amazon}</a>
{/if}

Mominur Rahman
02-25-2007, 06:15 PM
Thank you dave, it works.

Dave Baker
02-25-2007, 07:57 PM
You're welcome!