How to Hide Shipping Methods Based on Payment Method in WooCommerce

This feature allows you to hide specific shipping methods based on the payment method selected by the customer at checkout.

It is useful when certain shipping options should not be available for specific payment methods, such as Cash on Delivery.

The setup is simple and works dynamically as customers change their payment options.

Shipping visibility updates instantly without reloading the page.

How it works

When a customer selects a payment method on the checkout page, the plugin checks:

  • Which payment method is selected
  • Whether a hide shipping rule is linked to that payment method

If the selected payment method matches your rule, the configured shipping method is hidden automatically.


Steps to configure the "hide shipping" rules based on the payment method

Step 1: Create or edit a hide shipping rule

  1. Go to WooCommerce > Hide Shipping Method > Manage Rules
  2. Click Add New Rule or edit an existing rule

Step 2: Select the shipping method to hide

  • Choose the shipping method you want to hide
  • Example: Free Shipping

Step 3: Configure payment method condition

  • In the Basic Hide Shipping Rules section
  • Select Payment Method

    Choose the payment option you want to apply the rule to

    • Example: Cash on Delivery

Step 4: Save and enable the rule

  • Make sure the Status is enabled
  • Click Save
Payment method based hide shipping
Payment method based hide shipping rules

The rule will now apply at checkout.


Example scenario

A store offers:

  • Free Shipping
  • Multiple payment methods, including Cash on Delivery

The store owner wants:

  • To hide Free Shipping when the customer selects Cash on Delivery

Configuration

  • Shipping method to hide: Free Shipping
  • Payment method condition: Cash on Delivery

Checkout behavior

  • Free Shipping is visible

    Free shipping is available
    Free shipping is available
  • Free Shipping is hidden automatically

    Free shipping hidden
    Free shipping is hidden

Customers now see only the shipping methods that are allowed for their selected payment option.


Why use payment-method-based hide shipping rules

  • Prevent loss on high-risk payment methods
  • Control shipping offers for Cash on Delivery orders
  • Apply different shipping logic for prepaid vs COD orders
  • Improve checkout clarity and reduce confusion

Conclusion

Hiding shipping methods based on payment method gives you smarter control over checkout behavior.

By linking shipping visibility to how customers choose to pay, you can protect margins, reduce risk, and create a smoother checkout experience.


FAQs

1. What does hiding shipping methods based on payment method mean?

It means certain shipping methods will be hidden when a customer selects a specific payment option, such as Cash on Delivery.

2. Can I hide multiple shipping methods for one payment method?

Yes. You can create multiple rules to hide more than one shipping method for the same payment option.

3. Does this work with all WooCommerce payment gateways?

Yes. The feature works with most WooCommerce-compatible payment methods, including third-party gateways.

4. Will the shipping methods update instantly when the payment method changes?

Yes. Shipping methods update dynamically when customers switch payment options on the checkout page.

5. Can I hide shipping methods for prepaid payments as well?

Yes. You can apply rules for any payment method, including credit cards, UPI, PayPal, or bank transfers.

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.