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.
In The Article
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
- Go to WooCommerce > Settings > Payments, then open Conditions and click Add New, or open an existing rule.
- Enter a Rule Name (for example, “Product subtotal based restriction”) and turn on the Status toggle.
- Add a Cart Subtotal (Specific Products) condition, choose an operator such as Greater or Equal to, and enter the amount (for example, 200).
- 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.
- 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.
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.