Content Management
MTAmazon Sample Templates
Freshness Warning
This blog post is over 22 years old. It's possible that the information you read below isn't current and the links no longer work.
9 Aug 2002
There’s been several requests for some sample templates for MTAmazon. Here are a few templates that will help you understand some of your different formatting and search options.
Simple list
If you want your list to look like this...
[removed, due to Amazon API change]
... you can use the following template:
<MTAmazon search="usability" devtoken="DMRKTBU9F2P28" lastn="3"> <p><a href="<MTAmazonLink>"> <img src="<MTAmazonSmallImage>" align="left" border="0" hspace="5" vspace="5" /><MTAmazonTitle> </a><br /> <span class="small">By <MTAmazonAuthor></span><br /> List Price: <span class="listprice"><MTAmazonListPrice></span><br /> Sale Price: <span class="saleprice"><MTAmazonSalePrice></span><br /> Published <MTAmazonReleaseDate format="%B %e, %Y"><br clear="all" /></p> </MTAmazon>
Shopping Cart Links
You can also add a button to your product display that allows your readers to add an item directly to their Amazon.com shopping cart...
[removed, due to Amazon API change]
... by using this template ...
<MTAmazon search="B00003CWT6" method="Asin" devtoken="XXXXXXXXXX" lastn="1"> <img src="<MTAmazonMediumImage>" align="left" border="0" hspace="5" /> <b><MTAmazonTitle></b><br /> <MTAmazonManufacturer> <p>Amazon Price: <b><MTAmazonSalePrice></b></p> <form method="POST" action="http://www.amazon.com/o/dt/assoc/handle-buy-box=<MTAmazonASIN>"> <input type="hidden" name="asin.<MTAmazonASIN>" value="1"> <input type="hidden" name="tag-value" value="<MTAmazonAssociateID>"> <input type="hidden" name="tag_value" value="<MTAmazonAssociateID>"> <input type="hidden" name="dev-tag-value" value="<MTAmazonDevToken>"> <input type="submit" name="submit.add-to-cart" value="Buy From Amazon.com"> </form><br clear="all" /></MTAmazon>
Browsing for Products
You can display items as they appear on Amazon’s catalog pages by using a BrowseNode search...
[removed, due to Amazon API change]
... using this template:
<MTAmazon search="499058" devtoken="XXXXXXXXXXX" method="BrowseNode" line="photo" lastn="3"> <p><a href="<MTAmazonLink>"><b><MTAmazonTitle></b><br /> <img src="<MTAmazonSmallImage>" align="left" border="0" hspace="5" vspace="5" /> </a> List Price: <span class="listprice"><MTAmazonListPrice></span><br /> Sale Price: <span class="saleprice"><MTAmazonSalePrice></span><br clear="all" /></p> </MTAmazon>
Yours?
Do you have an interesting way to use MTAmazon? Give us a URL of your site below and tell us what your template looks like. Remember to change all < to < and all > to > if you copy your MTAmazon template into your comment.