Hello all,
After quite a few years out of the wordpress world, I’m back using this great CMS, and of course, I had to rewrite one of my old plugins to work with the widget interface.
Well, the Amazon wishlist plugin was the one I like best, and found really useful, although no-one ever bought me a book ;( (hint hint !)
It does not work through the normal API, but just pulls the wishlist page with curl and parses it. I did that because the amazon API does not allow priority sorting, which I find more than useful. You will need curl for that, though…
The widget is configurable, as you can see from the image on the right.
You can see it in action on this site about renewable energy
4 Responses to “Amazon Wishlist plugin for wordpress 2.7”
RSS feed for comments on this post. TrackBack URL









Hi there,
I tried out your widget, but the code assumes in numerous places that the blog is always installed in DOCUMENT_ROOT (not good).
You can solve this easily enough by replacing calls to $_SERVER['DOCUMENT_ROOT'] with the following little code snip: http://dev.zentrack.net/pastebin/120121
Looks like, since 2.6, there is also a constant WP_PLUGIN_DIR. So I was able to get this running on my site using:
define(‘SAWL_URL’, WP_PLUGIN_DIR.”/sortable-amazon-wishlist/”);
And replacing all the $_SERVER['DOCUMENT_ROOT'] entries with SAWL_URL.
On a side note, the “Amazon Wishlist” link appears outside the div and has no class on it, which make it hard to style nicely. I added a class tag to mine.
Hope this helps.
The zip file avail on wordpress unzips to sortable-amazon-wishlist/, but the imgsquare.php? link points to src=”/wp-content/plugins/amazon-wishlist/”
This is wrong for two reasons: assumes root dir again, and wrong dir name from what the downloaded content points to.
Of course, you can fix that with the pastebin link I showed earlier that points you to the plugin dir’s url.
I installed wordpress 2.9.1 and got this on activation:
Fatal error: Call to undefined function dl() in S:\xampp\htdocs\blog\wp-content\plugins\amazon-wishlist\amazon-wishlist.php on line 92
I’d realy like to test this plugin, By!