Support » Plugin: Amazon Link » Wrong price when product in sale

Viewing 3 replies - 1 through 3 (of 3 total)
  • I’m trying to figure out this same issue. I would like to display the SalePrice, which seems to be available in the XML response, but I can’t find where this is being handled by the library.

    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 3 years, 3 months ago by Studiofreya.
    • This reply was modified 3 years, 3 months ago by Studiofreya.

    On another note this is an interesting read. Apparently, every item on Amazon has a parent and variations. Each product variation has also different prices for sub-variations like sizes. The plugin retrieves offer price if it’s available. It won’t be available if you choose the wrong ASIN. The plugin doesn’t seem to retrieve product variations.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Wrong price when product in sale’ is closed to new replies.