Amazon Hacks Free Open Book

Amazon Hacks

Previous Section Next Section

Hack 39 Add Product Advice Remotely

figs/moderate.giffigs/hack39.gif

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.

Figure 3-6. Customer Advice form
figs/amzh_0306.gif

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.

39.1 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>

<!-- Hidden Form Fields -->
<input type=hidden name="method" value="GET">
<input type=hidden name="opt" value="n">
<input type=hidden name="cont-page" value="cm/custrec-signed-in-continue">
<input type=hidden name="cont-type" value="cust-rec">
<input type=hidden name="response" value="rate-item">
<input type=hidden name="page" [RETURN]
       value="community/recommend-sign-in-secure.html">
<input type=hidden name="secure-rate-item-next-page"[RETURN]
       value="tg/stores/detail/-/books/insert ASIN /advice">
<input type=hidden name="rate-item-next-page"[RETURN]
       value="tg/stores/detail/-/books/insert ASIN /advice">
<input type=hidden name="rated-item-id" value="insert ASIN ">
<input type=hidden name="rated-item-value" value="+">
<input type=hidden name="creator-customer-id" value="insert Amazon ID ">
<input type=hidden name="require-valid-asin" value="true">

<input type="submit" value="add advice">
</form>
</body>
</html>

39.2 Running the Hack

Because this is standard HTML, you can add it to any existing web page. If you'd like to take away the user's choice of "in addition to" or "instead of," you can make the visible form fields invisible by changing the field type for the choice you want to use to hidden, and removing the alternate choice.

    Previous Section Next Section
    Index: [SYMBOL][A][B][C][D][E][F][G][H][I][J][L][M][N][O][P][Q][R][S][T][U][V][W][X][Z]


         Main Menu
    Main Page
    Table of content
    Copyright
    Credits
    Foreword
    Preface
    Chapter 1. Browsing and Searching
    Chapter 2. Controlling Your Information
    Chapter 3. Participating in the Amazon Community
    3.1 Hacks #27-48
    3.2 Community Features
    3.3 Accessing Community Features
    Hack 27 Write a Review
    Hack 28 Link Directly to Reviews of a Product
    Hack 29 Post a Review from a Remote Site
    Hack 30 Add Pop-up Amazon Reviews to Your Web Site
    Hack 31 Send an Email Alert if a Review Is Added to a Product
    Hack 32 Sort Books by Average Customer Rating
    Hack 33 Sort Your Recommendations by Average Customer Rating
    Hack 34 Scrape Product Reviews
    Hack 35 Publish Your Amazon Reviews on Your Site
    Hack 36 Share the Love (and Savings!) with Your Friends
    Hack 37 Create a Guide
    Hack 38 Post a Guide Remotely
    Hack 39 Add Product Advice Remotely
    Hack 40 Scrape Customer Advice
    Hack 41 Create a Listmania! List
    Hack 42 Gather Your Friends on Amazon
    Hack 43 Gather Your Friends' Amazon IDs
    Hack 44 Get Purchase Circle Products with Screen Scraping
    Hack 45 Find Purchase Circles by Zip Code
    Hack 46 Track the Ranks of Books Over Time
    Hack 47 Group Conversations About Books
    Hack 48 Add a 'Currently Reading' List to Your Web Site
    Chapter 4. Selling Through Amazon
    Chapter 5. Associates Program
    Chapter 6. Amazon Web Services
    Colophon
    Index


    More Books
    PHP Hacks
    Processing Xml With Java - A Guide To Sax, Dom, Jdom, Jaxp, And Trax
    The Koran (Holy Qur'an)
    Macromedia Flash 8 Bible
    Search Engine Optimization for Dummies
    YouTube Traffic
    PHP 5 for Dummies
    Harry Potter and The Chamber of Secrets
    Harry Potter and the Sorcerer's Stone
    The Pilgrim's Progress
    Wireless Hacks
    Flash Hacks. 100 Industrial-Strength Tips & Tools
    PayPal Hacks. 100 Industrial-Strength Tips and Tools
    Amazon Hacks
    Pdf Hacks
    The Da Vinci Code
    Google Hacks
    The Holy Bible
    Windows XP For Dummies
    Harry Potter and the Half-Blood Prince
    Seo Book
    Upgrading and Repairing Networks
    Macromedia Dreamweaver 8 UNLEASHED
    Windows XP Annoyances
    Windows XP Hacks
    Microsoft Windows XP Power Toolkit
    Teach Yourself MS Office In 24Hours
    iPod & iTunes Missing Manual
    PC Hacks 100 Industrial-Strength Tips and Tools
    PC Overclocking, Optimization, and Tuning - 2th Edition
    PC Hardware In A Nutshell 3rd Edition
    PC Hardware in a Nutshell, 2nd Edition
    Upgrading and Repairing PCs
    Google for Dummies
    MySQL Cookbook
    Teach Yourself Macromedia Flash 8 In 24 Hours
    PHP CookBook
    Sams Teach Yourself JavaScript in 24 Hours
    PHP5 Manual
    Free Games Paper Airplanes
    500 Juegos Gratis 500 Giochi Gratis 500 Jeux Gratuits 500 Jogos Gratis 500 Kostenlose Spiele