O'Reilly logo

Amazon Hacks by Paul Bausch

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Add Product Advice Remotely

Allow your site’s visitors to add product buying advice directly to Amazon.

The Customer Advice feature lets you recommend another product in addition to or instead of the current product. You can usually find the form on the product detail page under the heading “What’s Your Advice?”. If it’s not there, you can always find the form on the product’s advice page:

http://amazon.com/o/tg/detail/-/insert ASIN/?vi=advice

The form shown in Figure 3-6 accepts an ASIN and allows you to choose how you’re recommending the item.

Customer Advice form

Figure 3-6. Customer Advice form

If you’d like to integrate this feature within a remote site, you can duplicate the form elements with HTML. Keep in mind that your visitors will be able to add advice from your site only if they’re registered Amazon users.

The Code

This code takes the key elements from the product advice form at Amazon. Each advice form links to a specific item, and you’ll need to include the ASIN for that product where indicated.

<html>
<body>
<form action="http://amazon.com/exec/obidos/flex-sign-in/ref=cm_custrec_f_advice/" method=post> <!-- Visible Form Fields --> <b>I recommend:</b> <input type=text name="related-asin" size=10><br><br> <input type=radio name="rating-type" value="customer-accessories" checked> in addition to this product<br> <input type=radio name="rating-type" value="customer-recommends">instead of this product<br><br> ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required