How to restrict payment methods based on specific product subtotal in WooCommerce
The Cart Subtotal (Specific Products) condition allows you to restrict payment methods based on the subtotal of selected products in the cart.
This is useful when you want to apply payment rules only when certain products cross a price threshold.
In The Article
Benefits
- Apply payment rules only to selected products
- Control high-value product transactions
- Avoid affecting the entire cart
- Create more precise checkout rules
How to Restrict Payments by Specific Product Subtotal
Follow these steps to configure payment restrictions based on a specific product subtotal:
- Go to WooCommerce → Settings → Payments → Conditions
- Click Add New Rule (or edit an existing rule)
- Enter a Rule Name (e.g., Product subtotal restriction)
- Set Status = Enabled
Add Condition (Subtotal Rule):
- Select Cart Subtotal (Specific Products)
- Choose condition type (e.g., Greater or Equal to (≥))
- Enter the amount (e.g., 200)
Add Target Product Condition (Required):
- Click + Add Condition
- Select any one of the following to define target products, such as:
- Product
- Variable Product
- Product Category
- Product Tag
- Product Brand
- Select the specific product(s) (e.g., Adrienne Trek Jacket)
⚠️ Important: This rule will only work if a product-specific condition is added. Without it, the subtotal condition will not apply correctly.
Add Action:
- Choose Disable Payment Methods
- Select the payment methods (e.g., Cash on Delivery, Check Payments)
- Save the rule
Once configured, payment methods will be restricted only when the subtotal of the selected product(s) meets the defined amount.
Example Use Cases
- Disable COD for high-value products above $200
- Restrict payment methods for bulk purchases of specific items
- Apply prepaid-only rules for expensive categories
- Control risk for selected premium products
Conclusion
Using product-specific subtotal conditions gives you precise control over payment methods. It ensures that restrictions apply only when selected products reach a defined value, without affecting the entire cart.
FAQs
1. What is the difference between the cart subtotal and the specific product subtotal?
Cart subtotal applies to the entire cart.
Specific product subtotal applies only to selected products in the cart.
2. Is the product condition required?
Yes. You must define which products the subtotal applies to. Otherwise, the rule will not work correctly.
3. Can I use categories or brands instead of individual products?
Yes. You can target products using categories, tags, or brands.
4. What happens if multiple products match the condition?
The subtotal will be calculated for all matching products, and the rule will apply if the condition is met.