wafle_pricing_rules_create
Set up pricing rules for your wafle store: apply catalog-wide multipliers, tiered discounts, category markups, or fixed SKU prices.
Instructions
Create a new pricing rule. Types:
multiplier: catalog-wide markup (e.g. 2.2 = +120% on every base price).discount_tier: percentage discount when subtotal crosses a threshold.category_markup: per-category multiplier override.fixed_price: pin a specific SKU to a fixed price (overrides multiplier).
Always preview with wafle_pricing_compute_preview before committing rules in production.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slug | Yes | Wafle store slug, e.g. 'gamerland' or 'lensitive'. | |
| type | Yes | ||
| label | No | ||
| value | Yes | For `multiplier`: a number. For `discount_tier`: array `[{min_subtotal, percent}]`. For `fixed_price`: number. For `category_markup`: number. | |
| active | No | ||
| target | No | Category slug or SKU depending on type. |