Store Dynamic Pricing
Custom WooCommerce dynamic pricing plugin for quantity discounts, product/category bulk rules, and buy X get Y offers.
★ 0stars
0forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/jvsecate/dynamic-pricing-rules/archive/refs/heads/main.zipCustom WooCommerce dynamic pricing plugin for quantity discounts, product/category bulk rules, and buy X get Y offers.
Features
- Quantity tiers like 2-3 items = 5% off, 4-5 items = 10% off, 6+ items = 15% off
- Product or category scoped rules with searchable product selection
- Percentage discounts, fixed amount discounts, and fixed unit prices
- Buy X get Y offers, such as buy 2 and get 1 free
- Admin settings page under WooCommerce -> Dynamic Pricing, no JSON editing required
- Developer filter:
store_dynamic_pricing_rules
Default rules
The plugin starts with one enabled rule:
| Quantity | Discount |
|---|---|
| 2-3 items | 5% off |
| 4-5 items | 10% off |
| 6+ items | 15% off |
It also includes a saved but disabled Buy 2, get 1 free rule. Enable it from WooCommerce -> Dynamic Pricing when that promotion should run.
Admin setup
- Go to WooCommerce -> Dynamic Pricing.
- Use Add rule for each separate discount or offer.
- Choose the rule type:
- Quantity discount
- Buy X, get Y free
- Set Apply to:
- All products
- Specific products
- Specific categories
- For a product-specific discount, choose Specific products and search for the product.
- Edit Discount label to change the text after the colon at cart/checkout.
- Edit Checkout label to change the text before the colon at cart/checkout.
- Fill the discount tiers or buy/get offer fields.
- Save pricing rules.
You can remove a rule with Remove rule. Removed rules are not saved on the next submit.
To discount one specific product by 10% when customers buy 2 or more:
| Field | Value |
|---|---|
| Apply to | Specific products |
| Specific products | Select the product |
| Checkout label | Discount |
| Discount label | Quantity discount |
| Count quantity by | Same product together |
| Min qty | 2 |
| Max qty | empty |
| Discount type | Percent off |
| Amount | 10 |
Saved Rule Fields
enabled: true or falsetype:quantity_tierorbuy_x_get_ylabel: customer-facing discount labelscope:all,product, orcategoryproduct_ids: product or variation IDs when scope isproductcategory_ids: WooCommerce product category IDs when scope iscategoryquantity_mode:line,product,category, orcart
Quantity tier discount types
percent: percentage off the item pricefixed: fixed amount off the item pricefixed_price: set a fixed item price
For open-ended tiers, use "max": 0.