Need someone to lead product management at your software company? I create software for people that create software and I'm looking for my next opportunity. Check out my resume and get in touch.

This is the blog of Adam Kalsey. Unusual depth and complexity. Rich, full body with a hint of nutty earthiness.


Comments for New MTAmazon forthcoming

Excerpt: A new version of MTAmazon will have some great new features. Filter BrowseNode and wishlist searches by keywords, search for items by price, and manage your customer’s Amazon shopping cart. Read the whole article…

Richard Soderberg
May 20, 2003 10:12 AM

I'd like to see the option to filter my wishlist to books, only, since the rest of the items aren't relevant to my "Books wishlist" sidebar at my site.

May 21, 2003 2:59 PM

Kickass! :-) "Got a community photoblog? Show your users low-budget digital cameras and camera phones." Not just for photoblogs either--paging Gizmodo...? Okay, on to features requests... - I don't suppose it's possible to fetch image height and width tags for product images? Lots of the book jacket photos are odd sizes, so I can't just stick in a default value, since some are wider than usual. And no height/width tags means my page layout looks screwy until all the images load. - Can we split the product line "books" into fiction and non-fiction somehow, or is that a failing on amazon's backend that they don't distinguish between the two? - Can we start with a default book (or other product) ID and list things related to it, or other books related to it that people have also ordered? - This could probably be accomplished with one of the MT plugins like IfEmpty, but if a category comes back empty, can we have some default text show up, like N/A? - Can we round off the average customer rating to the nearest .5 or 1 so that we can use images of stars for that field? For example, if a book has a rating of 4.39, let's have MTAmazon round that to 4.5 automatically, from which I can then make it load "4.5.gif" which would be a GIF of 4.5 stars. I'll probably think of more... Too bad IMDB makes you license their data (by paying through the nose), because I'd really, really love a MTIMDB plug-in, especially combined with MTAmazon so you can look-up details on a movie and then buy it...

Cameron Corda
May 23, 2003 9:32 PM

I think it would be really cool to add multiple items to your cart. For instance, if you want to link to a camera, flash card, and excellent dp book, and call it a "Digital Photography Bundle", there should be an option to one click add all items to cart. The actual use I have in mind is when a teacher assigns a reading list. With one click, the student could add all books to their cart, and a teacher could get a commission and use it to pad their own wallet, or perhaps pay for class supplies or something.

Ian Fenn
June 4, 2003 6:56 AM

Now that is offering web services, I would like the tag option to specify which to use so that I can provide links for both UK and USA visitors. It's a real shame just to cater for those in the USA. In the meantime, thanks for a great plug-in! -- Ian

June 25, 2003 3:36 AM

This is great! Like asparagirl I'd like image sizes, and rounding on the stars :)

June 26, 2003 5:34 PM

I thought of something else I want :) Without using a category to specify my "currently reading", I'd like to be able to mark that book, somehow. I display that in my sidebar (of a book log). I currently use «MTEntryCategory» for the Author, so I really don't want to use it for something else too. Until now I've used a php include to display the current book details. I tried using a php include to place the Asin in the MTAmazon search tag, but that wouldn't work. The error was that no search string was specified, probably because that bit isn't parsed until the page loads. A way around that would be awesome!

Adam Kalsey
June 26, 2003 8:08 PM

Whare are you storing the ASIN? The reason the PHP include won't work is that MTAmazon creates the page when you rebuild. The PHP runs when the page is requested, so by the time the PHP includee runs, MTAmazon has already run. The reason I ask where you are storing the ASIN is that you could do something like <MTAmazon method="Asin" search="[MTEntryKeywords]"> This would insert the contents of the keywords tag into the MTAmazon search.

Kai Kretschmann
June 27, 2003 11:22 AM

I changed the module to work with the upcoming german AWS. It already works at my site for the archived articles. The diff from the last version is under: I had two problems befor patching: 1) It got an XML parsing error for empty amazon search results 2) It returned utf8 strings into my iso html which made it very bad behaved :-) so now I converted most strings to iso via a "tr" command.

July 1, 2003 3:09 AM

I am storing it MTEntryExcerpt, but the problem is that the particuar book I'm referring to isn't necessarily the book referred to in the entry, nor the latest entry, nor even necessarily the one before that. MT isn't going to know which entry the tag is related to, unless I store that (the entry id) somewhere static too.

July 1, 2003 5:45 AM

found another wish for my list :) I'd like the amazon data to be xhtml compliant :) There's an ampersand in one of the titles on my wish list, it would be much nicer if it were an &amp;

July 9, 2003 8:51 PM

something really odd is happening with my wishlist. It's displayed in my site (at, but incase it fixes itself I've taken a screenshot, showing the highlighted link, which says "Descartes in p0 Minutes P...". That isn't on my wishlist. However, if you click the link, you get a book that is! Here's the screenshot - This is the link - There are quite a few titles (8/20) that are displaying the wrong text. I've done nothing, so far, to try to correct this, like rebuild my cache or anthing.

July 10, 2003 10:21 AM

Richard, you can filter the results using the Compare plugin to parse out the results you want by comparing the amazon catalog entry. One question I have, and I apologize for asking this here because I tried the sourceforge mailing list archives and they seem to be down, is lately I have not been able to get the plugin to work, it was working for a brief while then I started getting this error: Loading external module 'MTPlugins::MTAmazon': Error opening file '/.mtamazon.config': No such file or directory at extlib/MTPlugins/ line 509, line 18. Compilation failed in require at (eval 27) line 3, line 1 Any thoughts on why this error is occurring? I checked the .mtamazon.config file and even reinstalled everything. The cache directory is empty.

Christoph C. Cemper
July 24, 2003 5:18 PM

Adam, I would need a multi-locale feature. What I want is an Amazon-Integration to Amazon(US) and Amazon(DE) in one template... the whole thing shall be configurable i.e. via a tag or so.. My idea is to lead german visitors I got to Amazon germany, while US-visitors to Amazon US, etc... And I want to do that by redirecting them to a specific built of that template (which shall actually consist of a small header setting the locale-config and then including a common part (module))... If this is unclear, I'll be happy to explain that in more detail via mail... christoph

Trackback from the golden path
July 28, 2003 1:11 PM

Transmogrify your blog

Excerpt: Some insight into the construction of this site with a smattering of tips and tricks...

August 11, 2003 3:01 AM

It seems that the sourceforge mailing lists are down. I was wondering if there was a way to make your wishlist links to where if the item was purchased you'd get it instead of the person who clicked... Thanks, Halla

orange haired boy
August 11, 2003 2:09 PM

I would like to see integration with a "Now Playing" plugin. My blog shows the last 15 songs I've listened to, but I can't integrate it with MTAmazon (as far as I can see) because the keywords needed to search come from an XML file.

August 17, 2003 2:34 PM

yes.. what halla said! It seems a little odd that in a wishlist display the link is to the item itself, and not to your wishlist.

Adam Kalsey
August 17, 2003 2:38 PM

Unfortunately Amazon doesn't provide a way to link to your wishlist in that way.

August 18, 2003 4:04 PM

I've been using MTAmazon in conjunction with Bookqueue for a few months now, thanks for a great plugin. This week I've run into a problem with getting my site to validate as XHTML 1.0 Trans though, and the problem seems to be the Amazon links... As far as I remember, I did not have this problem before... has Amazon changed the way they build links? is there anyway to get properly validating XHTML 1.0 Trans links again? Thanks for any help.

August 18, 2003 8:00 PM

Ok, found a fix with the help of the kind people at the MT support forums: All validates again!

August 19, 2003 8:59 AM

How about very short amazon links as described here: This would just make the code a bit less cluttered...

August 27, 2003 8:31 PM

Currently I use this code to display movies that I have just seen on my site: MTAmazon method="Keyword" search="[MTEntryTitle]" line="dvd" Since the films are currently in the theater, they don't have ASIN numbers yet as DVDs. Luckily this works for new releases (since Amazon now has movie tickets for sale). So, I do a keyword search under DVDs and cross my fingers that the first result is teh one I want. And this usually works for archiving as well, because the keyword search still functions once the movie's DVD is released. The only problem is sometimes the movie I want is not the first result of the keyword search. I want this to work for new releases and older DVDs, as well as degrading the new releases to the DVDs...all without maintenance. It works now about 90% of the time. Is there a better way to do it? Is there something possible with the new Amazon implementations or what you have planned with MTAmazon 3.0 that would make this function the way I want?

September 5, 2003 2:01 PM

I know this may not be on-topic, but I was wondering if we could get someone to make a similar plug-in for mt that tied into imdb? so that you might search for actors and movies in a similar way as mtamazon does.

carol o
September 16, 2003 5:50 AM

My wish: MT-style date formatting of theatrical release dates along with the regular item release dates. I can do "MTAmazonReleaseDate format="%B %e, %Y"" now.. I want to also be able to do "MTAmazonField name="TheatricalReleaseDate" format="%B %e, %Y"" or the equivalent.

September 24, 2003 12:31 AM

Carol O took the words right outta my mouth with regards to formatting the TheatricalReleaseDate (can we make that its own tag?). Also, I've noticed that when searching within the dvd line, I can fetch a Director's name by navigating the XML tree, but for some reason can't seem to fetch Actors' names. Could be an amazon bug. Anyway, shouldn't this be a similiar subroutine to what already exists with MTAmazonArtists? If so, can we also add MTAmazonDirector and MTAmazonActor tags to the version 3.0 wishlist?

October 8, 2003 6:01 AM

Could you make this work with as well as .com (and I suppose etc...). I can't see it being to hard... Would be nice to be able to talk about books and let users buy off the amazon of thier choice!

Damian Rafferty
November 6, 2003 4:54 AM

The current plug in is great (even if it sometimes throws up strange errors on a rebuild). I would like to echo all those who want different country specific searches (and if possible a way to display the best choice automatically for a user). I would also love to see a feature that looks to see if any of the following words are in the MTEntrytitle: 'dvd', 'cd', 'book', 'film' etc and then allowed you to restict results to the appropriate category on Amazon. This would be useful for me as I have DVD and Music reviews and would prefer to offer the DVD of 'Superfly' if it is a film review and the CD if it is a music review.

August 3, 2004 6:42 PM

Will the new web services allow you to extract the new priority data from a wishlist? It would be great to exclude stuff I mark 'do not buy for me.'

Norm Gall
August 6, 2004 2:44 PM

How about the ability to link to instead (or even better, in addition to)

October 27, 2004 10:49 AM

I'm trying to set up MTAmazon for a list of books that I've read. I'm trying to set it up to take the MTEntrykeywordfrom the entry for a specific category, but all it gives me is a blank page: " align="left" border="0" hspace="5" /> What am I doing wrong?

November 13, 2004 10:32 AM

As long as it still works with BookQueue I am happy! Love you guys for what you do!

Simon Cox
January 24, 2005 6:55 AM

I thought there was a version of this that worked with

February 18, 2005 4:19 PM

Is there a version which works together with Amazon Germany. I was not able to find anything in the documentation. Appreciate any help.

March 25, 2005 1:50 PM

It would be really nice if there was some sort of functionality for dealing with books that have no images associated with them on Amazon, like defining a placeholder image, or something like that.

April 9, 2005 9:51 AM

Hi. I apreciate your efforts of developing plugin like MTAMezon. I required such web service plugin for my site. But my requirement is like. user should be able to shop and pay from my site only. There should not be any Amezon page displyed to the user, not even for payment. Please tell me can your plugin meet all these requirements? If you wish to provide it at commercial basis then also thats fine for me. Please let me know about this by mail. Thanks Alpesh

May 4, 2005 1:07 PM

I LOVED MTAmazon, and a few people told me it was one of their favourite things about my blog... (not sure what that says about the rest of my blog but anyway.) However, in rebuilding recently, I discovered that my ISP no longer support f(open). for security reasons. They recommend using curl instead. A couple of other ISPs appear to be going the same route. This doesn't really mean much to me as I am by no means a programmer, but I would love it if somehow it was made compatible again. I am using it with Bookqueue too.

June 9, 2005 12:40 AM

It would be great to have more paramters... i.e. heavy or lite, AWS 4.0 or AWS 3.0 request. Can't wait to use MTAmazon 3.0

This discussion has been closed.

Recently Written

Micromanaging and competence (Jul 2)
Providing feedback or instruction can be seen as micromanagement unless you provide context.
My productivity operating system (Jun 24)
A framework for super-charging productivity on the things that matter.
Great product managers own the outcomes (May 14)
Being a product manager means never having to say, "that's not my job."
Too Big To Fail (Apr 9)
When a company piles resources on a new product idea, it doesn't have room to fail. That keeps it from succeeding.
Go small (Apr 4)
The strengths of a large organization are the opposite of what makes innovation work. Starting something new requires that you start with a small team.
Start with a Belief (Apr 1)
You can't use data to build products unless you start with a hypothesis.
Mastery doesn’t come from perfect planning (Dec 21)
In a ceramics class, one group focused on a single perfect dish, while another made many with no quality focus. The result? A lesson in the value of practice over perfection.
The Dark Side of Input Metrics (Nov 27)
Using input metrics in the wrong way can cause unexpected behaviors, stifled creativity, and micromanagement.


What I'm Reading