Title: amazon-elements
Last modified: November 9, 2017

---

# amazon-elements

 *  Resolved [nekengren](https://wordpress.org/support/users/nekengren/)
 * (@nekengren)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/amazon-elements/)
 * I like this plug-in. I just wish I could get it to display in the format I want.
 * No matter what I try, amazon-elements will not display price. I have tried a 
   variety of FIELDS names as listed in the help menu.
 * AMAZONPRODUCTS works nice but I would like to disable the image.
 * [amazon-elements asin=”B01N5RIH4H” fields=”title,lg-image,large-image-link,new-
   price,button”]
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Famazon-elements%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [Don Fischer](https://wordpress.org/support/users/prophecy2040/)
 * (@prophecy2040)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/amazon-elements/#post-9670475)
 * Hi [@nekengren](https://wordpress.org/support/users/nekengren/),
    Sorry you are
   having issues with the price.
 * Over the years, Amazon has added more data to the API. Where it used to be something
   simple to get the price from one field, it now depends on more variables – so
   where the price is located in the data that is returned, depends on a few things.
 * Most of the time, the `new-price` or `price` field will return the **New Price**
   for the item. But when there are a lot of offers available or when the item is
   fulfilled by Amazon or another party, things get a bit more complex. When this
   happens, they return the data in the `Offers` section.
 * To get around this, when you notice that a product will not return the ‘new-price’
   field, you can use a more specific field to pull it most of the time.
 * This will sound and look a bit weird, but you can use the field called `Offers_Offer_OfferListing_Price_FormattedPrice`
   to get the price most of the time when `new-price` does not work. The reason 
   it is so long is that it is a nested field (it is located in the Offers/Offer/
   OfferListing/Price/FormattedPrice tag in the Amazon XML data that is returned,
   so pulling it out of there requires the long field name). The short names (i.
   e., price, image, button, etc.) are actually just aliases for the common long
   nested fields. In the next update we will be adding some new short field names
   to accommodate some of the more common pricing issues that have come up over 
   the past few years.
 * When you use that long field for the price, you may also need the label to go
   with it, so in your example you provided, you would use the shortcode that looks
   like this:
    `[amazon-elements asin="B01N5RIH4H" fields="title,lg-image,large-
   image-link,Offers_Offer_OfferListing_Price_FormattedPrice,button" labels="Offers_Offer_OfferListing_Price_FormattedPrice::
   Price:"]` (If you don’t need a label, you can just take that element out of the
   shortcode)
 * You may then want to also style the fields, so you can use this example as a 
   start:
 *     ```
       .amazon-element-Offers_Offer_OfferListing_Price_FormattedPrice {
           font-weight: bold;
           color: #f00;
           font-size: 1.25em;
           padding-bottom: 10px;
       }
   
       .label-Offers_Offer_OfferListing_Price_FormattedPrice {
           text-transform:capitalize
       }
       ```
   
 * Just remember that when using the `amazon-elements` shortcode that whatever the
   field name is, the classes that go with the fields are named **`amazon-element-{
   field_name}`** and labels are named **`label-{field_name}`**. Keeping that in
   mind will allow you to style just about any field you add.
 * Best of luck,
    Don
    -  This reply was modified 8 years, 7 months ago by [Don Fischer](https://wordpress.org/support/users/prophecy2040/).
      Reason: spelling fix
    -  This reply was modified 8 years, 7 months ago by [Don Fischer](https://wordpress.org/support/users/prophecy2040/).
      Reason: Code fix
 *  Thread Starter [nekengren](https://wordpress.org/support/users/nekengren/)
 * (@nekengren)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/amazon-elements/#post-9670760)
 * Thanks much. I’ll play around with your suggestions.
 * Yeah, I figured the Amazon fields were not quite so elementary. I even went to
   their API to discover some field names and try those.
 *  [Don Fischer](https://wordpress.org/support/users/prophecy2040/)
 * (@prophecy2040)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/amazon-elements/#post-9670824)
 * Best of luck!

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘amazon-elements’ is closed to new replies.

 * ![](https://ps.w.org/amazon-product-in-a-post-plugin/assets/icon.svg?rev=1565235)
 * [Amazon Product in a Post Plugin](https://wordpress.org/plugins/amazon-product-in-a-post-plugin/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/amazon-product-in-a-post-plugin/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/amazon-product-in-a-post-plugin/)
 * [Active Topics](https://wordpress.org/support/plugin/amazon-product-in-a-post-plugin/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/amazon-product-in-a-post-plugin/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/amazon-product-in-a-post-plugin/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Don Fischer](https://wordpress.org/support/users/prophecy2040/)
 * Last activity: [8 years, 7 months ago](https://wordpress.org/support/topic/amazon-elements/#post-9670824)
 * Status: resolved