
內容簡介
AmazonJS 可在 WordPress 文章和頁面中顯示 Amazon 產品。AmazonJS 在 WordPress 文章表單中新增了一個搜尋表單。然後,您可以通過關鍵字、ASIN 或 URL 搜索 Amazon 產品,並從搜索結果中添加短碼或 HTML 到您的文章中。
AmazonJS 使用 `amazonjs’ 短碼和 jQuery 模板顯示 Amazon 產品。在運行時查看工作數據,Javascript 允許各種表示形式。AmazonJS 有一些 Amazon 產品模板,可以如何顯示不同的 Amazon 產品,例如書籍和音樂。
需要 WorPress 3.3 或更高版本
需要您的亞馬遜產品廣告 API
插件使用 Transients API 使用 API 快取
通過使用 jQuery 模板自定義模板
支持 HTTPS
支持亞馬遜領域 (美國, 英國, 德國, 法國, 日本, 加拿大, 中國, 意大利, 西班牙)
使用亞馬遜產品廣告 API
AmazonJS 需要亞馬遜產品廣告 API,
才能从 ASIN 或关键字获取 Amazon 产品信息。
因此,您必须注册亚马逊产品广告 API,并指定您的访问密钥和秘密访问密钥。
您还必须为 Amazon Associates 设置您的联盟标签。
短碼
AmazonJS 在編輯文章頁面的編輯器上方添加媒體鏈接。單擊時會顯示搜索 Amazon 產品的表單。 AmazonJS 會從表單中添加簡單的 HTML 代碼(如 WP-amazon)或 amazonjs 短碼。
AmazonJS 支持 `amazonjs’ 短碼。
例如:
[amazonjs asin="B00005ED8E" locale="JP" tmpl="Small" title="D・N・A"]
asin:(必填)ASIN(Amazon 的 ProductID)
locale:(必填) US、UK、DE、FR、JP、CA、CN、IT 或 ES
tmpl:(可選)Small。如果 tmpl 為空,則通過 Amazon 產品廣告 API 的產品組應用模板。
title:(可選)用於加載消息。
imgsize:(可選)縮略圖圖像大小。small、medium 或 large。
使用 Javascript 顯示
首先,AmazonJS 在服務器端從 amazonjs 短碼中轉換 標記。其次,在 window.load 中,amazonjs.js(插件添加)將使用 jQuery 模板將 標記替換為格式化的 html,以顯示 Amazon 產品。
链接
Github 存储库(最新源代码和旧版本): https://github.com/makotokw/wp-amazonjs
日本文章:http://blog.makotokw.com/portfolio/wordpress/amazonjs/
外掛標籤
開發者團隊
📦 歷史版本下載
原文外掛簡介
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/
