I have created an amazon import module for drupal 6, similar and loosely based on the old import module in Drupal 5.
It allows you to search amazon products from within your drupal site and just tick those that you want to import into regular drupal nodes. Then it fills in the asin in to the relevant field, optionally maps the title and body and then saves the node. (there is also an alter hook for further manipulation if you want to map other fields).
The reason I went for this, rather than amazon store, is that i wanted a simpler option as I don't need to have any cart system and i wanted the choices of products to be specified by site editors.
I have created this in a sandbox project, but at present, i'm not sure about whether it should be promoted to a full module, merged into Amazon module or even part of an Amazon Extras pack (I have a few other modules i'm working on).
It's in a reasonable working state, and has a caching mechanism on requests to limit the amount of data pulled from Amazon. It requires of course Amazon API and ASIN field.
Comments
Comment #1
rfayThanks for the great work on this. I haven't taken a look (was traveling several weeks).
I took a quick scan of your code, and of course it's still in sandbox mode.
If you're not planning on maintaining a 7.x branch, I think you should just promote this module, as we won't be doing new stuff in 6.x.
Some things you should do:
* Create a 6.x-1.x branch instead of using master
* Add function headers
* Consider using (or at least look at) the Amazon Store listings of indices and such. They're quite tricky around different locales of Amazon.
Comment #2
smoothify commentedHi Randy
Thanks for the reply,
I've promoted the module to a full project and created the branch now, its available here: http://drupal.org/project/amazon_import
Currently, I'm working in D6 so for now i will proceed in that, then look to port when the opportunity arises.
I will add the function headers when I get a moment, and will delve deeper into the Amazon Store indices stuff. Is there any chance, in the future, that handling of those aspects could be brought into Amazon module itself?
Comment #3
rfaySure, anything is possible for the future. I don't do much with this module, and there hasn't been another active maintainer. If you get really invested, you may want to consider comaintaining in the future.
I hope you'll explain on the project page the difference between this module and just using feeds (of course, it's because you're importing directly from Amazon based on a search of Amazon).
It seems like a valuable contribution to me! It's great to see you active in this realm.
I'd like to mention this module on the Amazon project page (and maybe Amazon Store) - If you'll suggest the changes, I'll make them.
Comment #3.0
rfaySpecify the drupal version