| 开发者 | wpkayce |
|---|---|
| 更新时间 | 2026年12月2日 12:37 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
[kayce_discount_table] shortcode for everything elseNo rule limits, and no time limit. Product discounts, tiered and bulk pricing, cart discounts, category, tag, brand and attribute targeting, exclusions and scheduled sales are all free. Pro adds Buy X Get Y, free gifts, free shipping, conditions such as user role, first order, shipping country and purchase history, weekday and time schedules, and rule stacking.
Yes. Choose Categories under "Which products?" in any rule, or start from the Category sale template. Tags and brands work the same way.
Yes. Bulk pricing can count quantity per product, per variation, or across every matching item.
Start from the Buy more, save more template and adjust the tiers. Our guide to tiered pricing in WooCommerce walks through it, with screenshots.
Yes. Discounted prices are applied when WooCommerce calculates the cart, so the blocks show them, including their own "Save" badge on each line.
The customer gets the lowest price. If two rules give the same price, the rule higher in the list wins. Pro adds "apply by priority" and "stack all discounts".
Yes. Set a start and end date in step 3 of a rule. Times use your store's timezone. If you use full-page caching, cached product pages may show the old price for a short while after a sale starts or ends. The cart and checkout always charge the right price.
Yes. Rules and coupons work side by side. Restrict your coupons in WooCommerce if you don't want them combined.
No. Stored prices are never changed. Discounts are calculated on display and in the cart, so turning a rule off restores the normal price immediately.
Choose its position and layout (table or tier cards) under Settings, hide it and place the block or shortcode yourself, or copy templates/pricing-table.php (or pricing-cards.php) to yourtheme/woocommerce/kayce-discount-rules/ and edit it. The shortcode takes style="cards" and the block has a Layout option.
Yes. Choose Attributes under "Which products?" and pick values such as Red or XL. A variation counts only for the values it is set to, so a rule for Red discounts the red variation and not the blue one.
Yes. The uncompiled JavaScript is in the src folder of the plugin. Run npm install && npm run build to rebuild build/.
No. Everything runs on your own site.
style="cards" on the shortcode.