Skip to content

Releases: zaarheed/WP-Amazon-Product-Advertising-API

Added IsEligibleForPrime flag

Choose a tag to compare

@zaarheed zaarheed released this 01 Jul 14:43

Product data returned now checks if product offer is eligible for Prime. This means the automatic link appended to the end of the post content will only show if the ASIN is valid and the product offer is eligible for Prime.

Developers can access the flag using the standard PHP key-value array syntax. For example:

<?php 
    $apai_product = zm_apai_get_product_by_asin('B00FOQR6LG');
    $prime = $apai_product['isEligibleForPrime']; // will return TRUE or FALSE accordingly
?>

Use wp_options for access key, secret key and associate tag

Choose a tag to compare

@zaarheed zaarheed released this 07 Jun 17:39
  • AWS access key now stored in wp_options table
  • AWS secretkey now stored in wp_options table
  • Amazon associate tag now stored in wp_options table

Initial Release

Choose a tag to compare

@zaarheed zaarheed released this 07 Jun 17:05
  • Add Amazon product ASIN through metabox on post editor page
  • Amazon product ASIN stored as custom field: apai_asin
  • Plugin settings page allows you to toggle automatic display of Amazon product link after post content (only if ASIN value has been saved)
  • Amazon keys are still hard-coded
  • Call to Amazon API made every time post is loaded - URL is only valid for 15mins