I've taken a swag at updating the Amazon module to 4.4. I have it running on the administrative menus, but it isn't at all apparent how you are supposed to invoke it otherwise. There is a block which appears to provide possible book matches for a given page, but that's not what I'm interested in.

Has anyone gotten the Amazon module working under an earlier version on a site that I could browse? I'd like to see the functionality actually 'working' before I try to debug things under 4.4.

Thanks!

Comments

NFW-1’s picture

I was just looking for that module... Where did you find the code? I will be glad to take a look at this code and do what I can to steer you in the right direction to get it working with 4.4.x.

I can't really update the module myself (my employment contract won't let me contribute to a GPL project) but I have done a fair amount of drupalhacking to get my own site 'just so' and I would LOVE to see this module working again.

pfaocle’s picture

Hi,

I've been 're-working' (in the loosest sense of the word) amazon.module for a site we're currently developing... its probably a little untidy and may contain site-specific hacks, but I do hope to get it cleaned up and perhaps even re-submitted.

So far I've reworked all the hooks to work with CVS (which we're currently tracking for the site we're working on), and I've re-written some of the block code, and the page/form bits should now use the new drupal form() and theme() functions properly.

Once I'm done I could post the module if anyone is interested?

---
paul byrne
web monkey - http://www.leafish.co.uk/

---
Paul Byrne
pfaocle.co.uk | CTI digital

sepeck’s picture

one vote for interested. :)

-Steven Peck
---------
Test site, always start with a test site.
Drupal Best Practices Guide

kc’s picture

One more vote here for interested. :-)



KC
-----

bertboerland’s picture

please get in contact with the maintainer to make sure (s)he will give development to you, apply for a cvs account an dupload new module

--

groets


bertb

--
groets
bert boerland

slower’s picture

This is exactly the functionality I'm looking for. I'd be thrilled to see this module updated for 4.5.

crazybooks’s picture

I'm definitely interested!

uzforce’s picture

I'm really interested in this too...

tidalx3’s picture

Is this dead now?

slower’s picture

I'm working on updating it to 4.5 at the moment. The block which lists related items when you view nodes is working, but I'm just now getting to the store and search page.

What I think is needed is the ability to attach *specific* Amazon.com items to nodes, so that you could display a book on AIDS in a story that discussed recent findings in HIV vaccines, for example. Random matches are not terribly useful, but they are more hands-off, I suppose. I'll see what I can do in this direction.

steveparks’s picture

Hi

Great to hear you're working on this - thanks!

Is it possible to include an admin option for the module to use amazon.co.uk instead of amazon.com? Both sites use the same structure and software, so it should hopefully be possible.

Thanks
Steve

===
Steve Parks
Convivio - a digital services agency

http://weareconvivio.com

slower’s picture

This may be a bit tricker than I anticipated. Each amazon site has it's own separate and distinct affiliates program, with unique links and everything. I'm honestly not willing at this point to create an account with each service and add all the custom link code, etc. Maybe once I've actually gotten approved for my *** cvs account, and I have posted my first revision of the module.

alexmc’s picture

I'd suggest two separate modules from amazon.com and amazon.co.uk, and so on....

stevew’s picture

Let me just add my voice to those who are eagerly awaiting this. I was just thinking if I should try to hack up an Amazon module available for some other CMS, but I'd much rather not. I agree that specific items attached to a given node would be a great feature. If it had to choose random items, it would be cool if they came from a pool that you put together in the admin pages.

In any case, if you need help beta testing this, or want other help, then to the extent that I can, I'm in.

slower’s picture

This was a fantastic time for me to get back to writing this module since someone already wrote a module for the part I hacked out of the old "Amazon" module (http://cvs.drupal.org/viewcvs/drupal/contributions/modules/amazon/?hidea...). The new "Amazon search" (http://drupal.org/node/14952) module does the store browsing bit, but what I was interested in (as discussed above) is the ability to add items to individual nodes using ASINs, and have those linked to my Amazon Associate ID for kickbacks on those purchases.

Well, I released a first run at it, and it should be listed on the main site as soon as it updates from CVS. I called it "Amazon items" and there are two display methods for the node's related items: a box at the bottom of the node using either Amazon-served iFrames or standard floating divs, and a block, using floating divs for now. You can choose from the three thumbnail sizes Amazon offers and can rename the box and block titles as you wish. I look forward to suggestions and criticisms (this is my first custom module, and first time using CVS).

stevew’s picture

I'm really looking forward to this. I very much want to be able to add related books to some nodes, and this is going to be great.

Have you thought about reversing that structure? Perhaps making a "Bookstore" page that shows the books from the different nodes. That page could be ordered by the site taxonomy. (So all the books that I have linked to from craft pages would be in one group, all the books from photo pages would be in another group, etc.) You could close the loop by having links back to the different articles from the bookstore page. ("related articles on the site include...")

Steve
--
http://theme.etmeli.us/ - Drupal themes
http://etmeli.us/ - photos, commentary, occasional sarcasm

crazybooks’s picture

I concur, this is exactly what I am waiting for. Is there someway to make it international? I'm a uk associate, and while I can link to american sites too, I'd prefer the urls to point to the uk site. The search module enables you to note which site you are associated with, but....doesn't extend it far enough.

Also...some way to make it compatible with bookreview.module ? It is likely that the two would get used in conjunction a lot.
----------------
I R Admin Monkey. Damn those users. Damn them with Zim like hyperbole

slower’s picture

I'm still wrapping my mind around the API stuff for taxonomy, but I'm sure I could figure it out by studying existing modules. I like your idea; seems like most modules that extend node functionality also include some kind of base page that collects all nodes sharing the new module. Especially keen is the idea of looping back from the Bookstore page with "related articles". Maybe you could submit a feature request so I can keep track?

As for international support, it's still something I want to add, but I have to decide which countries to include (see above comment of mine). I suppose I could assume the UK would be the second most requested country and just tack that one on first.

As for linking in with bookreview.module, well, book reviews are just another node type, so you will be able to add Amazon items to a review like any other node type.

tulula’s picture

Any chance for associate affiliations with Amazon.ca (canada) to be applied to this?

slower’s picture

An issue has already been opened regarding international Amazon companies.

centipod’s picture

I just brought up Drupal 4.7Beta6 specifically so I can use the amazon associates module. But its bitten by the array2object deprecated functions.

I tried using
$AmazonItemList[] = (object) $_CurrentItem;
But that generates many many errors when it is run. Something is wrong here. Does the module have to be ported to 4.7Beta6?

centipod’s picture

Here's an example of the warning one gets when you run the module:

* warning: Invalid argument supplied for foreach() in /opt/lampp/htdocs/amazon/modules/amazontools/amazon.php5.inc on line 112.
* warning: array_merge() [function.array-merge]: Argument #2 is not an array in /opt/lampp/htdocs/amazon/modules/amazontools/amazon.php5.inc on line 211.
* warning: Invalid argument supplied for foreach() in /opt/lampp/htdocs/amazon/modules/amazontools/amazon.php5.inc on line 112.
* warning: array_merge() [function.array-merge]: Argument #2 is not an array in /opt/lampp/htdocs/amazon/modules/amazontools/amazon.php5.inc on line 211.
* warning: Invalid argument supplied for foreach() in /opt/lampp/htdocs/amazon/modules/amazontools/amazon.php5.inc on line 112.
* warning: array_merge() [function.array-merge]: Argument #2 is not an array in /opt/lampp/htdocs/amazon/modules/amazontools/amazon.php5.inc on line 211.
* warning: Invalid argument supplied for foreach() in /opt/lampp/htdocs/amazon/modules/amazontools/amazon.php5.inc on line 112.
* warning: array_merge() [function.array-merge]: Argument #2 is not an array in /opt/lampp/htdocs/amazon/modules/amazontools/amazon.php5.inc on line 211.

vidmarc’s picture

I'm registered as an associate with all amazon stores, yet the Amazon items module I've just installed supports only amazon.com - is there any way this module can be expanded to include IDs for:

amazon.com
amazon.ca
amazon.co.jp
amazon.co.uk
amazon.fr
amazon.de

It seems that this update has been requested quite a few times, and the last mod update request for this was well over a year ago.

Is there a progress reports on this?

-----------------------------------------------------------------------
Mondo Erotico
DVD News + the films of Borowczyk, Franco, Metzger + Rollin