The Amazon My Favorites Widget enables you to render a listing of Amazon Products on your website. As the name suggests this plugin is meant to display products that you choose and you will need to specify a list of products as a comma separated list of ASINs.
[amazon_my_favorites]
Amazon My Favorites ShortCode
The Amazon My Favorites Widget can be inserted into your website’s posts and comments through the use of the amazon_my_favorites ShortCode.
[amazon_my_favorites title="My Favorite Books" ASIN="0765325942,0765326353,0316075558,0316075558,0316069159,0316043915"]
The ShortCode interface fully supports all widget options that are defined in the properties section.
Amazon Widget PHP API
When developing the plugin we felt that it was necessary to enable users full flexibility in where they want to place the Amazon Widgets. For this purpose the AmazonWidget class was created that exposes the static MyFavorites method that can be used to output the Amazon My Favorites Widget within the php code of your WordPress Theme. The MyFavorites method like all methods in the API take an associated array of supported properties as it’s only value. To make things easier it allows you to use either the Amazon or ShortCode name of the property.
AmazonWidget::MyFavorites( array( "ASIN" => "0765325942,0765326353,0316075558,0316075558,0316069159,0316043915", "title" => "Amazon Best Selling Books" ) );
Amazon My Favorites Properties
The below information is sourced from Amazon’s Widget Source web page with a few modifications for ease of use and inclusion of ShortCode references.
Common Properties
Parameter | ShortCode | Description |
---|---|---|
tag | tag | Your Associate id |
width | width | Widget width in pixels |
title | title | Widget title |
columns | columns | The number of columns to be displayed in the search results |
rows | rows | The number of rowsto be displayed in the search results |
shuffleProducts | shuffle_products | Set to True if you want the widget to show products in a random order each time it is displayed |
showImage | show_image | Set to True if you want the widget to display product images |
showPrice | show_price | Set to True if you want the widget to show the product price |
showRating | show_rating | Set to True if you want the widget to display product ratings |
Widget Designs
design [SC] design |
colorTheme [SC] color_theme |
Overrides | |
---|---|---|---|
1 | Blues Pistachio RedGrey Pink Pumpkin |
Parameter | Values |
outerBackgroundColor [SC] outer_background_color |
Any hex color value (i.e. #CC6600) | ||
innerBackgroundColor [SC] inner_background_color |
|||
headerTextColor [SC] header_text_color |
|||
linkedTextColor [SC] linked_text_color |
|||
bodyTextColor [SC] body_text_color |
|||
roundedCorners [SC] rounded_corners |
True, False | ||
2 | Default Blue Grey Orange Pink White |
Parameter | Values |
outerBackgroundColor [SC] outer_background_color |
Any hex color value (i.e. #CC6600) | ||
backgroundColor [SC] background_color |
|||
borderColor [SC] border_color |
|||
headerTextColor [SC] header_text_color |
|||
linkedTextColor [SC] linked_text_color |
|||
bodyTextColor [SC] body_text_color |
|||
3 | Cinnamon Peppermint Spearmint |
Parameter | Values |
headerTextColor [SC] header_text_color |
Any hex color value (i.e. #CC6600) | ||
linkedTextColor [SC] linked_text_color |
|||
bodyTextColor [SC] body_text_color |
|||
4 | Onyx Cobalt Ruby |
Parameter | Values |
headerTextColor [SC] header_text_color |
Any hex color value (i.e. #CC6600) | ||
linkedTextColor [SC] linked_text_color |
|||
bodyTextColor [SC] body_text_color |
|||
5 | BrushedSteel BrushedNickel BrushedCopper |
Parameter | Values |
headerTextColor [SC] header_text_color |
Any hex color value (i.e. #CC6600) | ||
linkedTextColor [SC] linked_text_color |
|||
bodyTextColor [SC] body_text_color |
Want to display the Amazon My Favorites Widget on your website? Then install the WordPress Amazon Associate plugin today by downloading the plugin or installing through your WordPress Plugins Admin Panel.
When I add it to my website in the widget column, it’s size is always down to the total bottom, no matter how many products are listed. It does not scale to the correct size…
Did not have this with any other widget
I fumble around with this a few days at a time then I abandon it in frustration. Here is my process; I go to the appearance/widgets page and enter the Amazon “Favorites” widget, then I try to edit the ASIN numbers of the ones I want to display and it doen’t want to let me edit the simple stuff and then it has a ton of blanks to fill out with color, format etc. Then I get totally fruatrated and abandon it again. Then I begin the search all over again to find some help in putting my blog site together the way I want it.
Matt –
My security credentials are valid and confirmed. I’ve tried making a My Favorites widget, and inserting code directly into a post via the search/insert dropdown, but in neither case is anything rendering. I’ve double-checked the ASIN #’s, and they’re correct.
_Mike
Mike: if possible can you send me the ShortCode that is in your page content? Are you able to display Amazon links through the plugin? or are all ShortCodes/Widgets not currently working. If you have a test page on your server that I could access directly that would also help diagnose the underlying issue.
> Matthew
Matt:
I have managed to insert some single book covers into my WP pages. I only need a couple Amazon widgets for now, Search” and “My Faves”. Do I have to completely build each Widget with code?
JU
John:
If you don’t want to create the ShortCode manually you can create them through the UI interface that is reachable on the post/page editor. Simply select the widget you want to create from the tinyMCE drop down (button with Amazon logo on it). That will make it easier than writing the widgets ShortCode by hand.
> Matthew