1. AAWP
  2. Documentation
  3. Functions

Product boxes

By using the shortcode attribute box you can display single boxes for one or multiple products.

Bestseller (Lists)

Display an automated list of the best selling products of a specific product category, based on given keywords or browse nodes.

Fields (Single product data)

The so called Fields allow you to display single product data e.g. title, description or price via shortcode or inside your PHP templates.

Text links

By using the shortcode attribute “link“, you can easily place automated Amazon product text links.

Comparison Tables

To create a comparison table, you need at least 2 products, which can be compared with each other. The creation of the table is really simple and can be performed directly via the WordPress admin area. Creating comparison tables in 3 steps Add products (via ASIN or product search) Create table rows and define content types Insert table via shortcode in your post or page Add products There are two ways in order to add products to a comparison table: Direct input via ASIN Products can be added easily by using the article number (ASIN). Here you can find our...

Templates

Basics You can find all provided PHP template files inside the plugin folder templates. These temples will be used by AAWP in order to display lists, tables and single product boxes. In case you want to edit existing or create new templates, you will find all information in our templating documentation. Note: Please don't edit original files inside the plugin folder due to the fact that they will be overwritten with the next update! Template functionality Right now the Amazon Affiliate WordPress plugin provides the following template types: layouts, products and parts. Layouts holding the basic (HTML-) skeleton and including...

How-to filter products

Here we show you how to filter a list of products by title, price etc. This allows you to get more accurate results.

New Releases (Lists)

Display an automated list of the newest products of a specific product category, based on browse nodes.

Geo-targeting

Geo-targeting allows you to redirect your website visitors – when clicking on Amazon affiliate links – to the nearest Amazon shop. Practical example You're running a German website and presenting products from Amazon.de shop. A visitor from France clicks on an Amazon affiliate link and will be redirected to the same product on Amazon.fr instead of the German shop. This way you don't lose a conversion which might be the case when forwarding him to the German shop. Geo-targeting for Amazon links In order to use geo-targeting for Amazon links you have to enable the feature via plugin settings (tab...

How-to sort products

Here we show you how to sort a list of products by title, price etc. This allows you to get the results you desire.

Template Variables

With template variables you can pass variables directly via shortcode and access them inside the template files. Passing variables Template variables must be prefixed with tpl_. The name behind it can be chosen freely. Comma-separated values ​​are converted directly into an Array. Accessing variables inside the templates Within the template files, the following functions are available: Accessing all variables … returns an Array with all passed values. Accessing single variable … returns a certain passed value. By passing a second parameter to the function, you can define a default value.

Replacing the tracking id

You can easily replace your default tracking id on a shortcode basis, which allows you to measure and compare different product placements, templates etc.