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 Items to a Wish List Remotely

A simple HTML form allows your visitors to add items you mention to their own wish lists.

If you list items on your own web site and you’d like to let people add them to their Amazon wish lists with the click of a button, you can do this with a simple HTML form.

To set up the form, you need to know a product’s ASIN [Hack #1] and (optionally) an Amazon associate tag Section 5.2.

<form method="POST" [RETURN]
    action="http://www.amazon.com/o/dt/assoc/handle-buy-box=insert ASIN ">
<input type="hidden" name="asin.insert ASIN" value="1">
<input type="hidden" name="tag-value" value="insert associate tag"> 
<input type="hidden" name="tag_value" value="insert associate tag">
<input type="submit" name="submit.add-to-registry.wishlist"[RETURN]
       value="Add to Amazon.com Wish List">
</form>

Just fill in the ASIN and affiliate tag in the code and include it on any web page. If someone has the Amazon identity cookie or is logged in, the item will be added directly to their wish list when they click the button. Otherwise, they’ll be required to sign in at Amazon before the item is added.

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