Overview
Automatic cart discounts: buy X get Y free, quantity discounts and spend thresholds, by category, with a clear discount line in the cart.
- Buy X get Y free
- Quantity and spend discounts
- Automatic, no coupon
Best for: Stores that want bigger orders
Installation
- Download rulely-cart-discount-rules.zip from My account › My plugins or from your order email. Do not unzip it.
- In WordPress, go to Plugins › Add New Plugin › Upload Plugin, choose the zip and click Install Now, then Activate.
Requires WordPress 6.0+, PHP 7.4+, WooCommerce 7.0+. Works with any theme, block themes and page builders.
Features
- Buy X get Y: free or discounted (e.g. −50%), the cheapest items first
- Quantity discounts: from N items
- Spend discounts: from an amount, in % or fixed
- Whole store or chosen categories
- Clear discount line in the cart, checkout and order
- Offers shown on product pages
- Combine rules or keep only the best one
Shortcodes
Paste a shortcode in any page, post, widget or page builder text block.
[rulely_preview]
Options of each shortcode are described in the Features above and in the plugin settings page.
For developers
Customize the plugin from your theme’s functions.php or a small plugin, without editing its files (your changes survive updates).
Filters
rulely_activerulely_sanitize
add_filter( 'rulely_active', function ( $value ) {
// Change $value here.
return $value;
}, 10, 1 );Actions
rulely_admin_after_formrulely_admin_before_formrulely_admin_form_end
Updates
Updates are free. When a new version is out, it appears in Dashboard › Updates of your WordPress site and you can install it in one click, or turn on automatic updates in Plugins. This works for the zip downloaded from your Woo-Plugins account; older copies can be replaced by downloading the latest version from My plugins. See the changelog.
Frequently asked questions
Do customers need a coupon?
No, the discount is applied automatically when the cart matches the rule.
Which items are free in buy X get Y?
The cheapest items of each group.
Still stuck?
Write to us with your WordPress and WooCommerce versions and what you tried: we answer by email.