• Resolved overyah

    (@overyah)


    Hi all ,

    Is there any way to hide paypal button when there is no shipping available.

    Customers are able to easily use Paypal payments even when order is given from the areas where there is no shipping available. Please suggest how to remove paypal button from checkout page , when there is no available shipping to that location.

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Syde Niklas

    (@niklasinpsyde)

    Hi @overyah

    Hiding the “Place order” or PayPal buttons when no shipping method is available is not standard behavior. I assume you use a plugin or custom code to hide the buttons if there is no shipping? Can you share more details about this? Hiding this button conditionally may be possible, but not so straightforward.

    Normally these buttons are shown, but when the buyer clicks them while no shipping option is available, WooCommerce will throw an error:

    No shipping method has been selected. Please double check your address, or contact us if you need any help.

    As far as I can tell, this error is displayed on your Checkout page as expected. This prevents buyers from initiating the payment process via PayPal.
    Even if the buyer initiated a payment from the non-Checkout pages, capturing this payment without passing the WooCommerce validation would not be possible.

    Kind regards,
    Niklas

    Thread Starter overyah

    (@overyah)

    Thanks for your reply, however this is resolved with a code in fun.php.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Can I hide paypal button when there is no shipping available’ is closed to new replies.