Item Variants
An Item Variant is a version of an Item with different attributes like sizes or colors.
For example, suppose a USB-C cable is an Item and it comes in different colors and lengths, like Black and White, 1 m and 2 m. In ERPNext, the USB-C cable will be considered as an Item Template and each of the variations, such as a black 1 m cable, will be an Item Variant.
Item Variants let you treat the black and white, 1 m and 2 m versions of a cable as variations of one Item 'USB-C Cable'. Without Item Variants, you would have to treat each version as a separate, unrelated Item.
1. Using Item Variants
Variants can be based on two things:
- Item Attributes
- Manufacturers
Tip: Once an Item Template is created, when you update this Template, all the Variants are also updated accordingly. The fields that are copied over are set in Item Variant Settings (see section 2).
1.1 Creating the Item Variant Template
- Create an Item and tick Has Variants in the Item Attributes section of the Details tab.
- The Item will then be referred to as a 'Template'. A Template is not identical to a regular Item. It cannot be used directly in any transaction (Sales Order, Delivery Note, Purchase Invoice, etc.). Only the Variants of the Item (for example, a black 1 m cable) can be used in transactions. Therefore, it is ideal to decide whether an Item has variants when you create it.
- In the Variants tab, set Variant Based On to 'Item Attribute' or 'Manufacturer'.
- If the variants are based on Item Attributes, add the attributes in the Variant Attributes table. In case the attribute has numeric values, the range and increment are fetched from the Item Attribute.
- Save.

Note: You cannot make transactions against a Template. A message at the top of the Template reminds you of this.
1.2 Creating Item Variants Based on Item Attributes
To create Item Variants of a Template, click on Create in the Template. From there, choose whether to create a Single Variant or Multiple Variants.
- Single Variant: Select one value for each attribute to create one Variant.
- Multiple Variants: Select one or more values for each attribute. A Variant is created for every combination of the selected values. For example, if you choose Colour: Black, White and Cable Length: 1, 2, then 4 Variants will be created. The button shows how many Variants will be made, for example Make 4 Variants.

The Variants are named using the Template's Item Code and the abbreviations of the attribute values. For example, the Variant of 'NET-ACC-USBC-CABLE' with Colour Black (abbreviation BLA) and Cable Length 1 is named 'NET-ACC-USBC-CABLE-BLA-1'.
In a Variant, the Variants tab shows the Template in Variant Of and the attribute values of that Variant. Description, image, pricing, taxes, etc. are set from the Template unless explicitly specified in the Variant.

To learn more about setting attributes, check out Item Attribute.
1.3 Item Variants Based on Manufacturers
To set up variants based on Manufacturers, in your Item Template, set Variant Based On as 'Manufacturer'.
In this case, to create a Variant, click on Create > Variant. The system will prompt you to select a Manufacturer. You can also optionally enter a Manufacturer Part Number. Click on Create.

The Variant is named using the Template's Item Code, the Manufacturer and the Manufacturer Part Number. For example, 'NET-ACC-CHARGER-65W - Volta Power Industries - VPI-65C-US'. An Item Manufacturer record linking the Variant to the Manufacturer and the part number is also created.
2. Item Variant Settings
To access Item Variant Settings, go to:
Stock > Settings > Item Variant Settings
The following settings are available:
- Do not update variants on save: If ticked, the fields are copied to the Variants only when they are created, and not every time the Template is saved.
- Allow Rename Attribute Value: Allows you to rename an Attribute Value in the Item Attribute.
- Allow Variant UOM to be different from Template UOM: If ticked, a Variant can have a different Default Unit of Measure than the Template.
- Copy Fields to Variant: The fields listed in the Fields table are copied from the Template to the Variants. By default, most fields are listed. Delete any rows you don't want to be updated from the Template to the Variants.
