Discount Rules lets you set up discounts by product, quantity, date, storefront and customer, and applies them to the cart and the order.

“From 2 pieces 5% off, from 8 pieces 15% off, kitchen goods only” sounds like one simple offer. Done by hand it means changing prices and remembering to change them back. With several offers at once it also becomes hard to say which discount a customer will get.

The plugin keeps each offer as a rule in Marketing. A rule says which products it covers, how large the discount is, when and for whom it works, and how it combines with other rules. The customer can see the discount table on the product page and a hint in the cart. It is for shop owners and marketers who run several promotions and want to check the result before customers do.

What you get

  • Five kinds of scope. Whole cart, categories, product sets, product types or specific products.
  • Three kinds of discount. A percentage, an amount per item, or an amount for all matching products.
  • Quantity tiers. The more pieces in the cart, the larger the discount, for example 5%, 10% and 15%.
  • Conditions. Dates, storefronts, customer categories, minimum amount or quantity, first order only.
  • Combining rules. Add up, best only, exclusive, or stop checking the rules below.
  • Table on the product page. Customers see the discount conditions before they add the product to the cart.
  • Hint in the cart. One line tells how much to add to get the next discount.
  • Test cart. See which rules apply to a sample cart, which do not, and why.

The list of rules

The rules are in Marketing → Discounts → Discount rules. Each row shows whether the rule is on, its name, what it applies to, the discount and the dates. You can turn a rule on or off in the list, edit it, delete it or move it up and down. The order matters for the cart hint and for rules that stop the check. Expired rules are marked in the list.

The screenshot shows typical offers: tiers for kitchen goods, a winter sale with dates, 7% for VIP customers, $15 off orders over $150, 10% off the first order and a Black Friday rule that has ended.

The rule list with scope, discount and dates, and the test cart below

The rule list with scope, discount and dates, and the test cart below

Setting up a rule

Press Add rule. Enter the name that customers will see, the dates and, if needed, storefronts and customer categories. Both dates are included. An empty date means no limit.

Then choose what the rule Applies to. Subcategories of a chosen category are included, and dynamic categories work too. Specific products are found by name, SKU code or ID. The option Skip products that already have a compare-at price keeps a rule away from goods that are already on sale.

The discount is % of the price, amount per item or amount for all matching products. The last one is spread over the lines in proportion to their totals. The total discount of a line never exceeds the total of that line.

  • Minimum amount of matching products and Minimum quantity of matching products set a threshold.
  • Quantity tiers: the highest tier reached applies. Tiers replace the discount and the minimum quantity, while the minimum amount still works.
  • First order only and Do not apply when a coupon is used limit the rule further.

The rule editor: categories, type of discount, minimum amount and quantity tiers

The rule editor: categories, type of discount, minimum amount and quantity tiers

Quantity is counted across all matching products together: two mugs and two plates from the category “Kitchen” make four pieces.

How rules combine

The field With other rules has three options. The comparison is made for the whole cart, by the total discount of each rule.

  • Add up with other rules: the discount is added to the others.
  • Best only: of all such rules, only the one that gives the most is used.
  • Exclusive: the rule works alone if it gives more than all other rules together. Otherwise it is not used.

Example: rules that add up give $12 together. An exclusive rule gives $20, so the customer gets $20. If the exclusive rule gave $10, the $12 would stay. The option “Do not check rules below this one if this rule applies” stops the check at that rule.

The table on the product page

Rules with Show on the product page turned on are shown as a small table: the rule name, the condition and the discount, for example “From 4 pcs.” and “10%”. If the rule has an end date, the table says until when it is valid. Only rules that fit the current date, storefront and customer are shown.

In the plugin settings you choose the place: next to the “Add to cart” button, in the side block, in the main block under the description, or no automatic output. In the last case the theme uses {shopApdiscountsPlugin::productTable($product)}.

Three quantity tiers on a product page

Three quantity tiers on a product page

The hint in the cart

The hint tells the customer how close the next discount is: “Bulk deal: add 2 more to get 10% off.” If the rule needs an amount, the hint shows the missing amount. It shows one hint, for the first rule in the list that can be reached next, and it disappears when there is nothing left to reach.

The hint works on the cart page and in the in-cart checkout and updates when the cart changes (the theme must use jQuery). The helper {shopApdiscountsPlugin::cartHint()} or the attribute data-apdiscounts-hint-place lets you choose its place.

Test a cart

Below the rule list there is Test a cart. Add products and quantities, choose the order currency, storefront, customer categories and date, tick “First order” or “Coupon used” if needed, and press Check.

The result shows the discount of each line, the subtotal and the total. For each checked rule you see “applied”, “skipped” or “not used” with a reason, for example “Quantity 1 is below the first tier.” A rule that is off is listed as skipped.

How to start

  1. Install the plugin and check in its settings that Enable discounts is on.
  2. Press Open the rule list or go to Marketing → Discounts → Discount rules.
  3. Press Add rule, fill in the name, scope and discount, and save.
  4. Check the rule in Test a cart.
  5. In the settings choose where the product table is shown and whether the cart hint is on.
  6. Open a product and the cart on the storefront to see the result.

Good to know

  • Discounts apply to products, not to services or shipping.
  • Amounts are set in the primary currency and converted to the order currency.
  • How these discounts work together with Shop-Script’s own discounts and coupons depends on the store setting: add up or take the largest.
  • For dynamic sets the first 1000 products are checked.
  • A guest who is not yet identified counts as a first-time customer. Rules for customer categories do not apply to such a guest.
  • The table and the hint need the matching theme blocks or the helpers. The product’s price itself is not changed on the page.
  • Managing rules needs access to Marketing settings. No cron job is needed.

Questions and answers

Can I stop all discounts at once?
Yes. Turn off Enable discounts in the plugin settings. The rules stay as they are and work again when you turn it on.

Do tiers work with amounts as well as percentages?
Yes. The tier values use the kind of discount chosen in the rule: a percentage, an amount per item or an amount for all matching products.

What does the customer see in the order?
The discount of the product line is described with the rule name and value, for example “Welcome (10%)”.

Can I prepare a sale in advance?
Yes. Set the start and end dates. Test the rule by choosing a future date in the test cart.

Are goods sold by weight supported?
Yes. Fractional quantities and stock units are supported; 2.5 kg counts as 2.5.

Requirements and support

Shop-Script. The product table and cart hint need a theme that prints the plugin hooks, or the helpers added to the theme. The plugin contacts no outside services. Its table with the rules is removed when the plugin is uninstalled.

Interface languages: English and Russian. Support: allplugin.com/support.

What you get

  • Rules for the cart, categories, sets, product types or products
  • Percentage, amount per item, or amount for all matching products
  • Quantity tiers: the more pieces, the larger the discount
  • Dates, storefronts, customer categories, first order only
  • Minimum amount and minimum quantity
  • Combining: add up, best only, exclusive, stop below
  • Discount table on the product page
  • Cart hint: how much to add for the next discount
  • Test cart shows which rules apply and why

Specifications

PlatformWebasyst + Shop-Script 10 or newer (tested on 12)
PHP7.4 – 8.5
Interface languagesEnglish, Russian
PackageShop-Script plugin, .tar.gz
Licenceone store

Good to know

How do I get Discount Rules for Webasyst Shop-Script after paying?

The download and your licence key unlock in your account as soon as the payment is confirmed. There is nothing to wait for.

Is this a subscription?

No. The price is paid once. Fixes and compatibility updates for the version you bought are included.

What does it work with?

Discount Rules for Webasyst Shop-Script works with Webasyst, Shop-Script 10+, PHP 7.4–8.5. The current version is 1.0.0. If your setup is unusual, ask before you buy and we will tell you plainly whether it fits.

How can I pay?

Checkout is through PayPal, which also takes debit and credit cards. Buying from India? Switch the currency to INR at the foot of the page to pay by UPI.

What if I get stuck installing it?

Installation support is included. Open a ticket from your account and the engineer who wrote it will help you get it running.

Questions before you buy?

Ask about compatibility or licensing. Need it to do something it doesn't? We build custom versions for a fixed quote.

  • Instant downloadFiles and licence key unlock when payment lands
  • One-time priceNo subscription unless the page says so
  • Free updatesFixes and compatibility updates for your version
  • Support from the authorTickets go to the engineer who wrote it
Coming soon UPI QR + Auto-Confirm for Shop-Script
SoftwareWebasystShop-Script 8+

UPI QR + Auto-Confirm for Shop-Script

Dynamic UPI QR at checkout, order number in the payment note, and automatic confirmation with UPI Payment Watch.

Get notified at launch View
ЮKassa для Webasyst Shop-Script
SoftwareWebasystShop-Script 8+

ЮKassa для Webasyst Shop-Script

Карты, СБП, SberPay, T-Pay и ЮMoney через ЮKassa: покупатель выбирает способ прямо на сайте, чеки 54-ФЗ и возвраты из заказа.

$15.00
View
$39.99
Discount Rules for Webasyst…