AmazonJS

Easy to use interface to add an amazon product to your post and display it by using jQuery template.

Author:makoto_kw (profile at wordpress.org)
WordPress version required:3.3
WordPress version tested:5.2.17
Plugin version:0.10
Added to WordPress repository:29-12-2010
Last updated:20-11-2019
Warning! This plugin has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.
Rating, %:88
Rated by:12
Plugin URI:http://wordpress.org/extend/plugins/amazonjs/
Total downloads:141 665
Active installs:10 000+
plugin download
Click to start download

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 uses `amazonjs’ shortcode and jQuery template to display Amazon products. View the work data at runtime, Javascript allows various representations. AmazonJS has some template to Amazon products for each Product Group, it can how to display the different Amazon products, such as books and music.

  • Requires WorPress 3.3 or later
  • Requires your Amazon Product Advertising API
  • Plugin Uses API cache by using Transients API
  • Customize template by using jQuery template
  • HTTPS Support
  • Supports Amazon domains (US, UK, Germany, France, Japan, Canada, China, Italy, Spain)

Using Amazon Product Advertising API

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.

Shortcode

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"]
  • asin: (required) ASIN (ProductID of Amazon)
  • locale: (required) US, UK, DE, FR, JP, CA, CN, IT or ES
  • tmpl: (optional) Small. if tmpl is empty, apply a template via Product Group of Amazon Product Advertising API.
  • title: (optional) It will be used for loading message.
  • imgsize: (optional) Thumbnail image size. small, medium or large.

Display by javascript

In first, AmazonJS converts tag from amazonjs short code in server side. Second, in window.load, amazonjs.js (it is added by plugin) will replace tag with formatted html to display Amazon Product by using jQuery template.

Link

  • GitHub Repository (latest source code and old versions): https://github.com/makotokw/wp-amazonjs
  • Japanese article: http://blog.makotokw.com/portfolio/wordpress/amazonjs/