mahiwaga

I'm not really all that mysterious

amazon_buybox

amazon_buybox is a plugin that generates code for items at Amazon.com, creating a link to the description, pulling the image file, and creating a “buy” button.

The following element <blosxom:amazon-buybox asin="ASIN (Amazon Standard Identification Number)">description</blosxom:amazon-buybox> will be turned into:

     <div class="amazon-desc">description</div>  
	  <div class="amazon-image">  
	  <a href="http://www.amazon.com/exec/obidos/ASIN/B000003RGY/ref=nosim/associate ID">  
	  <img src="http://images.amazon.com/images/P/B000003RGY.01.TZZZZZZZ.jpg" alt="picture of description" />  
     </a>  
     </div>  
     <form method="POST" action="http://www.amazon.com/o/dt/assoc/handle-buy-box=B000003RGY">  
     <input type="hidden" name="asin.B000003RGY" value="1" />  
     <input type="hidden" name="tag-value" value="associate ID" />  
     <input type="hidden" name="tag_value" value="associate ID" />  
     <input type="submit" name="submit.add-to-cart" value="Buy from Amazon.com" />  
     </form>
       

You can customize the elements that contain the description, the image, and the whole thing.

See this entry for an example.

initially published online on:
page regenerated on: