Advertisement

AVH Amazon

The AVH Amazon WordPress plugin gives you the ability to add a widget or use a shortcode in your post or page to display a random item from your Amazon wish list, baby registry and/or wedding registry.

Current Release: Version 3.1.3 Released on: Dec 17, 2009

Download | Donate | Features | Support | Installation | FAQ | Changelog

Features

The following options have been implemented:

  • Use of Associated ID.
  • Wish List ID.
  • Configurable image size (small/medium/large).
  • Find your Wish List ID.
  • Multiple widgets.
  • Works with Amazon.com and locales Amazon.ca, Amazon.de, Amazon.co.uk.
  • Multiple items from the same Wish List can be displayed in the widget.
  • A configurable footer can be displayed on the bottom of the widget linking to the list on Amazon.
  • A shortcode can be used in posts and pages

It’s compatible with WordPress 2.5 and higher.

Download

Version 3.1.3 Released on: Dec 17, 2009

Donate

If you enjoy this plug-in please consider a donation. There are several ways you can show your appreciation:

  • Amazon Wish List
    You can send me something from my Amazon Wish List which is shown in the sidebar.
  • Through Paypal.
    Click on the Donate button and you will be directed to Paypal where you can make your donation and you don’t have to have a Paypal account.

Installation

  1. Download the archive and extract all in the wp-content/plugins directory.
  2. Make sure the directory cache in the plug-in folder is writeable.
  3. Go to your WordPress administration page, click on Plugins and activate it.
  4. Go to the Options->AVH Amazon page and fill out your Wish List id.
  5. Go to the Presentation->Widget and drag the widget into the sidebar.
  6. Optionally you can change the Associated ID and or Wish List for this widget. This is for future implementation so you can have multiple widgets with different wish lists.

Support

If you have comments/problems/suggestions, see something in the code which is not compliant to the WordPress Plugin Codex, or just want to say “Cool! It works!”, feel free to create a post at the AVH Support Forum

FAQ

Q: What is my Wish List ID?
A: You can determine your Wish List ID by going to your Wish List page on Amazon. Click on the wish list you want to use in the plug in, even if you only have one wish list. The URL will show you something like this : http://www.amazon.com/gp/registry/wishlist/2CC2KKW02870/ref=cm_wl_rlist_go. This, 2CC2KKW02870 is your Wish List ID.

Q: What happens if I clear the Associated ID ?
A: The plugin will use my Associated ID.

Q: What do you have planned for future releases?
A: I wrote a list of planned implementations on the support forum.

Changelog

Version 3.1.3

  • Bugfix: Uninstall didn’t work.
  • Bugfix: The tabs in the settings page didn’t always work.
  • Updated the Amazon API.
  • Ready for WordPress 2.9

Version 3.1.2

  • Bugfix: Widget didn’t hold value for Associated ID and Associated ID.

Version 3.1.1

  • Bugfix: CSS for the widget was not loaded.

Version 3.1

  • Bugfix: In WordPress 2.8 and PHP5, the secret key calculation didn’t use native PHP5 function.
  • RFC: Ability to set number of columns when displaying all items from a wishlist.
  • The personal secret key is mandatory now. If it’s not present, the plugin will not work.

Version 3.0.8

  • Bugfix: Regression of Bugfix: When using the secret key, the call to Amazon would fail.

Version 3.0.7

  • Bugfix: In the tools section, when looking up your WishList ID and you only have one WishList an undefined function was called.

Version 3.0.6

  • New Amazon API version. Added the ability to see Universal Items on Wishlists.
  • Bugfix: Problem when showing shortcode and widget at the same page.

Version 3.0.5

  • Bugfix: When using the secret key, the call to Amazon would fail.

Version 3.0.4

  • Bugfix: When multiple pages of a list were retrieved and no AWS Key was supplied an error would occur.
  • Bugfix: Certain options weren’t saved in the widget.
  • Bugfix: Shortcodes didn’t work. Call to wrong class.

Version 3.0.3

  • If the plugin was installed prior to upgrading to WordPress 2.8, the widgets would disappear from the sidebars.

Version 3.0.2

  • Reported in conjunction with my AVH Extended Categories widget. The self class does not exists in getInstance.

Version 3.0.1

  • Conflict with declaration of sha256

Version 3.0

  • It uses the new Widget class introduced in WordPress 2.8.
  • Optimizations for WordPress 2.8.
  • Amazon policy change. Calls to Amazon need to be signed per August 15 of 2009. In order to sign calls you will need an Amazon Web Services account. See the FAQ for more details.
  • Picture is shown in metabox for ASIN search.
  • Use of WordPress defined variables, fixes problems when wp-content directory is moved.

Version 2.4

  • Speed improvements.
  • Increased security.
  • Reduced memory footprint.
  • RFC: Ability to select picture size in the short code.
  • Bugfix: Shortcode URL’s for items not in a awishlist were wrong.
  • Several other small bugs are fixed.

Version 2.3.4

  • Bugfix: Footer option in widget didn’t show.

Version 2.3.3

  • Bugfix: In the shortcode the default associate ID wasn’t set to the right one when using a a non US locale.

Version 2.3.2

  • Bugfix: The shortcode didn’t retrieve the assiocated ID set in the admin page.

Version 2.3.1

  • Bugfix: Certain character were not displayed correctly (Characters with Umlauts for example)

Version 2.3

  • RFC: When calling the widget directly the array parameter can hold the widget options.
  • Updated WDSL
  • With WordPress 2.7, when deleting the plugin it will clean up the database, removing the entries related the plugin.
  • Source code improvements.

Version 2.2.4

  • Bugfix: The footer in the widget wasn’t linking correctly.

Version 2.2.3

  • Bugfix: Metabox wasn’t displayed properly in WordPress 2.7

Version 2.2.2

  • Bugfix: Support for non-widget code was broken.
  • Bugfix: When running PHP 5 some warnings “Call-time pass-by-reference has been deprecated”

Version 2.2.1

  • Bugfix: Widget didn’t get the default values.

Version 2.2

  • Display a “no image available” picture when no picture is available.
  • Ability to set default settings for the shortcode.
  • Improve storage of the options.
  • Clear the cache folder at each upgrade.
  • Show searching indicator when searching for WishList or Asin in the Shortcode Metabox.
  • Bugfix: Fixed memory problem. Problem was not using avhamazon class in the shortcode.
  • Bugfix: Metabox was displayed incorrectly on the Page page.
  • RFC: Added option pic+text for the linktype parameter in the shortcode.
  • RFC: Added option all for the asin parameter in the shortcode. This will show all items from a wishlist.

Version 2.1

  • Changed the amount of widgets you can use from 9 to unlimited.

Version 2.0.1

  • Bugfix: Problem with widget header.

Version 2.0

  • Compatibility changed to WordPress 2.5 and higher.
  • RFC: Added shortcode implementation.
  • Number of items to be displayed in the widget can now be changed per widget.

Version 1.5

  • Bugfix: Old WSDL was used to look up the Wish List
  • RFC: Added Amazon.co.uk compatibility.

Version 1.4

  • Bugfix: Only 10 Items from a Wish List were loaded to setup the widget. All items are loaded now.
  • Bugfix: When the list contains one item the widget wouldn’t process it correctly (No image and wrong link).
  • RFC: Added Amazon.de compatibility.
  • RFC: Multiple items from the same Wish List can be displayed in the widget.
  • RFC: A configurable footer can be displayed on the bottom of the widget linking to the list on Amazon.
  • Updated WSDL Location.
  • Code improvements.

Version 1.3

  • RFC: Added Amazon.ca compatibility.

Version 1.2

  • Bug Fix: Creation of the link for the Wish List.

Version 1.1

  • Link from widget makes Amazon recognize it as a link from a Wish List. And the shipping address from the Wish List can be used.
  • Several bug fixes of files not found for WordPress 2.3.
  • Code clean up.

Version 1.0.1

  • Bug Fix: Don’t display purchased items from the lists.
  • Bug Fix: HTML problem when using WordPress 2.3

Version 1.0

  • Added compatibility with WordPress 2.5
  • Added option to use multiple widgets.

Version 0.4.1

  • Bug Fix: Didn’t display picture anymore

Version 0.4

  • Added an “tools” option under Admin -> Manage. You can look up your Wishlist ID by entering the email you use at Amazon. There is no check if the email is valid, if it isn’t you won’t see your wishlist(s)
  • Share/Bookmark

62 responses

  1. Peter says:

    Re: Josh~
    Yes at this time it only support Amazon US.

  2. Josh~ says:

    Does it support only amazon US?

  3. Khristopher says:

    Make it work with Amazon Canada, and you’ll have a fan!

  4. Peter says:

    Khristopher,

    I’m working on it.

  5. Gareth says:

    any chance of making next release work with Amazon UK?

  6. Peter says:

    For Gareth.
    Yep, already in progress. Maybe I’ll do a quick release with just this RFC instead of what I have planned for the next release.

  7. John says:

    I get this error since the last two updates:


    Warning: Call-time pass-by-reference has been deprecated; If you would like to pass it by reference, modify the declaration of avh_get_list_results(). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file in / W E B P A T H /wp-content/plugins/avh-amazon/2.5/inc/avh-amazon.widgets.php on line 91

  8. Jermayn says:

    Really like teh plugin but have a weird error:

    http://www.germworks.net

    Warning: fopen(/home/germwork/public_html/blog/wp-content/plugins/avh-amazon/cache//wsdlcache-8d089f838d34c5d105c3f4b72f5e1e2a.lock) [function.fopen]: failed to open stream: Permission denied in /home/germwork/public_html/blog/wp-content/plugins/avh-amazon/inc/nusoap/class.wsdlcache.php on line 129

    Warning: flock(): supplied argument is not a valid stream resource in /home/germwork/public_html/blog/wp-content/plugins/avh-amazon/inc/nusoap/class.wsdlcache.php on line 131

  9. Jamison Fitzgerald says:

    Works great for one widget, i even customized the css to remove the box surrounding the images and configured it to leave out the titles and put the items on one row to conserve space, however when i add a second widget and save everything it just copies the contents of the first widget, even if i go back and change it back as soon as i save it will fill the contents of all the options to be the same.

  10. Totally her says:

    I may have to give this a try on our WP site. thanks!

  11. Pdesign says:

    great post. Thank for plugin

  12. Ryan Price says:

    I can’t seem to get the footer text to show up in the widget. Whenever I tick “show footer” and hit save, it seems the “Show footer” get automatically unchecked. Any ideas?

    Thanks! Appreciate the work.

  13. daniel lench says:

    Looking good Peter! Updates installed and everything runs great.

  14. plioz says:

    hey, i’ve been looking for this kind of plugin … but why only U.S Amazon ?

  15. Thanks for the quick update. It works swell!

  16. I have removed the widget from my template because it makes my website very slow

    • Peter says:

      I’m working on version 2.4 right now that should increase the speed.

      This version is running on the site right now and the best evidence I have of the improvement is on this page
      http://blog.avirtualhome.com/2009/02/09/amazon-launches-the-kindle-2/

      Before it took almost 12 seconds to load this page because it called Amazon 4 times (1 in the sidebar, 3 times in the article itself). Currently the load time is about 4 – 5 seconds.

      If you want I can send the Release Candidate of version 2.4 to you to give it try.

  17. bali wedding says:

    i will try it also on my new wedding blog

  18. Lingvemulo says:

    Hi – I have a funny problem… the widget won’t “stick” when I try to add it to the sidebar. I add it, click “save changes”, and when the page reloads… poof! It’s back on the left side again. I’m puzzled… I’ve never had a widget refuse to live in my sidebar before!

    • Peter says:

      You seem to have a problem connecting to Amazon.
      Technical info: I try to retrieve information with the function fsockopen and on your site it doesn’t seems to work.

      This should be resolved with version 2.4 of my plugin. I don’t know when this version will be released.

  19. Does this plugin works with the latest wordpress ? Nonetheless a great plugin.

  20. The new update 2.3.4 still does not perform properly.

    On http://motionpicturecentral.com/blog/2009/02/21/sony-hvr-z7u-professional-1080p-hdv-camcorder/, AVH Amazon provides this link: http://www.amazon.com/Sony-HVR-Z7U-Professional-Video-Camcorder/dp/B00138TS4C/ref=wl_it_dp?ie=UTF8&colid=2YW78VPWH5750&tag=motionpicturecentral-20 – which DOES work.

    On http://motionpicturecentral.com/blog/2009/02/21/sony-hvr-z5u-professional-hdv-high-definition-handheld-camcorder/, AVH Amazon provides this link: http://www.amazon.com/Sony-HVR-Z5U-Definition-Handheld-Camcorder/dp/B001P9HT3Q&tag=motionpicturecentral-20 – which does NOT work.

    It seems the failure is related to the link Amazon provides the AVH Amazon plugin. We have discovered that short links fail. The short links are the sinple direct Amazon links with http://www.amazon.com and ending with the ASIN. The more complex links do not. These are the amazon links with extra tracking information between the ASIN and the Associate ID &tag.

    We have been able to figure out that letting the short link fail at Amazon’s site and then manually inserting a ? or a / after the ASIN and just before &tag=[Associate ID] will cause the link to continue properly to the the related product; however, we do not know if Amazon is properly tracking this. Plus, we don’t know where to manually change AVH’s code to fix the problem.

  21. The new update 2.3.4 still does not perform properly. It seems the failure is related to what link Amazon provides the AVH Amazon plugin.

    We have discovered that the short links fail (the links beginning with http://www.amazon.com and ending with the ASIN). On http://motionpicturecentral.com/blog/2009/02/21/sony-hvr-z5u-professional-hdv-high-definition-handheld-camcorder/, AVH Amazon provides this link: http://www.amazon.com/Sony-HVR-Z5U-Definition-Handheld-Camcorder/dp/B001P9HT3Q&tag=motionpicturecentral-20 – which does NOT work.

    The more complex links do work (those with extra tracking information between the ASIN and the Associate ID tag. On http://motionpicturecentral.com/blog/2009/02/21/sony-hvr-z7u-professional-1080p-hdv-camcorder/, AVH Amazon provides this link: http://www.amazon.com/Sony-HVR-Z7U-Professional-Video-Camcorder/dp/B00138TS4C/ref=wl_it_dp?ie=UTF8&colid=2YW78VPWH5750&tag=motionpicturecentral-20 – which DOES work.

    Letting the short link fail at Amazon’s site and then manually inserting a ? or a / after the ASIN and just before &tag=[Associate ID] will cause the link to continue properly the the related product; however, we do not know if Amazon is properly tracking the manual fixes, plus we don’t know where to manually change AVH’s code to fix the problem.

  22. Thanks for this wedding gift plugin. We are an event florist in Napa Valley and we are seeing many of our client use websites to help organize and remember their weddings. We will definitely pass this link on to our wedding flower customers.

  23. Mark says:

    Does this work with multiple authors? (it looks great)

    • Peter says:

      Yes it will work with multiple authors but, and I think your real question is if each author can have their own associate ID. There can only be one associate id for the entire blog.

      If you want an associate ID per author let me know and I’ll see what I can do.

  24. Anonymous says:

    Could You please tell me if it’s working with Amazon.de? Thanks in advance.

  25. Edwin says:

    Plugin doesn’t want to work anymore.

    Fatal error: Cannot redeclare sha256() in /home/edwink/public_html/blog/wp-content/plugins/avh-amazon/2.8/inc/avh-amazon.sha256.inc.php on line 304

  26. Inputting an AWS Secret Access Code in the plugin settings causes “unknown failure with Rest Call”. Removing the AWS SEcret Code seems to solve the problem.

  27. Hi.

    Thanks so much for your plugin. It’s really useful. I have a question. How can I do to center the thmbnails and the text in the sidebar?

    Thanks :)

    • Peter says:

      I apologize for the delay, I was about to answer “Just change the CSS file etc etc” but I discovered the CSS file was not loaded. I just fixed it and will be releasing the bugfix.

      When you have the new version edit the css file avh-amazon.widget.css in the plugin directory and change the following:

      #avhamazon-widget .wishlistimage {
      border-style:solid;
      border-width:1px;
      display:block;
      margin-left:auto;
      margin-right:auto;
      }

      #avhamazon-widget .wishlistcaption {
      font-size:100%;
      text-align:center;
      }

  28. Awesome! Thanks so much. It looks so good! :)

  29. Mitch says:

    Hi there, great plugin, I have one problem, the shortcode does not open links in a new window. I have set that option in the admin options of AVH and I tried hacking some of your code pages but cannot get it to open links in _blank ???

  30. Stephane says:

    Excellent add-on! The only feature I would like to see included is an easy way to center the books in the widgets.

    • Peter says:

      Edit the css file avh-amazon.widget.css in the plugin directory and change the following:

      #avhamazon-widget .wishlistimage {
      border-style:solid;
      border-width:1px;
      display:block;
      margin-left:auto;
      margin-right:auto;
      }

      #avhamazon-widget .wishlistcaption {
      font-size:100%;
      text-align:center;
      }

  31.  
Pingbacks and Trackbacks
  1. [...] Amazon Wishlist Plugin Just added a new widget to the sidebar: the AVH Amazon Wishlist. It randomly picks items from my Amazon wishlist. Anyone reading this can feel free to buy me [...]

  2. [...] – Wordpress – Sie werden nun zum Angebot weitergeleitet… 5) AVH amazon plugin – Wordpress – AVH Amazon WordPress plugin | My Thoughts I have tried the first 3 Good luck…. PS. all links are non affiliate [...]

  3.  
Leave a Reply


Lunarpages.com Web Hosting