Downloads

Download AZ-One

What is AZ-One?

Don’t leave money on the table!

AZ-One is a WordPress plugin which locates the Amazon store (com, ca, co.uk, de, fr, jp) closest to your visitor and changes the associate links on your site to direct the visitor to the right store. And that means more referral fees in your pocket!

Here’s an example. The images below have a Amazon associate link that in the original post direct you to Amazon.jp (I’m not from Japan, this is just an example :) ). If you move the mouse over the images and see the link in the status bar, the links should now direct you to some other Amazon store, unless your from Japan…

The 4-Hour WorkweekGetting Things Done

Requirements

  • WordPress version >= 2.1
  • PHP 4
  • MySQL 4
  • Database size is around 3 megabytes and 77 928 rows, make sure you have enough space and the limit for maximum updates per hour is big enough
  • Amazon associate IDs (com, co.uk, ca, de, fr, jp). You don’t need them all, you can use the plugin e.g. with com and co.uk IDs.

Installation

  • Once you have downloaded the plugin, unzip it.
  • Use FTP to move the unzipped folder under wp-content/plugins.
  • Open the admin dashboard. Go to Plugins.
  • Enable AZ-One by clicking the Activate link.

Settings

  • Go to the Options menu and choose AZ-One.
  • When the plugin is used for the first time, you need to install country and IP address information to the database. It is recommended that you choose one file at a time and press the Update options button. After you have succesfully installed a file, it disappears from the install list.
  • Next you need to add your Amazon associate IDs. There are 6 stores available: com, co.uk, ca, de, fr and jp. Fill in your IDs. If you don’t have all the IDs, you can clear the field. Visitors from that store’s area will be shown the original link in the post. If you leave the default ID, the referral fees from that store will support AZ-One’s development :)
  • The last section is for country configuration. You can select the approriate store for every country listed in the database. So when a visitor is identified to come from a certain country, she will be presented a link of the store you have specified here.

Usage

AZ-One automatically changes the Amazon links in your posts, so you don’t need to do anything. Just insert your associate links to your posts as you usually do.

If you have associate links outside your posts, there’s little addition you have to do. You have for example an associate link at your footer. You need to add a piece of php code there.

Let’s say the link is the following format
<a href="http://www.amazon.jp/YOUR_ASSOCIATE_INFO">product</a>

What you need to do is to add a block of php code inside the link:
<a href="<?php az_one_mod_link(”http://www.amazon.jp/YOUR_ASSOCIATE_INFO”); ?>“>product</a>

But there’s a little BUT: AZ-One doesn’t work with sidebar’s text widget :(

Download

Contact

  • Bugs and feature requests can be send to harri.lammi (at) 52lives.com.

Popularity: 2% [?]

18 Comments so far »

  1. Derek said

    am December 9 2007 @ 1:41

    Hey - very nice plugin, totally-needed!

    My Amazon links are in the form of “Recent Reading” and “Recent Listening”, which I have as links in my blogroll - hence, they’re not affected by the filter on the_content.

    I added a filter for get_bookmarks at the end of the plugin, but that gave me an error:

    Catchable fatal error: Object of class stdClass could not be converted to string in /[path-to]/az-one.php on line 60

    Unfortunately, it looks like the get_bookmarks filter is the only one available that will actually apply to the link itself when it’s being fetched from the DB.

    I would imagine I’m not the only one to use WP’s bookmarks function to list Amazon-linked items - would be good to get that working somehow.

  2. Robert said

    am December 21 2007 @ 14:58

    Can’t get this plugin to work. I think the snippet of php code is not escaping properly - the quotation marks are especially troublesome.

    Can you put it in a text file somewhere?

    Thanx.

  3. Robert said

    am December 21 2007 @ 15:35

    The plugin works fine for me with normal Amazon links in posts. The only problem is when the ASIN number doesn’t exist in the alternate Amazon store, you get a 404 from Amazon. If you then click on the Amazon homepage link, there is no session ID or cookie set.

  4. Leslie said

    am December 21 2007 @ 20:26

    When I installed the plugin and then the country and IP files. When I scrolled down to the country configuration section the only country available was Afganistan. Am I doing something wrong? I did update always after inserting my Amazon associates ID.

  5. Steve said

    am December 21 2007 @ 20:49

    Harri,
    After activating the plugin and adding my Associate ID, the only country showing in the Store Configuration section was AFGHANISTAN. Any ideas?

  6. Leonaut.com said

    am December 23 2007 @ 8:17

    AZ-One: Amazon…

    AZ-One is a WordPress plugin which locates the Amazon store (com, ca, co.uk, de, fr, jp) closest to your visitor and changes the associate links on your site to direct the visitor to the right store. And that means more referral fees in your pocket!…

  7. Harri Lammi said

    am December 29 2007 @ 14:50

    Hi all!
    First, thanks for you all for your comments, I really appreciate getting feedback! Keep those comments coming.

    Derek:
    Thanks for the tip, I will try to get AZ-One compatible with the get_bookmarks. I’m trying to find out is there a way to filter all the content that is shown to the visitor, so the bookmark problem would be solved at the same time.

    Robert:
    You’re totally right. At the moment, if the product is missing from the Amazon’s catalog, a 404 is returned. I have planned to implement more “intelligence” to the next version of AZ-One. E.g. if the product is missing, AZ-One will display a link to related products or some other stores page or a product defined by the blogger.

    Leslie & Steve:
    Interesting problem :) The first two things you should check:

    1) Open from your WordPress database a table called wp_az_one_countryIPs (the prefix might be different but look for az_one_countryIPs). Check that there are other countries than Afghanistan listed. If not, drop the wp_az_one_countryIPs table from the database and re-activate the plugin.

    2) If there were other countries in the database, check the source code of AZ-Ones Options page. Check if the other countries are listed in the source code.
    Hope this helps. I would be pleased to hear if this solved the problem, since there might be somebody out there with a similar problem.

  8. Kate Davis said

    am December 31 2007 @ 0:15

    Excellent plugin. I’ve got it installed on my site with no problems and it is now running fine. Thank you for your help.

  9. Steve said

    am January 4 2008 @ 19:06

    Harri,
    Where is the wp_az_one_countryIPs database located?

    Steve

  10. Harri Lammi said

    am January 4 2008 @ 20:57

    Steve,
    wp_az_one_countryIPs is located in the same database where you have the WordPress tables.

    In the root of the WordPress installation there’s a file called wp-config.php. Open the file and look for the value of DB_HOST. That’s the location of your WP database. You can connect to the database by using mysql client or an open-source tool called phpMyAdmin.

    Hope this helps :)

  11. Steve said

    am January 15 2008 @ 0:23

    Harri,
    Still no joy. All the countries are listed in the database files, but I still can’t get anything other than Afghanistan to show up.

  12. Harri Lammi said

    am January 18 2008 @ 2:13

    Thanks to Steve’s help (he emailed me the source code and screenshot from his AZ-One options page) I have released version 1.1 which fixes the “Afghanistan issue”.

    Thanks also to Kate from darktea for pointing out a problem with image links.

    AZ-One is now available from WordPress’ plugin site.

  13. Chris said

    am February 12 2008 @ 15:43

    I have been creating my own version of this & testing at the moment.

    Firstly:
    “If you leave the default ID, the referral fees from that store will support AZ-One’s development”

    This is not good practice and doesn’t make the user trust the plugin.

    Just a thought.

  14. C'estMoi said

    am February 28 2008 @ 0:50

    Hi,
    Looks like an excellent plugin but I can’t install any of the Install IP Databases I get the error “No database table available. Please re-activate the plugin in the Options page”. de-activating - re-activating the plugin doesn’t work. I’m using wordpress 2.3.3 Is there a way do manually import them into the database?

  15. mitub said

    am March 15 2008 @ 5:59

    I need plugin that can automatically build amazon store, but I still be able to use my other wordpress plugins to optimize each page. Any suggestion ?

  16. Chokyi said

    am April 23 2008 @ 9:26

    Hi Harri,

    I’ve installed Az-One plugin 1.1 in my wordpress 2.3.2, after setting up the configuration, it’s not working.
    My IP 218.208.224.215 converts to this number 3671122135, the IP database shows it is under China, but I’m from Malaysia. Never mind, I change China & Malaysia both to refer to Amazon co.uk, when saving, it did save but with a blank message (normally it should say eg. ‘The changes have been saved’). After that, when I refresh my site, the url still not changes.
    Does this plugin work with 2.3.2? Thanks.

  17. ChuckMcB said

    am May 10 2008 @ 14:27

    Excellent concept. The geotargeting of ad systems like Amazon, CJ, etc is much needed. Installed without problem with v2.5.1. Works fine with simple text links…..now how about getting it working with iframe based adverts? ;)

    C.

  18. Darcy said

    am June 5 2008 @ 13:54

    Brilliant plugin. Just one problem: it seems to disable Amazon’s new Product Preview feature, which works fine until this plugin is activated. There’s probably a simple solution. Any ideas?

Comment RSS · TrackBack URI

Leave a comment

Name: (Required)

eMail: (Required)

Website:

Comment:

 
1