Skip to content
OpenCart · User manual

Discounts PRO

Version 1.2.0 Product page
Chapter 6

Discounts in the cart

How Discounts PRO calculates each discount, how it appears to shoppers, how several rules combine and what happens with taxes and orders.

Where shoppers see the discount

Each discount is an order total line, like the sub-total or shipping. It appears wherever your shop shows the totals: the cart page, the cart summary of your theme, the confirmation step of the checkout, the order confirmation e-mail, the customer's order history and the invoice. In the administration it appears in the totals of the order.

The line reads your Message followed by the number of discounts earned, for example 3 for 2 on cameras x2, and the amount with a minus sign.

The discount is recalculated every time the cart changes. If the shopper removes items and the cart no longer holds enough units, the line disappears.

How the amount is calculated

For each rule, the extension:

  1. Collects the cart items that the rule covers: one category, one manufacturer or the listed products.
  2. Adds up their quantities and divides by Unit, ignoring the remainder. This is the number of discounts the cart can earn.
  3. Goes through those products from the cheapest unit price to the most expensive and gives each one a discount until that number is used up. With Repeat on, a product with enough units of its own can take several discounts; with Repeat off, each product takes one at most.
  4. For each discount, takes Discount percent of the product's unit price, or the fixed Discount amount.

Worked examples

All examples use a category rule. The product prices are without tax.

Buy 3, get the cheapest free

Type Percentage, Discount 100, Unit 3, Repeat on.

CartDiscount
One item each at 10, 20 and 3010 (the cheapest item), shown as x1
Six units of an item at 1020, shown as x2
Two items, at 10 and 20none: only 2 units

The same offer with Repeat off

Type Percentage, Discount 100, Unit 3, Repeat off.

CartDiscount
Six units of an item at 1010, shown as x1: one product gets one discount only
Three units of an item at 10 and three units of an item at 2030, shown as x2: each product gets one discount

A fixed amount for every two items

Type Fixed, Discount 5, Unit 2, Repeat on.

CartDiscount
Four units of one item10, shown as x2
Three units of one item5, shown as x1

When several rules match

  • Different tabs add up. Category, manufacturer and product rules are calculated separately. A product can receive a category discount, a manufacturer discount and a product discount at the same time, each on its own line.
  • Categories and manufacturers: the first matching row wins. Within the Categories tab, once a category has received a discount from one row, the rows below it skip that category. The same applies to manufacturers in the Manufacturers tab. Place your specific rows above an All categories or All manufacturers row.
  • One product, several categories. When a category earns a discount, the units of its products stop counting towards the other categories, so the same items do not complete two sets at once.
  • Product rows are independent. Two rows in the Products tab that list the same product can both give a discount.
  • With All categories, each category that reaches Unit gets its own line.

Taxes

The discount line is subtracted from the order total. Discounts PRO does not change the tax lines: OpenCart calculates tax on the product prices as they are in the cart, before the discount.

Include tax only changes the size of the discount: with a percentage it is calculated on the price with tax, and with a fixed amount the product's tax is added to the amount. See Discount rules.

Prices used

The extension uses the unit price of each product as it is in the cart, after OpenCart has applied option prices, specials and its own quantity discounts. Coupons, vouchers, reward points and other order totals are calculated by OpenCart separately and are not taken into account.

Orders

When the order is placed, the discount line is saved with the order totals, so the order keeps the discount even if you change or delete the rule later. You find these orders in the reports at the bottom of each discount tab, described in Discount rules.

The modification installed with the extension makes OpenCart's standard checkout, and the checkout of the Journal 2 and Journal 3 themes, confirm orders that carry a Discounts PRO line.

Still need help?

Open a support ticket from your account and our team will look at your store with you.