[wordpress插件] Amazon JS亚马逊JS

wordpress 插件 文章 2020-02-17 12:10 976 0 全屏看文

AI助手支持GPT4.0

评分
92
描述

AmazonJS displays Amazon products on your WordPress posts and pages.

AmazonJS在您的WordPress帖子和页面上显示Amazon产品。

AmazonJS adds a search form to WordPress post form.

AmazonJS在WordPress帖子表单中添加了搜索表单。

Then you can search Amazon products by keyword, ASIN or URL, and add shortcode or html to your post from results of search.

然后,您可以按关键字,ASIN或URL搜索Amazon产品,并根据搜索结果向您的帖子添加简码或html。

AmazonJS uses `amazonjs’ shortcode and jQuery template to display Amazon products.

AmazonJS使用“ amazonjs”简码和jQuery模板来显示Amazon产品。

View the work data at runtime, Javascript allows various representations.

在运行时查看工作数据,Javascript允许各种表示形式。

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.

AmazonJS为每个产品组都有一些针对亚马逊产品的模板,它可以显示不同的亚马逊产品,例如书籍和音乐。

    Using Amazon Product Advertising API

    使用Amazon Product Advertising API

    AmazonJS requires Amazon Product Advertising API

    AmazonJS需要 Amazon产品广告API

    />

    />

    in order to get Amazon product information from ASIN or keyword.

    为了从ASIN或关键字获取Amazon产品信息。

    Thus, you have to sign up Amazon Product Advertising API and specify your Access Key and Secret Access Key.

    因此,您必须注册Amazon Product Advertising API,并指定您的访问密钥秘密访问密钥

    And you must set your associate tags for Amazon Associates also.

    并且您还必须为Amazon Associates设置您的关联标签。

    Shortcode

    简码

    AmazonJS adds a media link above an editor in the editing post page.

    AmazonJS在编辑帖子页面的编辑器上方添加一个媒体链接。

    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从表单中添加了一个简单的html代码(例如WP-amazon)或 amazonjs 短代码。

    AmazonJS supports the `amazonjs’ shortcode.

    AmazonJS支持`amazonjs'短代码。

    ex)

      ex)

    [amazonjs asin="B00005ED8E" locale="JP" tmpl="Small" title="D・N・A"]

    [amazonjs asin =“ B00005ED8E” locale =“ JP” tmpl =“ Small” title =“ D ・ N ・ A”]

      • asin: (required) ASIN (ProductID of Amazon)
      • asin :(必需)ASIN(Amazon的ProductID)

      • locale: (required) US, UK, DE, FR

      • 语言环境 :(必填) US UK DE FR

        , JP, CA, CN, IT or ES

      • JP CA CN IT ES

      • tmpl: (optional) Small.

      • tmpl :(可选) Small

        if tmpl is empty, apply a template via Product Group of Amazon Product Advertising API.

      • 如果tmpl为空,请通过Amazon Product Advertising API的产品组应用模板。

      • title: (optional) It will be used for loading message.
      • title :(可选)将用于加载消息。

      • imgsize: (optional) Thumbnail image size.

      • imgsize :(可选)缩略图图像的大小。

        small, medium or large.

      • small medium large

      Display by javascript

      通过javascript显示

      In first, AmazonJS converts tag from amazonjs short code in server side.

      首先,AmazonJS从服务器端的 amazonjs 短代码转换 标签。

      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.

      其次,在window.load中, amazonjs.js (由插件添加)将使用格式化的html替换 标签,以使用jQuery模板显示Amazon Product。

      Link

      链接

        • GitHub Repository (latest source code and old versions): https://github.com/makotokw/wp-amazonjs
        • GitHub存储库(最新源代码和旧版本):https://github.com/makotokw/wp-amazonjs

        • Japanese article: http://blog.makotokw.com/portfolio/wordpress/amazonjs/
        • 日语文章:http://blog.makotokw.com/portfolio/wordpress/amazonjs/

安装步骤

    1. Upload amazonjs to the /wp-content/plugins/ directory
    2. amazonjs 上载到 / wp-content / plugins / 目录

    3. Activate the plugin through the Plugins menu in WordPress
    4. 通过WordPress中的 Plugins 菜单激活插件

    5. Set your associate tags and your keys of the Product Advertising API through the Settings > Amazonjs menu in WordPress
    6. 通过WordPress中的 Settings > Amazonjs 菜单设置您的关联标签和产品广告API的密钥

    Directory structure

    目录结构

    /wp-content  

      / wp-content  

    /plugins/amazonjs    

    / plugins / amazonjs    

    + /css/*    

    + / css / *    

    + /images/*    

    + /图片/ *    

    + /js/*    

    + / js / *    

    + /languages/*    

    + /语言/ *    

    + /lib/*    

    + / lib / *    

    - *.*

    -*。*

    Settings

    设置

      1. Access to /wp-admin/ and click Settings > AmazonJS on menu
      2. 访问/ wp-admin /,然后在菜单上单击设置> AmazonJS

      3. Set your keys for Product Advertising API
      4. 设置产品广告API的密钥

      5. Set your Amazon Associate Tag via Amazon Domain
      6. 通过Amazon Domain设置您的Amazon Associate Tag

下载地址
https://downloads.wordpress.org/plugin/amazonjs.zip
-EOF-

AI助手支持GPT4.0