WordPress.org

Plugin Directory

Test out the new Plugin Directory and let us know what you think.

Amazon Auto Links - Amazon Associates Affiliate Plugin

Generates links of Amazon products just coming out today. Pick categories and they appear even in JavaScript disabled browsers.

Other Notes

Shortcode and Function Parameters

The following parameters can be used for the shortcode, [amazon_auto_links] or the PHP function of the plugin, AmazonAutoLinks()

id - the unit ID
[amazon_auto_links id="123"]
<?php AmazonAutoLinks( array( 'id' => 123 ) ); ?>
label - the label associated with the units
[amazon_auto_links label="WordPress"]
<?php AmazonAutoLinks( array( 'label' => 'WordPress' ) ); ?>
asin - ASINs (product IDs) separated by commas (`,`).
[amazon_auto_links asin="B016ZNRC0Q, B00ZV9PXP2"]
<?php AmazonAutoLinks( array( 'asin' => 'B016ZNRC0Q, B00ZV9PXP2' ) ); ?>
search - Search keywords separated by commas (`,`).
[amazon_auto_links search="WordPress"]
<?php AmazonAutoLinks( array( 'search' => 'WordPress' ) ); ?>

The id, asin and search arguments cannot be used together.

Optionally, the following arguments may be set.

  • country - (string) the locale of the store. Accepted values are CA, 'CN, 'FR, 'DE, 'IT, 'JP, 'UK, 'ES, 'US, 'IN, 'BR, and 'MX`.
  • associate_id - (string) the Amazon Associates ID for the affiliate.
  • count - (integer) determines how many items should be displayed.
  • image_size - (integer) the image size in pixels.
  • title_length - (integer) the maximum title character length. Set -1 for no limit. Default: -1.
  • description_length - (integer) the maximum description character length. Set -1 for no limit. Default: 250.
  • link_style - (integer) the link style. Accepted values are 1, 2, 3, 4, and 5. Default: 1.
  • credit_link - (integer|boolean) whether to show the credit link. 1/true to show, 0/false to hide.
  • subimage_size - (integer) the sub-image size in pixels. Default: 100.
  • subimage_max_count - (integer) the maximum number of sub-images to display.
  • similar_product_image_size - (integer) the image size of similar products in pixels. Default: 100.
  • similar_product_max_count - (integer) the maximum number of similar products.
  • customer_review_max_count - (integer) the maximum number of customer reviews.
  • show_now_retrieving_message - (boolean|integer) Whether to show the "Now retrieving..." message when sub-elements are pending to be fetched. true/1 to show false/0 to hide.
  • button_type - (integer) The type of buttons. The following values are accepted. Default: 1.
    • 0 - Link to the product page.
    • 1 - Add to cart.

These values can be pre-defined from the setting page via Dashboard -> Amazon Auto Links -> Settings -> Default. If these arguments are omitted, the values set in the setting page will be used.

How to Create Own Template

Step 1

Copy an existing template that is located in ...wp-content/plugins/amazon-auto-links/template and rename the copied folder.

Step 2

Remove the files besides style.css and template.php as other files are optional.

Step 3

Edit style.css and template.php to customize the layout.

Step 4

Create a folder named amazon-auto-links in your theme's folder. If you are using Twenty Thirteen, the location would be ...wp-content\themes\twentythirteen\amazon-auto-links.

Step 5

Move the working folder(the copied one) to it (the amazon-auto-links folder you just created).

Step 6

The plugin will automatically detect your template and add it in the template listing table. So activate it.

Upgrading V1 to V2

When upgrading v1 to v2, a few options will be lost. That includes:

  • Sidebar widget
  • The positions of the inserting area

These options need to be reconfigured.

How to Obtain Access Key and Secret Key

For the search unit type, an access key and its secret key are required to perform API requests.

We need to deal with additional two separate Amazon services apart from the Amazon Associates.

Step 1 - Create a Product Advertising API Account

Before you create an access key, you have to make sure you have singed up with Amazon Product Advertising API.

Step 2 - Sign up with Amazon Web Service

Next, create an account with Amazon Web Service(http://aws.amazon.com/). At the top right pull-down menu, you can navigate to My Account/Console -> Security Credential.

Step 3 - Create an Access Key

In the Security Credentials page, find the section named Access Keys (Access Key ID and Secret Access Key) and click on that.

Then press the Create New Access Key button to create a key. Don't forget to keep the secret access key as well. Amazon has changed the policy not to let the user to obtain the secret key later on.

Also note that at the point that an access key is issued, if you have not created an account with Product Advertising API, the key will be invalid. If that happens, delete the created access key and go back to the previous step.

You can check if your access key is valid or not with Scratchpad.

Requires: 3.4 or higher
Compatible up to: 4.7.2
Last Updated: 1 month ago
Active Installs: 5,000+

Ratings

4.3 out of 5 stars

Support

4 of 7 support threads in the last two months have been marked resolved.

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.

100,1,1 100,1,1 100,1,1 100,1,1
0,1,0
100,1,1
100,1,1 100,1,1
100,1,1 100,1,1
100,2,2 100,1,1 100,1,1 100,1,1
100,1,1 100,1,1 100,1,1 100,1,1
100,1,1 100,1,1 100,1,1
100,1,1 100,1,1
100,1,1
100,1,1 100,1,1 100,1,1 100,1,1
100,1,1
100,1,1
100,1,1
100,1,1 100,1,1 100,1,1 100,1,1 100,1,1
100,1,1 100,1,1
100,1,1
100,1,1 100,1,1 100,1,1
100,1,1
100,1,1
100,1,1