Amazon Link

Provides a facility to insert Amazon product links directly into your site’s Pages, Posts and Widgets and Templates.

Description

This plugin is used to quickly add Amazon products to your WordPress posts and pages. The products can be simple text links, thumbnail images, fullsize images, complex templates or full-blown Amazon flash widgets.

The product links that the plugin generates can be for any of the Amazon domains (UK, US, Canada, China, Germany, Spain, France, Italy and Japan).

The content of the products can be statically entered by the Author, when the link is created, or dynamically refreshed when displayed using the Amazon site that is most appropriate for the nationality of the reader.

The products to be displayed can be specified when the link is created, using the built in Amazon search widget, or dynamically generated by searching the content of the site.

All product links will contain the Amazon affiliate ID of the site author and will be the relevant one for that locale, allowing the author to collect commission on any products purchased through the links.

Key features
  • Search Tool to assist authors to create links in posts and pages
  • Simple [amazon] shortcode used to generate product links
  • Localisation of all links based on the nationality of the reader
  • Amazon Product Details Cache to ensure pages load quickly
  • Optional multinational popup to allow the reader to choose which Amazon site to visit
  • Global options to update the behaviour of all the links on your site
  • Ability to locally override the global options using the shortcode content
  • Affiliate Tracking IDs for User or by user specified ‘Channels’.
  • Flexible template facility to enable the author to quickly create complex content quickly and consistently
  • Includes built in templates for the major Amazon widgets (Carousel, My Favourites, etc.).
Quick Start

To quickly add a simple text link add the following lines into an entry (page, post or text widget): [amazon asin=<ASIN Number>&text=<link text>]

Where ASIN Number is the unique amazon number used to identify products e.g. “1405235675″. The Link Text is simply what you want to be shown for the link, e.g. “Mr. Good”.

To utilise one of the templates simply specify the template option with the name of the template to use. For example: [amazon asin=<ASIN Number>&title=<link text>&thumb=<image url>&template=thumbnail].

To take full advantage of the plugin features it is recommended that you have an Amazon Web Services account, and enter the Access Key ID and Secret Access Key in the Amazon Link Settings page. Once your AWS account settings are entered the plugin can be configured to dynamically fill in the templates with live information from the appropriate Amazon site. Alternatively you can use the Amazon Search tool on the Page/Post edit screen to find Amazon products and let the plugin pre-fill the Amazon Link shortcode with all the details needed to create the appropriate template.

To generate a list of products relevant to the content of your site use the ‘cat’ option, to specify where the plugin should search for Amazon product links. This option can be either ‘local’ to search the current content or a list of category ids to search specific sections of your site. For example I use this feature to provide friends and family some ideas for presents. This feature also needs access to the Amazon Web Service API and uses the ‘CartSimilarities’ feature to generate the list of items.

This is created by either putting the line amazon_recommends(<Category>,<Number of Posts>) in your template. Or putting the line [amazon cat=<Category>&last=<Number of Posts>] within a post or page. Where ‘Category’ is a list of category ids to search within (e.g. as expected by the ‘cat’ argument of query_posts function. The ‘last’ parameter is the number of posts to search through.

Latest Version – 3.0.1
  • New Feature – Simple Template Manager
  • New Feature – Amazon Product Cache to speed up page loading
  • New Feature – Add ‘Template Type’ option to identify templates that require no ASIN, or Multiple ASINS.
  • New Feature – Search using by ‘ASIN’ if ‘Title’ and ‘Author’ fields blank
  • New Feature – ‘country’ modifiers (UK#, DE#, US#, etc.) for Template keywords.
  • New Feature – ‘country’ specific shortcode modifiers ([uk], [de], [us], etc.) for any Shortcode keyword.
  • Templates Update – Add ‘Amazon Impression Tracking’ to templates
  • Templates Update – Add ‘Easy Banner’ template example
  • Templates Update – Add ‘Amazon Preview Script’ template, add to the bottom of your post/page or include in your theme’s footer
  • Templates Update – Add ‘Multinational’ template, example of using ‘country’ modifiers.
  • Bug Fix – Fix filtering of incomplete tags.
  • Bug Fix – Move ‘aws_signed_request’ into the Class to avoid name clash with ‘premiumtheme’, thanks to pst61 for spotting.
Development Version
  • New Feature – Add basic contextual help to the plugin Settings page.
  • New Feature – Validate AWS keys when entered on the Setting page.
  • Bug Fix – Check for Creation Date when checking the ip2nation database, thanks to Ken Paulson for spotting
  • Bug Fix – Search Links not being generated when ‘globalise defaults’ set.

Installation

  1. Install either via WordPress Plugin Installer (Go to: 'Plugins' > 'Add New' admin page and Search Plugins using the term 'amazon link'). Or by uploading the files to your server (in '/wp-content/plugins/') after downloading the amazon-link plugin from the Plugin Directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress.
  3. Update the settings (at the very least enter the default Affiliate Tags)
  4. If you wish to use the advanced functionality: Wishlists, Search, Media Upload facilities or the live data option you must also set up an Amazon Web Services account. So that you can update the AWS Public and Private key settings.
  5. If you wish to use link localisation then you need to install the ip2nation database using the option in the Amazon Link Settings page.
  6. If you would like to take advantage of the Amazon Link Product caching then you will need to enable this on the Amazon Link Settings page.
  7. Insert links and wishlists into your content using the [amazon] tag as described above, or using the Amazon Link box on the Page/Post edit pages.

More Info

If you have any questions about the plugin, please check the Frequently Asked Questions section then either post a comment to this post or check the WordPress Forums.

Further information on the Plugin can be found on these pages:

Donate

Grateful for any contributions towards the development of the plugin.


Screenshots

1. This is the example wishlist taken from www.HouseInDorset.co.uk

2. This shows the multinational Amazon link popup.

3. This shows the Amazon Link Metabox that can be used to insert shortcode links into Posts or Pages.

4. This shows the Template editor available on the Plugin’s Settings page.

  1. ayden
    December 13th, 2010 at 23:28 | #1

    Hi Guys,

    The plugin is giving me an error when getting into the settings, after installing it. The error that’s coming up is:

    Fatal error: Cannot use object of type WP_Error as array in /public_html/wp-content/plugins/amazon-link/include/ip2nation.php on line 43

    I tried installing the IP2nation plugin – but that didn’t help.

    Could you lend a hand?

    Cheers!

  2. December 14th, 2010 at 10:25 | #2

    Hi Ayden, I’ll look into it…

    Seems link the ip2nation site is down and the request to check the current version of the database is failing. I’ll update the plugin to fail more gracefully. However longer term it looks like I may have to use another ip address lookup method.

  3. February 27th, 2011 at 23:53 | #3

    Dear Paul, Thanks for your plugin which I think is good. I just wondered whether it would not be easier to direct the customer from the UL right to amazon UK instead of displaying the flag because 1. the flag are irritating for someone who does not know the plugin 2. the flag of the default country is not displayed which might confuse some readers. Of course you get to the default country by clicking the link but who knows that?
    3. Altogether, I think it would be much smoother if the plugin would just direct the user to the most appropriate amazon site. What do you think?

  4. February 28th, 2011 at 08:40 | #4

    Hi, Thanks for the feedback, if you don’t want it to display the flags, simply un-select the “Multinational Link” option in the settings page. Also make sure the “Localise Amazon Link” option _is_ selected then the link will be targeted to the most appropriate Amazon site. The reason I put the ‘flags’ in was because the detection of users country of origin using their IP address is not perfect, someone in Alsace or Belgium presented with the link to the French Amazon site might get annoyed if this was the only option. Hope that helps.

  5. m cummings
    March 6th, 2011 at 09:32 | #5

    Trying to activate your nice sounding plugin only results in “Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or ‘}’ in /[path]/domain.com/html/wp-content/plugins/amazon-link/amazon.php on line 427″

    WP 3.0.5, php4 (will try it with 5). Please advise… thanks

  6. March 6th, 2011 at 21:26 | #6

    Hmmm,

    I have to admit I have only tested it using PHP version 5, so I suspect you are right in thinking this is the problem.

    Although I am hoping to do another version soon (with extra support for image based links) but I doubt I’ll be able to remove all the PHP5 dependencies, sorry! I’ll also add a note to state that only works with PHP5.

    Paul

  7. sthe
    May 7th, 2011 at 14:25 | #7

    Hi,

    is there a paramter that makes the link open in a new window? With the default setting, the link to Amazon open in the same window, which I don’t want.

    Thanks and regards…

  8. May 7th, 2011 at 14:43 | #8

    Silly question, I’m sure, but the link that’s generated with the ASIN (which works perfectly) doesn’t show anythign that suggests it has my Amazon Associates number embedded – can i be sure it is? (i.e., that I’ll get credit for referring the customer?)
    thanks

  9. May 7th, 2011 at 21:55 | #9

    @sthe
    Hi, there currently isn’t an option to change the target for the link, but I’ll put it on my list of things to do for the next version.

  10. May 7th, 2011 at 21:56 | #10

    @Bob
    To verify that your associate ID is included in the link: The link should contain something like ‘tag=XXX’ where XXX is your associate ID for your preferred locale. Check out the example links on this page. Have you got ID’s for all locales?

  11. May 8th, 2011 at 00:17 | #11

    Paul, Thanks, here’s the link I get:
    [amazon asin=0743297326&text=The Judgment of Paris]

    am i supposed to have IDs for all locales? I just filled in for U.S.

  12. May 8th, 2011 at 07:41 | #12

    @Bob
    When the link shortcode is added to your post it does not include your ASIN ID. When the link is created and displayed on your site the ID is taken from your settings. If you preview your post then hover over the amazon link, you should see that it contains your tag.

    You only need IDs for other locales if you think you will get a lot of visitors from them. To do this you need to register for each amazon locale separately, which is a bit of a pain!

  13. May 9th, 2011 at 03:12 | #13

    Paul, thanks very much, I did as you said and I can see my ASIN ID.

    all best,
    Bob

  14. sergey
    May 11th, 2011 at 22:53 | #14

    hi, how i can get works shortcode [amazon cat=3&last=15] in sidebar? now it works like plain text.
    thanks

  15. May 12th, 2011 at 09:27 | #15

    Hi, The best way to get the Amazon link items in a sidebar is to edit your themes sidebar template, I haven’t put widget support in as I do not use it.

    You need to add something like this to the sidebar part of your theme:

    < ?php if (function_exists('amazon_recommends')) : ?>
    <h2>Amazon</h2>
    <ul>< ?php echo amazon_recommends(3,30); ?></ul>
    < ?php endif; ?>

    It’s the ‘echo amazon_recommends(3,30)’ that creates the list, you could also use ‘echo amazon_make_links(‘asin=XYZ&text=”My Link”‘);’ to insert a product link.

    The wishlist generated needs at least 320px wide sidebar to work, you can change this by added a userstyles.css file to the plugin directory, with something like this in:

    .amazon_container {
    min-width: 300px; # Width of the sidebar - 10px margin
    margin-right:10px;
    }

    .amazon_img_container {
    height:80px; # About a 1/4 of the sidebar width
    float:right;
    border:1px dotted;
    padding:5px;
    margin-right:0px;
    width:80px; # About a 1/4 of the sidebar width
    }

  16. sergey
    May 12th, 2011 at 11:24 | #16

    Paul, thanks!

  17. sergey
    May 12th, 2011 at 11:31 | #17

    can you add feature to get 1 product with title, price, thumb, like in related table, but not all products
    for example – AmazonSimpleAdmin plugin, you can see on screenshot http://s.wordpress.org/extend/plugins/amazonsimpleadmin/screenshot-3.jpg?r=383998

  18. May 13th, 2011 at 08:13 | #18

    I can add an option to change the number of items in the list if you like. I’ll put this in the next version.

    I was also thinking of doing a template facility, which also could produce the result you are after.

  19. sergey
    May 13th, 2011 at 10:41 | #19

    thanks, it would be great!

  20. May 20th, 2011 at 03:55 | #20

    Hi Liv & Paul,

    Great plugin!

    A question on install: in the setting
    ‘Enter your affiliate tag for United States.’
    What the ‘tag’, you mean Amazon Associate ‘Tracking ID’ or anything else?
    and

    ‘AWS Public Key’ you mean ‘Access Key ID’?
    ‘AWS Private key’ you mean ‘Secret Access Key’?

  21. May 20th, 2011 at 10:22 | #21

    Yes, you are correct ‘affiliate tag’ is your ‘Tracking ID’ found on the Affiliate site. The ‘AWS Public and Private Keys’ are indeed the ‘Access Key ID’ and ‘Secret Access Key’ found under the Access Credentials section of the AWS site.

  22. May 25th, 2011 at 20:06 | #22

    Hi,

    I do have a question now – I received this error message

    Fatal error: Out of memory (allocated 67895296) (tried to allocate 44305651 bytes) in /home/mschrist/public_html/www.insightfulmommy.com/wp-content/plugins/amazon-link/amazon.php on line 436

    I deactivated the plug in and now it is all working well, but I really like this plug in and would like it on my site.

    I also could not get my other SEO plug in to work, but since deactivating the Amazon one, it is functioning again.

    And advice would be appreciated. I am hoping I just typed something in wrong in setting it up.

    Thanks!

  23. May 26th, 2011 at 12:03 | #23

    @Christine
    Hi Christine,

    I don’t think the plugin should be using too much memory, it uses roughly 400Kbytes on my site out of a total 16,000Kbytes used by WordPress + all of my plugins.

    68,000Kbytes used by your site does look a tad high though, could be some odd interaction between the AmazonLink plugin and the SEO one?

    You can increase the memory limit in wp-config.php, look for the line like this:

    define('WP_MEMORY_LIMIT', '96M');

  24. June 20th, 2011 at 22:14 | #24

    Hello,

    after activation i got the message that the plugin generated “Unexpected output during activation” a certain amount of characters.
    “If you notice “headers already sent” messages, problems with syndication feeds or other issues, try deactivating or removing this plugin.”

    Now is this somthing to worry about?

    I am using wp 3.1.3

    Kind regards, Viktor

  25. June 21st, 2011 at 10:33 | #25

    @Viktor Leberecht
    Hi Viktor,

    No its not something to worry about I will fix the problem in the next release of the plugin, it only affects the plugin activation not the day to day operation. Thanks for bringing it to my attention!

    Cheers,

    Paul

  26. June 21st, 2011 at 14:44 | #26

    Hi Paul,

    after installation following error is present.

    “Templates”
    “Warning: Invalid argument supplied for foreach() in /var/www/tobias/blog/wp-content/plugins/amazon-link/include/showTemplates.php on line 97″

    I´m also using wp 3.1.3

    Regards
    Tobias

  27. June 21st, 2011 at 15:16 | #27

    @Tobias
    Hi Tobias,

    Yes, that is a pain – I’ve fixed it in the development version, will do a bug fix release later today.

    Thanks for spotting!

    Paul

  28. June 23rd, 2011 at 21:08 | #28

    @Paul
    Installation worked with the updated version, and thanks for giving me credit for reporting the bug. Now i´m sure i wil come back witth lots of questions about getting it to run ;-)

    Kind regards, Viktor

  29. July 4th, 2011 at 15:52 | #29

    Hi, I installed you plugin and was very excited about the carousel feature.
    However, if I add a carousel to a page, it doesn’t show. What should I do to make it work?

  30. July 4th, 2011 at 15:56 | #30

    @Alberto
    Hi Alberto,

    Unfortunately Amazon does not fully support some of the widgets on all its sites. They are only supported for Amazon.com, Amazon.co.uk, Amazon.de, Amazon.fr and Amazon.jp.

    This may be why the widget is not working, also be aware that some adblocking plugins will filter out the Amazon widgets.

    Paul

  31. July 12th, 2011 at 06:30 | #31

    Hi Paul,

    I have been using your plug in for text links. I was also using another plug in for image links but they haven’t updated in a long while so I would like to learn how to do images with your plugin. I am trying to put in a thumbnail image and I just don’t understand how to do it.

    I tried to put this code in on my post but nothing worked:

    [amazon asin=&title=&template=thumbnail].

    I definitely know how to get the ASIN number. My text links work on my site.

    I see in the settings the thumbnail coding but I don’t understand what to do with it. I guess I will start with a very basic question. Do I copy the coding from the thumbnail in settings to my post. What do the percentage symbols around the words mean? Do I replace them with quotation marks? I know how to fill in src= for the source of the image.

    I am sorry I am a beginner so I hope you can help me.

    Thanks,
    Sandie Anne

  32. July 12th, 2011 at 07:11 | #32

    Hi Paul,

    I just found the way to insert the link at the bottom of the post page. But I am only getting a full size image. What is the name of the class for a thumbnail? I put in thumbnail_image but I am still getting a large image.

    Thanks,
    Sandie Anne

  33. July 12th, 2011 at 09:48 | #33

    @Sandie Anne
    Hi Sandie,

    Thanks for using the plugin, I can see why your original code did not work. The template name is case sensitive and needs to be template=Thumbnail.

    So to display the composTumbler you just need to insert the code [amazon asin=B000H2X2EW&template=Thumbnail]. The title is optional, and only needed if you want to change the title that Amazon provides.

    I will update the plugin in the next version so that the template name is not case sensitive, this should make things easier!

    Using this template should ensure that the image displayed is the smaller thumbnail one, using the ‘Image’ template will show the fullsize image.

    You should not need to worry about the content of the thumbnail coding this will automatically be inserted into your post by the plugin. It will replace all the ‘%…%’ items with the correct data.

    I have noticed a couple of bugs with the plugin whilst investigating your question, I intend to fix these shortly and issue a new version of the plugin.

    PS. I should have read your site earlier, as my Sugar Snap peas have only grown about 3 feet tall (too little sun). I planted them in standard garden compost (mainly oak leaf mulch, also the reason for the shade!). The kids loved them anyway.

  34. July 12th, 2011 at 12:58 | #34

    @Paul

    Hi Paul,

    Thanks for the response. Sugar Snaps that are 3 ft tall are pretty good! And it sounds like they were delicious.

    I wondered if you could look at my latest post again. The image is so large. It doesn’t seem like a thumbnail size even though it says its size is about 50 kb,

    Thanks,
    Sandie Anne

  35. July 12th, 2011 at 20:29 | #35

    @Sandie Anne
    Hi Sandie,

    Thanks for persevering, that is definitely not a thumbnail image! if your shortcode is similar to the one in my comment above then the problem might be with the template in the settings.

    The content of the ‘thumbnail’ template should be something like this:

    %LINK_OPEN%<img alt="%TITLE%" title="%TITLE%" src="%THUMB%" class="%IMAGE_CLASS%">%LINK_CLOSE%

    The important part is the bit that reads src="%THUMB%".

    I can get the thumbnail to work on my site: Composter Test Post.

    Paul

  36. July 12th, 2011 at 21:23 | #36

    @Paul
    Hi Paul,

    That was it! It said image instead of thumb.

    Thanks,
    Sandy

  37. July 17th, 2011 at 21:40 | #37

    Hi Paul,
    when I create the code to insert in a post, I put ASIN code correctly in the form but then, when I publish the post, the value printed is ASIN=0.
    So it din’t work :(

    Here an example of the generated code, once post is published http://www.amazon.it/gp/product/0?ie=UTF8&tag=brividogiallo-21&linkCode=as2&camp=1634&creative=6738&creativeASIN=0

    The risult is “no image avaiable”. How can I fix it? Thanks a lot!

  38. July 27th, 2011 at 08:56 | #38

    @Matt
    Hi Matt,

    Thought I’d post a summary of our email discussion here as it may help others:

    There are a couple of bugs in the version of the plugin (2.0.1), which I have fixed in the development version, that are causing the links to fail. I will try and publish a new version shortly.

    Half the problem I think is that Amazon does not fully support the .it domain yet, so the plugin has to use the .fr one for its requests (I chose .fr so at least the prices would be in Euros!).

    Also remember that by default the template is populated by the fields that are included in the [amazon] shortcode, one of those fields is the URL to the book cover image ‘image’ or ‘thumb’. So if you have uploaded the image to your WordPress media library you can manually enter the URL to it there.

    e.g.
    [amazon asin=8830427616&template=thumbnail&title=My Title&thumb=/wp-content/uploads/2011/07/fc18_2010Nientedaperdere-197x300.jpg]

    Alternatively you can make the plugin get the cover image directly from Amazon. Do this by ensuring that the ‘Live Data’ setting is enabled in the global settings. Or if you only want it for this particular link, add the ‘live=1′ option to the shortcode. However to enable the ‘Live Data’ setting you must be enrolled in the Amazon Web Services and put your Access Key Information in the Backend Setting section.

    e.g.
    [amazon asin=8830427616&template=thumbnail&live=1]

    To ensure that the links are to amazon.it, ensure that Italy is selected as the ‘Default Country’ in the Global settings. However when ‘Localise Amazon Link’ is enabled it should link to the amazon.it site automatically.

    Thanks for persevering with the plugin, and good luck with your site!

    Paul

  39. Kory Glover
    August 7th, 2011 at 01:54 | #39

    I couldn’t help but notice that “All product links will contain the Amazon affiliate ID of the site author” and “allowing the author to collect commission on any products purchased through the links” Does that mean that you “The author” of this plug-in make all the money with the links while we put them on our own websites.

  40. August 7th, 2011 at 08:40 | #40

    Hi Kory,

    Thanks for your interest in the plugin. Sorry if it is not clear it means the WordPress site author (i.e. you) not the plugin author. So any affliate ID’s you put in the settings page will always appear in the affiliate links.

    If you do not want to bother joining some Amazon affiliate locales that are not primary to your site’s target readership and you have localisation enabled, then by default the plugin’s affiliate ID’s will be used for visitors from those locales. This is partly because Amazon AWS service now mandates that a valid ID must be used for all request.

  41. Kory Glover
    August 7th, 2011 at 09:17 | #41

    @Paul
    Thanks for clearing that up

  42. Chris Hunt
    August 22nd, 2011 at 18:32 | #42

    I’ve installed your plugin, filled in the various codes and keys, but can’t get it to work. It just displays the raw shortcode instead of converting it into an Amazon link.

    It seems to be conflicting with the “Shortcode Exec PHP” plugin that I also have installed.

    What I’d really like, though, is not to use a shortcode at all – I want to store the ASIN number in a custom field on my post, and then use a template function to retrieve that and pass it to Amazon Link with whatever settings I want. Is there a template function that calls the [amazon...] functionality the same way that amazon_recommends() does?

  43. August 23rd, 2011 at 10:47 | #43

    @Chris Hunt
    Hi Chris,

    To add Amazon links to your template you would want to add something like this:

    
    < ?php
    if (function_exists(amazon_make_links) &&
        get_post_meta($post->ID, 'my_products', true)) {
       $my_products = get_post_meta($post->ID, 'my_products', true);
       echo amazon_make_links('template=thumbnail&live=1&asin=' . $my_products);
    } ?>
    

    Then in your post add a Custom field 'my_products' in this case, containing a single ASIN or a comma separated list of ASIN numbers.

    Note: Currently the plugin only brings in the 'multinational popup' support if it finds an [amazon] shortcode in the post content - so this won't work if you only use it in template content. I'll add an option to force it to load the scripts if you need this.

    EDIT:
    I've installed the Shortcode Exec PHP plugin and it seems to work okay with mine. If I define a 'amazon' shortcode in the 'Shortcode Exec PHP' plugin then it gets processed by that plugin first and removes all the [amazon] shortcodes from the post. But can't reproduce your symptoms. If you disable the 'Shortcode Exec PHP' plugin do the shortcodes get expanded?

  44. David
    August 23rd, 2011 at 22:44 | #44

    Hi Paul

    When I install the plugin I get an error message in the admin and one on the front end

    Admin in the “Template” area:
    Warning: addslashes() expects parameter 1 to be string, array given in /var/sites/x/siteurl.url/public_html/wp-content/plugins/amazon-link/include/amazonSearch.php on line 298
    carousel – Amazon Carousel Widget

    Warning: addslashes() expects parameter 1 to be string, array given in /var/sites/x/siteurl.url/public_html/wp-content/plugins/amazon-link/include/amazonSearch.php on line 298
    iframe image – Standard Amazon Image Link

    Warning: addslashes() expects parameter 1 to be string, array given in /var/sites/x/siteurl.url/public_html/wp-content/plugins/amazon-link/include/amazonSearch.php on line 298
    image – Localised Image Link

    Warning: addslashes() expects parameter 1 to be string, array given in /var/sites/x/siteurl.url/public_html/wp-content/plugins/amazon-link/include/amazonSearch.php on line 298
    mp3 clips – Amazon MP3 Clips Widget

    Warning: addslashes() expects parameter 1 to be string, array given in /var/sites/x/siteurl.url/public_html/wp-content/plugins/amazon-link/include/amazonSearch.php on line 298
    my favourites – Amazon My Favourites Widget

    Warning: addslashes() expects parameter 1 to be string, array given in /var/sites/x/siteurl.url/public_html/wp-content/plugins/amazon-link/include/amazonSearch.php on line 298
    thumbnail – Localised Thumb Link

    Warning: addslashes() expects parameter 1 to be string, array given in /var/sites/x/siteurl.url/public_html/wp-content/plugins/amazon-link/include/amazonSearch.php on line 298
    wishlist – Used to generate the wishlist

    Front end:
    Warning: addslashes() expects parameter 1 to be string, array given in /var/sites/x/siteurl.url/public_html/wp-content/plugins/amazon-link/include/amazonSearch.php on line 298

    I wasn’t comfortable publishing the absolute path on the server so I’ve changed the url to siteurl.url

    If you want to email me I’ll let you know the correct address if you have any ideas what might be the issue.

    Thanks
    David

  45. September 20th, 2011 at 20:32 | #45

    @David

    Hi David, I have released version 2.0.4 which should have all the Debug Warnings fixed. Your version of PHP seems to be more strict than the one I have installed. Hopefully that will fix the problem for you.

    Paul

  46. October 5th, 2011 at 22:15 | #46

    Hi Paul,

    We just installed it, and when we tried to use the iframe template, we were getting what looked like a dns error (page wasn’t loading). Since we usually like to provide links to both the physical book and the kindle, that seemed to be the best option to have amazon provide links that were obvious as to which link was which.

    Also, any plans to add in other book affiliate programs into the same plugin? Google, B&N, Indybound, Powells, etc?

    Thanks for the help and the plug in.

  47. October 5th, 2011 at 23:25 | #47

    @Ross

    Hi Ross, Thanks for your interest in the plugin, it seems the US version of the iframe code does not match all the other locales. I have updated the plugin to add support for the US domain ‘rcm.amazon.com’. If you install version 2.0.7 and change the Iframe template content on the Amazon Link Settings page to:

    <iframe src="http://%RCM%/e/cm?lt1=_blank&bc1=000000&IS2=1&bg1=FFFFFF&fc1=000000&lc1=0000FF&t=%TAG%&o=%MPLACE_ID%&p=8&l=as4&m=amazon&f=ifr&ref=ss_til&asins=%ASIN%" style="width:120px;height:240px;" scrolling="no" marginwidth="0" marginheight="0" frameborder="0"></iframe>

    If cut and paste does not work then in the Templates section, delete the ‘Iframe image’ template then the ‘Wishlist’ template – this will make the plugin re-install the default template.

    It should then work as expected.

  48. Chris
    November 2nd, 2011 at 23:18 | #48

    This plugin is awsome, however I have a small issue:
    I use it on a german web site, so all prices for amazon.de are in €.
    Now I created an extra link below each “thumbnail” to compare those prices to co.uk since those prices are cheaper nearly all the time.

    Now what I would like to do: Is it in any way possible to get the prices of co.uk in € instead of £? That be awsome :) I know that thos values are calculated somewhere within amazon.co.uk since I get all my orders in € during ordering process…

    Thanks for your help and the great plugin!

  49. November 3rd, 2011 at 10:49 | #49

    @Chris
    Hi Chris, Thanks for your interest in the plugin!

    The currency conversion would be a nice addition and I’ll look into it. I have had a quick look on the Amazon AWS site and it does not look like this is something that I can get directly from Amazon.

    In the short term I would have to just use a third party currency conversion, which would not reflect the actual price that Amazon would charge. This is probably not ideal.

    To be honest I would probably prefer to do this as a different plugin, i.e. one that detects currency strings '£X.YZ' and outputs the conversion automatically '£X.YZ ($A.BC, €D.EF)'.

  50. November 7th, 2011 at 20:29 | #50

    Hey, I’m having trouble getting the price to display for any Kindle books (it displays fine for other items).

    Here’s the (HTML removed) code I’m using in the template:
    %LINK_OPEN%%TEXT%%LINK_CLOSE% [ %PRICE% at amazon.%TLD% ]

    Any thoughts on what I might be doing wrong?

Comment pages
1 2 841
  1. July 14th, 2011 at 17:27 | #1
  2. August 16th, 2011 at 11:35 | #2