投稿への Amazon の商品の簡単な挿入と jQuery テンプレートを使った表示カスタマイズ
AmazonJS displays Amazon products on your WordPress posts and pages. AmazonJS adds a search form to WordPress post form. Then you can search Amazon products by keyword, ASIN or URL, and add shortcode or html to your post from results of search.
AmazonJS requires Amazon Product Advertising API in order to get Amazon product information from ASIN or keyword. Thus, you have to sign up Amazon Product Advertising API and specify your Access Key and Secret Access Key. And you must set your associate tags for Amazon Associates also.
AmazonJS adds a media link above an editor in the editing post page. The form that searches an Amazon product is shown when you click it. AmazonJS adds a simple html code (like WP-amazon) or an
amazonjs shortcode from form.
AmazonJS supports the `amazonjs' shortcode.
ex) [amazonjs asin="B00005ED8E" locale="JP" tmpl="Small" title="D・N・A"]
Small. if tmpl is empty, apply a template via Product Group of Amazon Product Advertising API.
In first, AmazonJS converts <a/> tag from
amazonjs short code in server side. Second, in window.load,
amazonjs.js (it is added by plugin) will replace <a/> tag with formatted html to display Amazon Product by using jQuery template.