Hi guys,
I am attempting to use google checkout to process a shopping cart created with Zmags.
With Zmags you can integrate a basket with your e commerce shopping cart, however I want to send it straight to google checkout.
Problem is the XML output from zmags is not the same format as the one required by google checkout...
The XML format Zmag creates:
<shoppingList publicationID="abcdefgh">
<entries>
<entry quantity="7">
<item price="2.32" productID="AW3334-6445B">
<name>Skimmed Milk</name>
<description>Low fat milk.<description>
</item>
</entry>
<entry quantity="1">
<item price="1.25">
<name>Butter</name>
</item>
</entry>
</entries>
</shoppingList>
But if I send this straight to google it doesn't pick up the value's as the elements and attributes are not named correctly....
<item-id><item-id>
<item-name><item-name>
<item-description> <item-description>
etc...
Can anyone recommend a method for getting round this as I seem to have hit a brick wall!
I was attempting to read the variables $quantity, $description etc and then post in a form <input name="item_name_1" value="$_POST['$name']" /> But I think my syntax is way off.
I also thought I could do something along the lines of: $item = $item-id;
but that doesn't seem to work either!
Any help would be much appreciated!