This post is also available in: English (Englisch)
- Question: The plugin stopped working for me. In the setup panel the status is ready. On the page it shows the Amazon box, but the box is empty.
Answer: In this case, please first clear up the cache to be sure no faulty data is still retrieved from there. If that did not help, try this: Put in some made up values for the Amazon credential keys, save, then go back in with the real values.
If that did not help either, it is quite likely that your Amazon account is not authorized to use the Amazon Advertising API. This has something to do with the changes, Amazon made in late August 2012. I wrote a detailed explanation about this issue. If you think your account should be all right and you do not have another (seller) account, please contact Amazon to active your account for the Advertising API as described in the link above.
This is what a user wrote me after solving this issue:
„I had registered for the Amazon Affiliates program. But that is not the group that handles the Product Advertsing API. The group that handles the PA-API is called the Amazon Assoiciates program.“
This means you have to be an Amazon Associate to be able to use AmazonSimpleAdmin. For more information please visit: http://affiliate-program.amazon.com/gp/associates/join
- Q: Why do the rating stars show up empty although there are ratings on the product page?
If you experience empty rating stars on your site although the product has ratings, it is very likely that ASA ran into the captcha on the product ratings site. By default, ASA reads the ratings from that page every time the product gets refreshed via the API. If you have many products on a page which have to be refreshed, the ratings page will get accessed many times in a short time. Sooner or later this will lead to running into a captcha. This issue has been addressed with ASA2’s advanced ratings mode. It is a very sophisticated feature and therefore only available in the premium version. Read more at docs.getasa2.com/ratings.html
- Q: Do I have to embed an Amazon logo with every product?
As an Amazon Affiliate you do not have to include a Amazon logo, but you can if you follow the Trademark Guidelines (https://affiliate-program.amazon.com/gp/associates/help/operating/amazonmarks/).
You must, however, clearly state the following on your site: „[Insert your name] is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to [insert the applicable site name (amazon.com, amazonsupply.com, or myhabit.com)].“
(taken from https://affiliate-program.amazon.com/gp/associates/agreement/, „10. Identifying Yourself as an Associate“). Like in the imprint of your site.
- Q: For category music CDs what is the placeholders for artist?
- Q: Are there any special placeholders for MP3 downloads?
A: There is a special built-in template for mp3 files. Use
- Q: The plugin does not show the price for Kindle ebooks correctly.
A: Unfortunately the Amazon webservice does not support Kindle prices at the moment. See https://forums.aws.amazon.com/thread.jspa?messageID=208072
- Q: I get the PHP-Error: Warning: domdocument::domdocument() expects at least 1 parameter, 0 given in wp-pathpluginsamazonsimpleadminlibZendServiceAmazon.php on line 129
A: There are two very similarly named PHP extensions, dom and dom_xml – the dom extension is built into php5 and loading the dom_xml extension (designed for php4) will override the default extension. I suspect that loading php_domxml.dll (on Windows) in your php.ini is the cause of this problem. Try to disable it and see if that helps.
- Q: Can I change the image files for the rating stars?
A: Yes. You can find the image files in the template’s subfolder „img“: stars-1.gif … starts-5.gif. Just remember to backup your customized files before updating the plugin.
- Q: Is it possible to add a „Add Product To Wishlist“ Button?
A: One way is to set up a button here: http://www.amazon.com/wishlist/vendor-button and include the script into your template file with included placeholders for ASIN, image URL and product URL like:
- Q: How can I use a custom field with the ASIN to include a product in a post?
You can achieve this with the function „asa_item“. You could place a custom field „ASIN“ in you post where you put in the ASIN of the Amazon product. In your single.php you can use this code:
<?php echo asa_item(get_post_meta($post->ID, 'ASIN', true)); ?>
This will display the default template just like you were using the asa-shortcode in your post text. You can use a custom template name as second parameter, like:
<?php echo asa_item(get_post_meta($post->ID, 'ASIN', true), 'my_custom_template'); ?>
How to create custom templates is described in the step by step guide: http://www.wp-amazon-plugin.com/guide/
- Q: Is there a PHP function for collections I can use in my theme templates?
Yes. This is how you could implement a collection in your theme template maybe for automatic adervtising. It shows one product of the collection:
<?php echo $asa->parseContent( "" ); ?>
For example place this after the_content() function. In this example „advertisement“ is the name of the ASA template file and „your_collection_name“ is the name of the collection you want to use for advertising. You even could combine this with a custom field for the collection name so you can decide which collection should be used for advertising on a page:
<?php $collection = get_post_meta($post->ID, "ad_collection", true); echo $asa->parseContent( "" ); ?>
- Q: Will it work with my theme?
This plugin is tested with the following themes: – Twentyten – Twentyeleven – Basic (Free theme by Themify) – Thoughts (Free theme by WPExplorer) – U-Design (Premium top selling theme on themeforest) – Canvas (Premium theme by WooThemes) – Definition (Premium theme by WooThemes) – Creativio (Premium theme by Best PSD Freebies)
So if you are using a sophisticated theme, it is very likely that ASA will work just fine with it.
Setting up the plugin with your Amazon Keys can lead to some errors. Here is a list of the most common:
- Error: InvalidClientTokenId: The AWS Access Key Id you provided does not exist in our records.
Solution: Check if your Amazon Access Key ID is correct.
- Error: SignatureDoesNotMatch: The request signature we calculated does not match the signature you provided. Check your AWS Secret Access Key and signing method. Consult the service documentation for details.
Solution: Check if your Amazon Secret Access Key is correct.
- Error: RequestExpired: Request has expired. Timestamp date is 2011-11-19T17:01:04.000Z.
Solution: Most likely the server time is wrong. Please check that or contact your server administration. The timestamp should fit to the current UTC time you can find for example here: http://www.worldtimeserver.com/current_time_in_UTC.aspx
- Error: Unable to Connect to tcp://webservices.amazon.com:80. Error #0: php_network_getaddresses: getaddrinfo failed: nodename nor servname provided, or not known
Solution: The plugin is unable to connect to the Amazon webservice. This is most likely if there is no connection to the Internet or the Amazon webservice URL.
- Error: Connection to Amazon Webservice failed. Please check the mandatory data.
Solution: To build a valid Amazon webservice request all values of the setup form are mandatory (Amazon Access Key ID, Amazon Secret Access Key, Tracking ID and Country code). Please check if you filled in the setup form completely and that all values are stored when you refresh the setup panel.
This post is also available in: English (Englisch)