Skip to content

SKU Settings

Let the store write the product code (SKU) of each new product for you, in a pattern you choose, and give each option of a product its own code built on it.

Where to find it

Open Modules → Settings → SKU Generator.

SKU Settings

Turn on automatic SKUs

  1. Switch on Enable Auto SKU Generation. The pattern fields appear.
  2. Build the pattern with the fields below. SKU Format Preview at the bottom shows a product code and an option code as you go.
  3. Click Save.

The rest of the pattern and the preview

A new product saved with an empty SKU then gets one, and the SKU field on the product form has a button that writes one on the spot. A code you type yourself is kept. When a product has options, each option without its own code gets the product's code followed by codes for its option values.

Field What it does
SKU Prefix Letters that start every code, such as SHOP. Up to 10 characters, used exactly as you type them, small or capital letters alike, in the codes and the preview.
Separator The mark between the parts: Hyphen (-), Underscore (_), Dot (.) or None.
Include Category Code Adds the category's code. It is the category's SKU Code, or, when that is empty, the first three English letters or digits of its name. A name in Arabic has none, so give such categories an SKU Code.
Include Brand Code Adds the brand's code, worked out the same way from the brand's SKU Code or name.
Number Padding How many digits the running number has: 4 gives 0042.
Counter Mode Global (single counter for all products) numbers every product in one sequence; Per Category (separate counter per category) keeps a separate sequence in each category.
Use Product Code for Variants Options use the product's code as it is instead of a code of their own.

An option's code is made from its option values' SKU Code, set on each value in Item Attributes. A value without one is written as a number.

Re-code all products

To bring existing products into the new pattern:

  1. Click Re-code All Products at the top of the page. It shows while automatic SKUs are on.
  2. Read the warning and click Re-code All.

Re-code All Products

Your settings are saved first. Then every product and its options get a new code, in the order the products were added, with the counters starting again from 1. The codes they had before are replaced, including codes you typed yourself, so do this only when you mean to renumber the whole catalogue.