# Wholesale Prices in OpenCart: Customer Groups and Quantity Discounts for 3.0 and 4.1

> Step by step, we set up wholesale prices in OpenCart through customer groups and quantity discounts, cover the difference between 3.0 and 4.1, and common mistakes.

Джерело: https://opencartcode.com/en/wiki/b2b/opencart-wholesale-prices
Оновлено: 2026-11-30

Wholesale prices in [OpenCart](https://opencartcode.com/en/wiki/glossary/e-commerce-glossary#opencart) are set up without modules: you create customer groups ("Wholesale", "Dealer"), and on the product card's Discount tab you set a price for each group and each quantity break. A customer logged into a wholesale group automatically sees their prices in the catalog and cart. Below, step by step, with the differences between OpenCart 3.0 and 4.1 and the pitfalls that can make the cart price "wrong".

## How does OpenCart decide which price to show?

Each customer belongs to one [customer group](https://opencartcode.com/en/wiki/glossary/e-commerce-glossary#customer-group). A guest, or anyone who is not logged in, belongs to the default group, which you choose in System → Settings, on the Option tab, in the Customer Group field. After login, OpenCart takes the group from the customer's account.

Then the product price is calculated as follows:

1. The base price is taken from the Data tab of the product card.
2. Discount rows are looked up for the customer's group where the quantity is not greater than the number of units of this product in the cart, and the date range covers today.
3. From the matching rows, the one with the largest quantity is selected; for an equal quantity, the lower priority number wins, then the lower price.
4. The price of options (size, color) is added to or subtracted from the result, depending on the "+" or "-" prefix set in the product option.

Quantity is counted for the product as a whole, not for individual variants: 6 T-shirts in size M and 6 in size L make 12 units, so a "from 10" threshold will apply. This is convenient for wholesale, because the customer does not have to buy a full batch of one size.

Product lists and category pages show the price for quantity 1, meaning a discount row with quantity 1 effectively becomes the "group price". Higher quantity breaks are visible on the [product page](https://opencartcode.com/en/wiki/glossary/e-commerce-glossary#product-page) as a list "from 10 pcs. — …".

## How do you create customer groups for wholesale?

Open Customers → Customer Groups and click Add New.

Customer groups: "Retail" remains the default group, with "Wholesale" and "Dealer" added alongside · OpenCart 4.1.0.4

The group form has only a few fields:

- **Name** for each store language. The customer sees it if the group is available at registration, so write it clearly: "Wholesale Buyer", not "Group 2".
- **Description** is not shown to customers in the standard theme, so it is handy for keeping an internal note for managers: the group's terms and who approves it. Terms for customers are better written on a separate information page "For Wholesale Buyers".
- **Approve New Customers**: a customer in this group cannot log in until a manager approves them.
- **Sort Order** is the order in lists.

How many groups should you create? Roughly two to four. Each new group is one more row of prices in every product, so "Wholesale-1", "Wholesale-2", "Wholesale-3", "VIP" and "Partner" quickly turn into thousands of rows that nobody keeps up to date. If the terms differ only by discount percentage, [version 4.1](https://opencartcode.com/en/wiki/glossary/e-commerce-glossary#version-41) handles this more simply, as explained below.

To let customers choose a wholesale group during registration, tick it in the Customer Groups field on the Option tab of the settings. Be sure to tick the default group together with it, otherwise the settings will not save. A customer who is already registered is moved to the group manually by a manager, in the customer form under Customers → Customers.

## How do you set a wholesale price and a quantity discount?

Open the product in Catalog → Products and go to the Discount tab. Each row is one rule.

Product form: Discount tab with rows for the "Wholesale" and "Dealer" groups · OpenCart 4.1.0.4

Example for a product with a retail price of 500 UAH:

| Group | Quantity | Priority | Price | What the customer gets |
| --- | --- | --- | --- | --- |
| Wholesale | 1 | 1 | 420 | 420 UAH for any quantity |
| Wholesale | 10 | 1 | 400 | 400 UAH from 10 pieces |
| Wholesale | 50 | 1 | 380 | 380 UAH from 50 pieces |
| Dealer | 1 | 1 | 360 | 360 UAH for any quantity |

Tips for filling it in:

- Always add a row with quantity 1 for the wholesale group. Without it, a wholesale buyer sees the retail price in the catalog, and the discount appears only in the cart, which is confusing and alarming.
- Leave the start and end dates empty for permanent prices. Fill them in only for temporary terms, for example a seasonal discount for dealers.
- Priority matters only when one group and quantity have several rows with different dates: the lower number wins.
- The retail group can also have a [quantity discount](https://opencartcode.com/en/wiki/glossary/e-commerce-glossary#quantity-discount): "cheaper from 3 pieces" works the same way.

## How do wholesale prices differ in OpenCart 3.0 and 4.1?

The group logic is the same, but the product tabs and discount options differ significantly.

|  | OpenCart 3.0 | OpenCart 4.1 |
| --- | --- | --- |
| What is entered in the discount row | Only the final price | Type: fixed amount, subtract an amount, or percentage |
| Specials | A separate Special tab | A "Special" flag in a row of the same Discount tab |
| Discount and special together | A special always overrides the quantity discount | One row is selected by quantity; the special flag does not affect the cart calculation |

### Percentage in 4.1

In 4.1, the Percentage type is calculated from the product's base price. The row "Dealer, quantity 1, percentage, 15" means "minus 15% of the retail price", and when the retail price changes, the dealer price is recalculated automatically. The Subtract type reduces the price by a fixed amount. For a store with frequent price changes, this saves hours of work.

### Specials in 3.0

In 3.0 there is a tricky behavior: if a special applies to a group, it replaces the price even when the wholesale quantity discount is lower. Example: the special price for the "Wholesale" group is 450 UAH, and the discount from 50 pieces is 380 UAH. A wholesale buyer who takes 50 pieces will pay 450. So in 3.0, either do not set specials for wholesale groups, or make the special price lower than all wholesale breaks.

> Specials and discounts in 3.0 are set for a specific group. If you create a special only for "Retail", wholesale buyers will not see it, and vice versa. Check the group in each row before saving.

## How do you upload wholesale prices for thousands of products?

Discounts are entered manually when there are dozens of products. When there are hundreds or thousands, do the following:

1. **Import from a spreadsheet.** An Excel or CSV import module that can write discounts for groups. There is a separate article on choosing and safely running an import: [importing products from Excel and CSV without duplicates](https://opencartcode.com/en/wiki/integrations/opencart-product-import-excel).
2. **Sync with accounting.** Group prices are maintained in your accounting software and sent to the site on a schedule. This is the most reliable option for active wholesale.
3. **Percentage in 4.1.** If the dealer price is always a fixed percentage of retail, one row per product is enough, and it is easy to apply in bulk.

Before a bulk upload, make a database backup: a mistake in one column (for example, a price with cents written with a comma instead of a period) can corrupt thousands of rows at once. How to do this is described in the article on [OpenCart backup](https://opencartcode.com/en/wiki/security/opencart-backup).

For developers writing their own import: group prices are stored in the `product_discount` table (group, quantity, priority, price and date fields); in 4.1, the same table has columns for the discount type and the special flag. The structure of related tables is covered in the article on [the product table and related tables](https://opencartcode.com/en/wiki/dev-database/tablicia-product-opencart).

## Why does a wholesale buyer see the wrong price: common mistakes

- **The customer is not logged in.** Without logging in, they are a guest and see the default group's price. The most common complaint, "my wholesale prices disappeared", is solved by logging into the account.
- **Wrong group in the account.** The customer registered as retail, and the manager forgot to move them to "Wholesale".
- **Account not approved.** If approval is enabled for the group, the customer cannot log in until approved under Customers → Customer Approvals.
- **No row with quantity 1.** The catalog shows the retail price, and the discount appears only in the cart once the threshold is reached.
- **End date has passed.** A seasonal dealer price with an end date quietly stopped working.
- **A special overrides wholesale in 3.0.** Described above.
- **Cache or a pricing module.** Modules that change the cart price or cache blocks with prices may show one price to all groups. Check whether the module takes the customer's group into account.
- **Prices with tax.** If displaying prices with tax is enabled, and the tax rate is tied only to certain groups, the amounts for groups will differ for reasons other than the discount.

> Create a test account in each group. After every price change, log in with it and check the catalog, the product page, and the cart with quantities below and above the threshold.

If you plan wholesale as a separate direction, it is useful to think through the whole process first: what you need besides prices is covered in the overview [what a B2B store on OpenCart needs](https://opencartcode.com/en/wiki/b2b/b2b-online-store).

## Summary

- Wholesale prices in OpenCart are customer groups plus rows on the product's Discount tab; a module is not needed for basic wholesale.
- A row with quantity 1 sets the group price in the catalog, and rows with higher quantities are the breaks for batches; quantity is counted for the product as a whole, across all variants.
- In 4.1, a discount can be set as a percentage or an amount; in 3.0, only as a final price, and a special there always overrides the quantity discount.
- For a large catalog, group prices are uploaded by import or synchronization, after making a backup.

The next step is to decide whether to show prices to guests and how to verify new wholesale customers. Other articles about wholesale and dealers are collected in the section [B2B, wholesale and subscriptions](https://opencartcode.com/en/wiki/b2b).

## FAQ

**Can I give a discount to one specific customer instead of the whole group?**

Not out of the box: prices are tied to a group. You can create a separate group for this customer or issue them a personal coupon.

**Do coupons work for wholesale customers?**

Yes, the coupon is applied to the cart total after the wholesale price. So for wholesale groups, give coupons carefully to avoid discounts stacking into a negative price.

**Can I hide the retail price from wholesale customers?**

If the group has a discount row with quantity 1, the wholesale customer sees only their own price, without a crossed-out retail price. A crossed-out old price appears only for promotions.

**How many customer groups can I create in OpenCart?**

There is no hard limit, but each group adds price rows to every product. In practice, two to four groups are enough for most stores.
