amazon price sometimes wrong
debsjenkins - June 20, 2007 - 08:07
| Project: | Amazon associate tools |
| Version: | 5.x-1.6 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | postponed (maintainer needs more info) |
Jump to:
Description
Hi
on some amazon nodes the amazon price comes up wrong - for example it should be £12.99 and it comes up as £14.99
Thanks
Debs

#1
As I have noticed, this bug is quite old and applies (1) mostly/only (?) to non-us Amazon stores, and mostly/only to articles with variable prices.
As for the German Amazon shop, most book prices are correct (they have fixed prices in Germany), but almost any other articel shows the wrong price, usually a higher one than recent. I suspect that the Amazontools display some kind of recommended prices for resellers, or Amazon's initial price tag. This is a real showstopper, since there is no working way to update the price information, but however, it's there for much longer than a year and was never fixed, so it might be improbable that it will ever be corrected.
#2
I was seeing the same issue. I'm no expert in Drupal or php (brand new), but it looks like the code is grabbing amazon's "medium"-sized product information plus detailed offer information (all the information about who's setting the product and at what price). It looks like it's loading all the values into an array that it used to present the data. Because there might be several prices (formattedprice) nodes, though, it looks like the code might be simply overwriting previous formatted prices with later ones.
Here's one possible solution, but I'm literally brand spankin' new to this, so I don't know what the impact of the change might be to other parts of the module: Because the "medium" response group contains the lowest price in each category (new, used, collectible, refurb, etc) already, you might be able to leave out the offers information and just get the lowest price for the category. If the items are only new, than this might solve the problem. You can give this a try by removing "offers" (and the comma in front of it) from line 120 of amazon.module.
Just a though anyway...
#3
You're on the right track... The MerchantId is set to 'Featured'. If you change it to Amazon, it will show the Amazon listed and actual price. Basically the Offers that show when the merchant ID is Featured will show the last (and most expensive) price. I was looking at an item whose amazon price was higher than the list price... not something I'd like my viewers to see. It was fun figuring that out though ;)
#4
@jackiefry:
I found four occurences of MerchantId in proximity to 'Featured' in amazon.module; I replaced it, but prices are still wrong. Would whis affect only newly created nodes (the reflresh function is still broken), or thould these changes show up immediately??
PLEASE, could someone with the proper knowlede integrate alle the available fixes since 5.x-1.5 from last year and roll a new release?
Thanks & greetings, -asbdpl
#5
I might add, that the Amazontools module after these changes does not display any prices at all anymore, if not Amazon itself offers the item, but a 3rd party seller. That applies, at least for the German Amazon shop, for almost any electronic equipment available on Amazon.de.
Regards, asb
#6
After a bit of digging around on the Amazon site, it seems that a MerchantId value of 'Featured' is for the USA only.
You can set it to 'All', which is supposed to look up prices for Amazon and all other vendors, or just Amazon, which will only show Amazons prices.
This is what I have found (mine is for the UK)
* 'Amazon' works fine sometimes, but if there is vendor listed as the featured, the price on my site is wrong. Also, if Amazon does not sell the product and it is only available from a vendor, then the price is blank
* 'All' is very unreliable. Sometimes it shows the correct price, but mostly it does not. If a price is discounted, it shows the non discounted price. Often it just shows an incorrect price all together.
It is very frustrating that this only seems to work in the US. I'll keep playing around though.
#7
I would like to know if you found the solution to this issue, since I am only in the US, I do not have the problem.
#8
> I would like to know if you found the solution to this issue, since I am only in the US, I do not have the problem.
Basically this is still unsolved. However, there's a patch that at least tries to update some data when a node is loaded.
Greetings, -asb
PS: Still hoping for a new release, and faithfully hoping for an upgrade path to D6 ;)
#9
There is an update posted in the CVS, I just havent figured out how to add it to a release. It is well tested.
#10
(Half a year later) Still hoping for an upgrade path to D6 ;)
Greetings, -asb
#11
The new version does some updating of pricing (or should), but it is hardly real time pricing :(
Sorry, but this project just wont have much of an upgrade path that would provide real time pricing (unless someone comes out with a PATCH!)
Mike