How to restrict payment methods based on specific product subtotal in WooCommerce

The Cart Subtotal (Specific Products) condition lets you restrict payment methods based on the subtotal of selected products, not the whole cart.

This is useful when a payment rule should apply only after certain products reach a price threshold. Create the rule at WooCommerce > Settings > Payments > Conditions.

Benefits

  • Apply a payment rule only to the selected products’ subtotal.
  • Control high-value product transactions without using the entire cart total.
  • Create a more precise checkout rule than a whole-cart subtotal.

How to create the rule

  1. Go to WooCommerce > Settings > Payments, then open Conditions and click Add New, or open an existing rule.
  2. Enter a Rule Name (for example, “Product subtotal based restriction”) and turn on the Status toggle.
  3. Add a Cart Subtotal (Specific Products) condition, choose an operator such as Greater or Equal to, and enter the amount (for example, 200).
  4. Click + Add Condition and add a Product Specific condition that defines the target products, such as Product, Variable Product, Product Categories, Product Tags, or Product Brands. The form shows a note that this rule will only work if you have selected any one Product Specific option.
  5. In Actions, choose Disable Payments Method and select the methods to hide (for example, Cash on delivery and Check payments). Click Save Changes, then test checkout.
The Edit Conditional Payments Rules form for Product subtotal based restriction, with Cart Subtotal (Specific Products) greater or equal to 200, a note that a Product Specific option is required, Product equal to Adrienne Trek Jacket, and a Disable Payments Method action for Check payments and Cash on delivery
Figure - A Cart Subtotal (Specific Products) rule for Adrienne Trek Jacket
Checkout with 20 Adrienne Trek Jacket items totaling $220.00, showing only Direct bank transfer, with an annotation that COD and Check payments are hidden because the subtotal is above $200
Figure - A checkout page with Cash on Delivery and Check payments hidden when the product subtotal is $220

Common Use Cases

1. Disable Cash on Delivery for a high-value product

Use Cart Subtotal (Specific Products) Greater or Equal to 200 with a Product condition, then Disable Payments Method for Cash on delivery, as in the example above.

2. Restrict methods for bulk purchases of a product

Use the same subtotal condition when quantity drives the selected product’s subtotal above your limit.

3. Apply a prepaid-only rule to a category or brand

Use Product Categories or Product Brands as the required Product Specific condition, then disable the methods you do not want.

Pro Tips

  • Do not use this condition alone. The form and the existing guide both say a Product Specific condition is required.
  • Use the current field names: Product Categories, Product Tags, and Product Brands (not the singular forms).
  • The operator label in the screenshot is slightly cut off as “Greater or Equal to ( :”. Choose the matching greater-or-equal operator in your admin.

FAQs

1. What is the difference between the cart subtotal and the specific product subtotal?

Cart Subtotal (Before Discount) and Cart Subtotal (After Discount) apply to the entire cart. Cart Subtotal (Specific Products) applies only to the products you target with a Product Specific condition.

2. Is the product condition required?

Yes. You must add a Product Specific condition. Otherwise, the form notes that the rule will not work correctly.

3. Can I use categories or brands instead of individual products?

Yes. Use Product Categories, Product Tags, or Product Brands as the Product Specific condition.

4. What happens if multiple products match?

The existing guide says the subtotal is calculated for all matching products, and the rule applies if that amount meets the condition.

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