saucal / woocommerce-gateway-amazon-pay

Amazon Pay Gateway
0 stars 1 forks source link

Fix the button on single product page to appear only when applicable #200

Closed dpanta94 closed 1 year ago

dpanta94 commented 1 year ago

All Submissions:

Changes proposed in this Pull Request:

Closes woo#251 .

How to test the changes in this Pull Request:

  1. Enable the Amazon Pay for single product pages from the plugin's options
  2. Set a product to in stock or backorder. The Amazon pay button should appear.
  3. Set the product as out of stock. The product should dissappear and Amazon pay related scripts should not be loaded in the page.

Other information:

Changelog entry

Fix - Amazon pay button should appear on single product page only when the product is purchasable and in stock.