PDA

View Full Version : Dan O'Brien's Tutorial Amazon Web Services: A Brief Introduction Using PHP



PhilMarkey
01-21-2005, 04:17 AM
I've been playing with Dan O'Brien's Tutorial about AWS, and I've not changed anything and it works exactly like it should!

However, when I convert it to work with Amazon UK - I've changed: http://xml-eu.amazon.com/
books-uk
local=uk
and changed the BrowseNode values
It all works fine! Except that the prices display with an () before the pound sign.

Example: List Price: £8.95 Our Price: £8.95

Dose anyone know where the () is comming from?

Blue Cat Buxton
01-21-2005, 05:07 AM
Use $price=trim($price,""); to clean up the price value $price may be OurPrice or ListPrice in Dans script, I cant remember off hand, but the trim function should sort you out

r2d2
01-21-2005, 05:26 AM
Ive had to do that as well using AWS4.

PhilMarkey
01-21-2005, 07:41 AM
Thanks Guys,
I do have the trim function, but I was wondering if you know what it is that is causing it to happen?

MarkB
01-21-2005, 07:55 AM
It's just the encoding of the text when it's parsed through the XML, I believe...

PhilMarkey
01-21-2005, 09:31 AM
Thanks Mark (web monkey),
But why would it do that? And why not with the $ sign?

Blue Cat Buxton
01-21-2005, 09:53 AM
One of lifes great mysteries, I suppose?

It is odd though that it shows correctly in the XML page