October 7, 2015

Add Amazon Store to WordPress Tutorial Series Part 1

As I wrote in a previous tutorial, adding an Amazon store to your WordPress website is best accomplished (in my opinion) by using  Associate-O-Matic.

Just to be clear, this is not a plugin. It is a standalone script that you install on your server. However, there is a WordPress plugin that integrates with this script and it will help you to display your store items inside your posts with links directly to your store products.

This is a powerful combination and will enable you to offer your visitors an easy way to access products on Amazon that are specific to your content. You can even enable them to checkout with their Amazon account without ever leaving your site. Enough talk, let’s get to it shall we?

Download Associate-O-Matic

Go here to download Associate-O-Matic. There are two versions, the Lite Version which is completely free and the Full Version which comes with a 30-day trial.

Download Versions

Free and Full Version Downloads

Which Version to Choose?

I like to try before I buy and you probably do too. In these tutorials I’ll be using the Full version with the 30-day trial. This way I will be able to show you all the included features. You may be wondering what happens if you use the Full trial version and decide not to purchase it after the trial period. The folks at AOM have made it very easy to move to the Free version and still keep all your configuration settings so you have nothing to worry about.

If your curious about the differences between the two versions, here’s a comparison chart.

Associate-O-Matic Comparison Chart

Comparison Chart

If you do decide to download the Full Trial Version, you will also need to download the trial license.

Amazon Store in WordPress

Choose to download either a .zip or .exe and also the trial license file.

Before You Install

Make sure your server meets the requirements listed here. These are common settings that most hosts should have enabled, but with such a variety of hosts out there, you might want to give a quick check.

There is an easy way to check your server settings. Simply install the free ServerBuddy plugin from the folks at iThemes and it will give you a nice looking page listing details of your host server environment.

How to Install Associate-O-Matic

Note: These steps can also be found on the Associate-O-Matic website. I have added screenshots for better clarity.

Step 1.

Unzip the files contained in the Associate-O-Matic ZIP or EXE file to your local hard drive. Make sure they retain the original directory structures. Make sure you see an /aom directory after you unzip the files.

How to install an amazon store on your website

Unzip the AOM files and notice the folder structure

Step 2.

Open your FTP client software (or use the control panel provided by your web host) and upload the Associate-O-Matic files to your server (web host).

TIP: Some FTP client software examples are FileZilla, CuteFTP and SmartFTP. I use Transmit for Mac.

First, upload (FTP) the encrypted PHP files in BINARY mode which are:

  • shop.php
  • admin.php

Learn how to build an Amazon Associate store

Set FTP Transfer Mode to Binary

Amazon store in wordpress

Move admin.php and shop.php files

Then, upload all of the remaining files and let your FTP software decide the mode to use whether it be ASCII or BINARY.

  • /aom/[all the files]
  • /aom/cache/
  • /aom/images/[all the image files]
  • /aom/js/
  • /ioncube/

Upload an Amazon store to WordPress

Let the FTP Software Decide the Transfer Mode

WordPress Amazon Store

Transfer the /aom/ and /ioncube/ Directories

Ideally, you would FTP the files to your main public site directory. Just make sure you don’t overwrite any of your existing non-AOM files if they happen to be named the same.

Example Store URLs:

  • http://www.yoursite.com/shop.php (best choice, shortest URL)
  • http://www.yoursite.com/dir1/dir2/shop.php (also works, longer URL)

The shop.php and related files can be placed anywhere off your public directories so long as the hierarchy of Associate-O-Matic files remains the same in relation to themselves.

Step 3.

Set the permissions for provided files/directories.

Normally this can be done by right-clicking on the file or directory from your FTP client.

NOTE: Windows users should contact their web hosting provider to determine the best method for changing file/directory permissions. Most likely they will provide a mechanism to do this within their control panel.

Set the amazon store file permissions

The permissions for Linux/Unix users are as follows and can vary from web host to web host:

NOTE: You may need to modify your permissions beyond the below recommended settings. You’ll know because Associate-O-Matic will give you cues that you still need to write and/or read enable a particular folder such as /aom. For example if 775 doesn’t work you may need to make it 777.

  • shop.php  [CHMOD 644]
  • admin.php  [CHMOD 644]
  • /aom directory  [CHMOD 755]
  • /aom/cache directory  [CHMOD 755]
  • /aom/images directory  [CHMOD 755]
  • /aom/js directory  [CHMOD 755]
  • /ioncube directory
  • all other permissions should be fine by default

Step 4.

Associate-O-Matic uses the ionCube PHP Encoder to protect their source code. Associated files are found in the /ioncube directory.

For step-by-step instructions on what you need, open the /ioncube/loader-wizard.php in a browser.

Please Note: I ran the ionCube wizard even though I knew it was already installed on my host. If you’re not sure whether your host has ioncube installed, just run the wizard as I did and you’ll see a message similar to this:

Installing Amazon store and ioncube

My Host Already Has ionCube Installed

If you have any problems related to ionCube, please more in-depth ionCube installation instructions.

Step 5.

You can rename your shop.php and admin.php files or leave them as is.

If you rename the files, be sure to keep the .php extension on the end.

For example, instead of:

You could name it:

Step 6.

**** If you are using the trial of the Full version, you must also upload the aomtrial.license file to your server. This goes in the same place as the shop.php file.****

Now that all of the files are on your server, it’s time to open the Associate-O-Matic Control Panel.

This would be the admin.php file or the new name if you renamed it.

For example, in a web browser open the address replacing “yourdomain” with your domain name:

NOTE: The first time you open the Control Panel, you’ll be asked to enter your login username and password. Once set, you’ll be asked for this login on all subsequent visits. If you ever decide to change your login, simply delete the file in the /aom directory called cfg.login.php. You’ll then have a chance to reset the password. You can also reset the login from within the control panel.

Amazon Associate-O-Matic Control Panel

Amazon Associate-O-Matic Control Panel

Step 7.

Once you enter the Control Panel, you’ll start in the Getting Started section.

At this point you’ll want to make sure you enter your correct Amazon Associate ID, Amazon Access Key ID and Amazon Secret Access Key. Please see the Amazon section of their documentation for more information. Also, enter the main information for your store. Please see the Site section of our documentation for more information.

Getting started with Amazon associate store in WordPress

Enter Your Amazon Credentials

Don’t be overwhelmed by the number of customizations you have at your disposal. You can actually save your settings at this point just to make sure everything works. Or go ahead and enter some more of your site details and then save. In the Control Panel Settings section of their online documentation, they describe in much more detail each of the various settings. You can login to your Control Panel at any time and update your settings.

Step 8.

If you would like your domain name to point to your store page (shop.php), please read this post in the Tips & Tricks section of their forum:


Step 9.

Congratulations! You’re done. Now you can view your store from within a web browser.For example:

If you see a blank screen or errors, please see their troubleshooting section.

Make sure you are using an Amazon Associate ID that matches the locale of your store otherwise you won’t receive credit for sales from Amazon.

Register at the appropriate locale:
Amazon.com (US)
Amazon.co.uk (UK)
Amazon.ca (CA)
Amazon.de (DE)
Amazon.fr (FR)
Amazon.co.jp (JP)

How to Configure the Associate-O-Matic Settings

Please stay tuned to my site for the next post in this series that will show you the available Associate-O-Matic settings and how to configure them.

Tutorials. Delivered.

Stay tuned to WP Modder via RSS or simply receive an Email when new content is added.

Just Getting Started with WordPress?

Watch my free video series, Setup for Success. Learn to setup your WordPress website in a way that insures the success of your personal or business website.

How to:

  • Properly plan for your type of site
  • Search and purchase a domain
  • Research and purchase website hosting
  • Create a database with cPanel
  • Install WordPress manually
Get started now!

Want to learn WordPress on the go?

The WP Modder App provides you with WordPress plugin and WordPress theme reviews to help you make informed decisions when building your WordPress websites, either for yourself or your clients.Download the WP Modder App now!

Learn more about WordPress anywhere with the WP Modder App for iPhone, iPod Touch, and iPad. You'll have access to all of my past and future written and video tutorials as well as reviews of the latest plugins and themes, all from the comfort of your mobile device!

How many times have you have you wished you could run through a WordPress tutorial while in the bathroom? C'mon, you know you Facebook in there anyway. Why not learn something while you're at it? It's the ultimate in time management. But seriously...

You'll also gain the ability to gain access to free image and link promotion back to your own WordPress powered site! See more details and get the WP Modder App now.

WP Modder runs on the Genesis Framework

Genesis Framework

Genesis empowers you to quickly and easily build incredible websites with WordPress. Whether you're a novice or advanced developer, Genesis provides the secure and search-engine-optimized foundation that takes WordPress to places you never thought it could go. It's that simple - start using Genesis now!

Take advantage of the 6 default layout options, comprehensive SEO settings, rock-solid security, flexible theme options, cool custom widgets, custom design hooks, and a huge selection of child themes ("skins") that make your site look the way you want it to. With automatic theme updates and world-class support included, Genesis is the smart choice for your WordPress website or blog.

It's so damn good, I've redesigned all of my sites using Genesis and can confidently recommended it to you here.

Want an Awesome Host? We Recommend HostGator

HostGator for WordPress

Since its establishment in 2002, HostGator has been a world-leading provider of web hosting service. Although their office is in Houston, Texas, they provide top-notch service to clients and developers from over 200 countries internationally with a staff of over 600 employees. They offer Shared, Reseller, VPS, and Dedicated server packages for both beginners and professionals alike.

Each of their shared Web Hosting plans includes 24/7/365 support, a 99.9% uptime guarantee, and a 45-day money-back guarantee. If you would like to learn more, please visit their company page.

I use HostGator for the majority of my own sites and I continually recommend them to my clients. Learn more about HostGator now!

Get our FREE WP Topics Newsletter

The WP Topics newsletter is delivered twice monthly and it's jam packed with information on our WordPress People interviews, WordPress tutorials, new and useful plugins, themes, marketing techniques, and more.

We Respect Your Privacy.

tutorials delivered by email
* indicates required

About Adam W. Warner

I’m a web development consultant and instructor specializing in the use of WordPress and WordPress Multisite.My development philosophy focuses on solutions, education, empowerment, and support for my clients. I will provide you the tools to achieve your project goals, and I will show you how to use those tools.


  1. RT @wpmodder: WordPress + Amazon Affiliate Store Tutorial Series (Part 1)…not a spammy autoblog method either: http://tinyurl.com/269agh3

  2. Amazon and #WordPress Affiliate Store http://bit.ly/fodY4L

  3. Thanks for the great review Adam. But to tell you the truth, I don’t think it’s fair that with the free version they can keep %10 of the affiliate. I know it’s nothing. But why use this when you can use a free plugin and keep %100 of the money to yourself.

  4. Would love help with this.
    Is this something you do?

Speak Your Mind