Skip to content
OpenCart · User manual

Options combinations

Version 2.5.0 Product page
Chapter 6

Product combinations

How to create and edit the combinations of a product in the Option tab: the bulk tools, every field of a combination, bullets per product and the list of combinations in the product list.

Where the editor is

Go to Catalog > Products, edit a product and open the Option tab. The combinations editor is at the top of the tab, above the standard OpenCart option list. It is only there while Status is enabled in the settings.

The editor has three parts:

  • a top bar with Select options and two buttons to create combinations;
  • the list of combinations of the product, each one in a panel titled Option Combination with its number and its option values;
  • the Option Bullets panel.

Nothing is stored until you save the product with the usual save button of the product form.

Creating combinations

Generate all possible combinations

This is the bulk tool for a new product.

  1. In Select options choose the options that define the variants, for example Colour and Size. The list shows every option of your shop with its id and type.
  2. Press Generate all possible combinations.
  3. The editor adds one combination for every possible mix of the values of those options. Two colours and three sizes give six combinations.
  4. Remove the combinations you do not sell with the red Remove button.

All values of each option are used, so the number of combinations grows fast: three options with ten values each give a thousand combinations. If you press the button without choosing options, a message tells you that no options are selected.

Add combination with selected options

Choose the options in Select options and press Add combination with selected options. One new combination is added at the top of the list with those options, ready for you to choose the value of each one.

Adding a combination by hand

Press the blue Add Combination button below the list. An empty combination is added. Inside it, press the blue Add Option button, type the name of the option in the field that appears and pick it from the suggestions. Repeat for each option, then choose the values.

Copy and Remove

Each combination has three buttons on the right of its title:

ButtonWhat it does
Copy (green)Duplicates the combination with all its data. Change the option values of the copy afterwards. This is the quick way to fill many similar combinations: complete one, copy it and change only what differs.
Remove (red)Deletes the combination.
Arrow (blue)Folds or unfolds the combination.

The options of a combination

The first column, Options, lists the options of the combination. Each line shows the option name, its id and its type, and a field for its value.

  • For Select and Radio options you choose one value.
  • For Checkbox options you can choose several values. The combination then matches when the customer ticks exactly those values.
  • Options of type Text, Textarea, File, Date, Time and Date & Time can be added too. They do not define the combination: they are fields the customer fills in on the product page once the combination is selected, and they are required.

The small minus icon before an option name removes that option from the combination.

Rules applied when you save the product:

  • A combination needs at least one option with a chosen value. Combinations without one are not saved.
  • If two combinations have exactly the same options and values, only the first one is kept.

Data tab

The Data tab of a combination holds its main fields. Columns you disabled in Options combination fields of the General settings are not shown.

FieldWhat it does
ModelModel of the combination, up to 64 characters. It replaces the product model on the product page, in the cart and in the order. Leave it empty to keep the product model.
SKUSKU of the combination, up to 64 characters. Shown on the product page when the combination is selected.
UPCUPC of the combination, up to 12 characters. Shown on the product page when the combination is selected.
QuantityUnits in stock of this combination.
Subtract StockYes: orders reduce the quantity and the customer cannot buy more than what is left, unless your shop allows checkout without stock. No: the quantity is not reduced and not checked.
PricePrice of the combination. See below.
WeightA prefix and an amount. + adds the amount to the product weight, - subtracts it and = uses the amount as the weight of the combination.
DimensionsLength, width and height of the combination. A value above zero replaces the one of the product.
Extra TextFree text shown with the product data when the combination is selected, for example a delivery note.

Price

The price has a Prefix and an amount:

PrefixResult
+The amount is added to the price of the product. This is the default. With an empty amount the combination costs the same as the product.
-The amount is subtracted from the price of the product.
=The amount is the price of the combination, whatever the product price is.

With Prices by customer group enabled there is one line per customer group, each with its own prefix and amount. With it disabled there is a single line, All customer groups.

Type amounts as numbers with a dot for decimals, without currency symbol, as in the standard product price field.

Discounts tab

Quantity discounts of the combination. Press the blue Add button to add a line.

FieldWhat it does
Customer GroupThe group the discount applies to, or All customer groups. Choose Remove in this list to delete the line.
QuantityMinimum units in the cart for the discount to apply.
PriorityWhole number. Used to order the discounts when several could apply.
PriceUnit price from that quantity on.
Date Start and Date EndOptional validity dates, in the format YYYY-MM-DD.

A combination with its own discounts uses them instead of the discounts of the product. A combination without discounts and without a price of its own uses the discounts of the product.

Specials tab

Special prices of the combination. The fields are the same as in the Discounts tab without Quantity.

A special of the combination applies when it is active for the customer's group and lower than the price of the combination. If the combination has no specials, the special of the product applies; when the combination price uses the prefix + or -, its amount is added to or subtracted from the product special.

Images tab

Press the blue Add Image button and choose a picture in the image manager. A combination can have up to three images.

When the customer selects the combination, its images are shown in the gallery of the product page. The first image is also used as the picture of the product in the cart and, depending on the settings, as the picture of the option value and of the bullets.

Points and Reward Points tabs

These tabs appear only when Points and Reward Points are enabled in the settings.

  • Points: the number of points needed to buy the combination.
  • Reward Points: the points the customer earns when buying it.

Both have a Prefix that works like the price prefix: + adds to the value of the product, - subtracts and = replaces it. With the "by customer groups" switches enabled there is one line per customer group.

SEO tab

Available on OpenCart 3.x when SEO Url is enabled. For each store and language you can type a Keyword. The product page then opens at that address with the combination already selected. Keywords must be unique in your shop, like any other SEO keyword. See Storefront.

Option Bullets of the product

The Option Bullets panel below the combinations sets the bullets of this product in product lists.

FieldWhat it does
OptionsThe option whose values are shown as bullets for this product. -- Default -- uses the option chosen in the settings.
Bullet likeWhat the bullets of this product show: option value image, first combination image or option value name. -- Default -- uses the settings.

Validation errors

If a field has a wrong value when you save, the product is not saved and the warning "Detected errors in Options combinations, check row(s)" lists the numbers of the combinations to review. The wrong fields are marked in red. The usual causes are a price, points, quantity or priority that is not a number, and a date that is not in the format YYYY-MM-DD.

Product quantity, copies and deletions

  • When you save a product that has combinations, the main Quantity of the product (in its Data tab) is set to the sum of the quantities of all its combinations.
  • When you copy a product in the product list, its combinations and bullet settings are copied to the new product.
  • When you delete a product, its combinations are deleted too.

Combinations in the product list

In Catalog > Products, every product with combinations has an extra blue button, Show options combinations. Press it to unfold the combinations under the product: image, option values, model, price and quantity. The quantity is shown in a coloured label: green above 5 units, red from 1 to 5 and orange at zero or below.

The eye button of each line, Show option combination, opens the product form directly in the Option tab.

Deleting an option in Catalog > Options

An option that is used in combinations cannot be deleted in Catalog > Options: OpenCart shows a warning with the number of combinations that use it. Remove the option from those combinations first.

Still need help?

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