Come together with the global Drupal community in Rotterdam, 28 Sept – 1 Oct 2026. Sessions, contribution, connection, and Early Bird savings until 8 June.
» No Add to cart button (Kindle books cannot be purchased with Amazon API)
In the 6.x-2.0-alpha1, I disabled the ability to add Kindle editions of books to the cart. Instead of "add to cart" the button says "Kindle edition: Not available to purchase
It turns out that Amazon provides absolutely no way to exclude downloadable items from the search, but they also don't allow downloadable items (especially Kindle editions of books) to be purchased via the Amazon Product Marketing API, which is how Amazon Store works.
There are other possible workarounds: the module could grab multiple pages until enough purchaseable products were listed. Are there other workarounds that anybody wants to suggest?
Comments
Comment #1
rfayIn the 6.x-2.0-alpha1, I disabled the ability to add Kindle editions of books to the cart. Instead of "add to cart" the button says "Kindle edition: Not available to purchase
It turns out that Amazon provides absolutely no way to exclude downloadable items from the search, but they also don't allow downloadable items (especially Kindle editions of books) to be purchased via the Amazon Product Marketing API, which is how Amazon Store works.
There are other possible workarounds: the module could grab multiple pages until enough purchaseable products were listed. Are there other workarounds that anybody wants to suggest?
Comment #2
rfayI'm hoping to handle this in #559916: Improve handling of items that are not available through Amazon API. Marking this as duplicate.