WordPress.org

Ready to get started?Download WordPress

Forums

Amazon Link
Price Retrieval Problem (6 posts)

  1. WebEndev
    Member
    Posted 1 year ago #

    I have a template called 'price' (template type is Product) that contains this:

    <div class="book-price">Amazon Price: %PRICE%</div>

    I am displaying it in a template like this:

    if (function_exists(amazon_shortcode)) echo amazon_shortcode("template=price&asin='$ASIN'");

    When entering some ASIN's, no price is displayed. Only on some ASIN's though. It does work for some.

    For example, it does not work on ASIN's B008MP38DG or B006HKTCV0.

    I don't see anything different in these than others that work.

    Any idea what the problem is?

    Great plugin!! Thanks

    http://wordpress.org/extend/plugins/amazon-link/

  2. paulstuttard
    Member
    Plugin Author

    Posted 1 year ago #

    Hi,

    Have you tried running those ASINs through the Advertising API Scratchpad to see what price info it returns - sometimes it just isn't in the database. It also depends upon the locale.

    Scatchpad

    Paul

  3. WebEndev
    Member
    Posted 1 year ago #

    Hi Paul,

    I did not know about the Scratchpad. Handy little tool. :)

    I ran the B008MP38DG ASIN through the Scratchpad and got a valid response with no errors.

    Soooo..... any ideas what to look for next?

    Thanks much for the help!

  4. WebEndev
    Member
    Posted 1 year ago #

    Hi Paul,

    Correction -

    The response was valid, and did not contain any errors.

    BUT the ItemAttributes for ASIN B008MP38DG does NOT have a ListPrice section. I checked another ASIN that Amazon Link does retrieve the price correctly for, and it DOES have the ListPrice section, with the pricing.

    So what would cause some ASIN's to have the ListPrice in the database, and others not to have it? Do you know?

    Thanks again for your help.

  5. paulstuttard
    Member
    Plugin Author

    Posted 1 year ago #

    Hi,

    The AWS database quite often does not provide as much information as you would hope for!

    Some things I've noticed regarding the price data:

    • Kindle items do not have Offer Prices at all, and quite frequently do not even have list prices.
    • Kindle items that have a price in one locale may not have a price in other locales.
    • Some items are 'parent' items e.g. Apple iPad and do not have prices, but their 'children' do have e.g. Apple iPad 32Gb White.
    • The default AWS request is for only 'New' items which is what the plugin does, the next version will allow you to request for 'Used/New/All' items which is more likely to return an Offer Price

    You can always put a price in manually, by adding it to the shortcode (&price=$1.99) but not very satisfactory.

    Paul

  6. WebEndev
    Member
    Posted 1 year ago #

    Hi Paul,

    I am contacting Amazon Associates about the intermittent and inconsistent missing data in their database.

    I will try to remember to post back what I learn from them.

    Thanks.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic