Hello guys.

I've installed the AmazonTools module. Now I added some books (with review) nodes.

All seems okay... but the actual links from the books to Amazon do not contain my Associate ID(Which I placed in the settings). instead it goes, for example:

http://www.amazon.com/exec/obidos/redirect?tag=AMAZON_SEARCH_AMAZON_ASSO...

Instead of my id there's a AMAZON_SEARCH_AMAZON_ASSOCIATE_TAG

what gives? obviously that's the most critical bit of this module... my own tag ;-)

Please help!

Ron.

Comments

mertero’s picture

Seems like the problem also happens if I import books.

Maybe I'm not doing something right?

How do I import books with this module? What I try to do is:

make a new content type of Amazon book (review). Then enter ASIN and write my review. My node is then on-line, but the link to amazon is without my Assicate ID.

What is weird, is that if I go to administrator/import books, and enter a keyword, I see a list of books. This list has links WITH MY CORRECT USER TAG (Associate ID). I then import a book, and look at it. It looks okay - but my associate ID is gone... Again the long "AMAZON_SEARCH_AMAZON_ASSOCIATE_TAG" thingy.

Please help!

Ron Mertens
Metalgrass software

joemoraca’s picture

in the amazon.php5.inc

add

define('AMAZON_SEARCH_AMAZON_ASSOCIATE_TAG', 'sarasotalivin-20');

to the list of "define" statements at the very top of the file -- it worked for me -- replace 'sarasotalivin-20' with your associate ID -- or not ;>)

Joe Moraca
http://www.commercetimeline.org

mertero’s picture

Joemoraca,

Cool, that seems to work!!!!!!!!!!1111

Ron Mertens
Metalgrass software

mertero’s picture

Just another comment: this patch works, but you need to insert nodes again, because the links are already saved in the DB. So I had to delete all books, and enter them again (Luckily I had only 5!)

Ron Mertens
Metalgrass software

asb’s picture

I applied the described patch at amazon.php5.inc, but the associate ID is still not embedded in the newly (after applying the patch) created links; they still look something like http://www.amazon.de/gp/redirect.html%3FASIN=%26tag=AMAZON_SEARCH_AMAZON_ASSOCIATE_TAG%26lcode=.

Is there yet any solution how to fix (a) the broken module itself and (b) the useless database entries?

How is the correct link supposed to look? Can I do a replacement of "tag=AMAZON_SEARCH_AMAZON_ASSOCIATE_TAG" with "tag=" in the database tables, or would this damage the database entries even further?

Thanks, -asb

Prometheus6’s picture

Sorry guys, I've been busy.

This is reported over here:
http://drupal.org/node/88759

For the record, you should open issues. I REALLY don't get to the forums.