Support » Plugin: WooCommerce Amazon Pay » Amazon Pay banner should not display for $0.00 carts and checkouts

  • Resolved Sean Conklin


    Hi there. Please see my GitHub bug report from a couple of months ago:

    Describe the bug
    When I have a cart with one or more free products and go to the Cart page I see the “Use your Amazon account” button. When I click “Proceed to checkout” button I also see the “Have an Amazon account?” banner with the same button. It seems to me these should not be displaying on a cart with a $0.00 total where typically no payment method is presented in the Payment area.

    To Reproduce
    Steps to reproduce the behavior:

    Have a free product.
    Add this free product to your cart.
    Go to the cart page (click cart menu link or icon) and observe the bug.
    Go to the checkout page (click Proceed to checkout button) and observe the bug.
    If applicable, add screenshots to help explain your problem.

    Expected behavior
    I expect the AmazonPay banner and buttons to not be there.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Sean Conklin


    I got this working with the following code snippet:

    add_action( 'woocommerce_cart_calculate_fees', function() {
    	// Free Carts
    	if( WC()->cart->cart_contents_total == '0' ) {
    		// Disable AmazonPay Gateway
    } );
    Plugin Support Christian


    Hey @seanconklin

    Thanks for your patience and your feedback.

    As you already open the issue on Github I will resolve this ticket and other user can check the status on it.


Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.