It looks like AWS is returning zeros as Offers. Here is what we see for our items with no offer prices:
[ListPrice] => Array
(
[Amount] => 4000
[CurrencyCode] => USD
[FormattedPrice] => $40.00
)
[OfferSummary] => Array
(
[TotalNew] => 0
[TotalUsed] => 0
[TotalCollectible] => 0
[TotalRefurbished] => 0
)
[Offers] => Array
(
[TotalOffers] => 0
[TotalOfferPages] => 0
[MoreOffersUrl] => 0
)
If you want to add SalePrice and your XML response have this item you ned to add it as a new keyword in amazon.php:
Here is the existing for price:
‘price’ => array( ‘Live’ => ‘1’, ‘Group’ => ‘Offers’, ‘National’ => ‘1’,
‘Position’ => array(array(‘Offers’,’Offer’,’OfferListing’,’Price’,’FormattedPrice’),
array(‘OfferSummary’,’LowestNewPrice’,’FormattedPrice’),
array(‘OfferSummary’,’LowestUsedPrice’,’FormattedPrice’),
array(‘ItemAttributes’,’ListPrice’,’FormattedPrice’))),
This is a typical xpath annotation where you start from the top node and work your way down to the FormattedPrice item.
-
This reply was modified 8 years, 6 months ago by
Studiofreya.
-
This reply was modified 8 years, 6 months ago by
Studiofreya.