2005
How to Create Amazon’s Recommended Product Links Which Automatically Adapted to Our Post
Sponsored Links
To celebrate my first sales on Amazon :p here’s a small Amazon-related tutorial. It’s about how to make a Recommended Product Links which automatically adapted to our post title or category. If we posted about Firefox, the Recommended Product Links box would display any products that related to Firefox. If we posted about Girls, it’d display any girls-related product. And so on.
To get a better idea of how it works, check this page. I used this method on Song Lyric Collection website, to display Recommended Product Links based on the post category (artist/band name). As you can see in the sample page above, the Recommended Product Links box automatically display any Music product which is related to Backstreet Boys. If you move on to another category, the content of the Recommended Product Links box will also changed.
Now let the tutorial begin.
First, login to your Amazon Associates account, and choose Build Links - Recommended Product Links.
Next, choose the type of product (Product Line) you want to display on the Recommended Product Links box. For example, choose Books. Then in the Keyword textbox, just put anything inside it (I wrote the text ‘dummy‘). We’re going to change it later, so it doesn’t matter what keyword you write right now. See screenshot below.
Select your preferred Recommended Product Links box dimension. I use 480×240 box on Song Lyric Collection website.
Now you got the HTML code for this Recommended Product Links. Highlight and Copy the code.
<iframe src="http://rcm.amazon.com/e/cm?t=your_id&o=1&p=15&l=st1&mode=books&search=dummy&fc1=&=1&lc1=<1=&bg1=&f=ifr” marginwidth=”0″ marginheight=”0″ width=”468″ height=”240″ border=”0″ frameborder=”0″ style=”border:none;” scrolling=”no”></iframe>
Look at the bold part of the code, &search=dummy. As I already mentioned above, we’re going to changed this. So, cut that piece of code and move it to the end of the src property. Here’s how it’d look like after the changed:
<iframe src="http://rcm.amazon.com/e/cm?t=your_id&o=1&p=15&l=st1&mode=books&fc1=&=1&lc1=<1=&bg1=&f=ifr&search=dummy” marginwidth=”0″ marginheight=”0″ width=”468″ height=”240″ border=”0″ frameborder=”0″ style=”border:none;” scrolling=”no”></iframe>
Our last step before we put the code to our Wordpress theme.
Change the ‘dummy’ text with:
<?php the_title(); ?>
if you want the Recommended Product Links box to display any product related to your post title.
Or,
<?php single_cat_title(); ?>
if you want the Recommended Product Links box to display any product related to your post category.
Here’s the final code after all the changes:
<iframe src="http://rcm.amazon.com/e/cm?t=your_id&o=1&p=15&l=st1&mode=books&fc1=&=1&lc1=<1=&bg1=&f=ifr&search=< ?php the_title(); ?>” marginwidth=”0″ marginheight=”0″ width=”468″ height=”240″ border=”0″ frameborder=”0″ style=”border:none;” scrolling=”no”></iframe>
Now update your theme and watch the result. Remember, if you make the box to adapted to your post title, you can’t use it on your Archive template. You can only use it on your Post and Page template. For category adaption, it’d work on Archive, Post, and Page template.
Have fun with Amazon :))




And while you're here, why don't you check out our other articles:
Pssst! Most people are coming to this page searching for:
We are pleased to offer you this exciting, new, and entirely free professional resource. Visit our 



kamgra , levitra , meridia , buy generic viagra kamara online http://apcalis-apin.com
This one makes sence “One’s first step in wisdom is to kuesstion everything - and one’s last is to come to terms with everything.”
Hi Mr, Are you still using it now ? its interesting for me
Hi
Is there any way of replacing “&mode=books” with something that will use all categories?
I would like my results to show anything at amazon relating to search, not just books
I tried removing it, but the results are still all books.
I have tried “&mode=all” and such like with little success.
Any help would be super
Many thanks
Mr M
Great post!
Have you ever encountered borders that refuse to go away?
I’ve selected no borders, to fit in with the sites look/feel, yet some products automatically add borders, others don’t. it looks sloppy and makes me want to remove all the links. I’ve looked everywhere in the code, take a look at my amazon product links for the guitars at:
http://www.acousticguitarnews.info
Any ideas or suggestions?
Email me at billyjack7ATgmail.com