Product Variants Setup and Management
page last edited on 15 August 2019
Make sure the Product variants addon by X-Cart team is installed and enabled in your store.
For installation instructions, see Installing Addons from the X-Cart App Store.
Make sure you have multi-value attributes configured for the product(s) you are going to create variants for. These can be either product-specific or product-class attributes.
If you have price and/or weight modifiers set up in your store be aware that product variants will override the modifiers fuctionaity. You cannot use both at the same time.
To configure product variants for a product:
In your store’s Admin area, locate a product you need to configure product variants for and open the product details page:
If you are going to set the Price and Quantity in stock fields as separate values for each of product variants check that the content of the respective fields in the Product info tab of the product details page is empty.
If you are planning that some of the Price and Quantity in stock field values will be the same for more than one product variant, you can specify them in the Product info tab of the product details page, and these values will be used as default values for any product variants that do not have their own variant-specific SKU, Price or Quantity in stock values defined.
Click on the Attributes tab to access the section where you will be able to check the product’s attributes: The product must have either product-specific or product-class product options configured for it. If it does not, configure multi-value attributes as described in Multi-Value Attributes (Product Options). There is no need to set any price/weight modifiers as prices will be set individually for each product variant.
Click on the Variants tab to access the section where you will be able to manage the product’s variants: On the page that opens, you will see the list of all multi-value attributes - and their respective values - that have been configured for the product.
Choose the attributes your variants will be based on by selecting the check boxes to the left of the attribute names.
Choose how you want to create variants: manually or automatically.
We recommend using the manual method if you need to create just a couple of variants. If you need to create a larger number of variants, it will be easier to use the automated generation method; in this case, your X-Cart store will create all possible combinations of the product options, and you will need to disable any combinations that you do not stock.
- For manual setup of product variants, click Create variants one by one.
You’ll see a screen as follows:
- Click Add variant to create a new product variant. A section for configuring your first product variant will be expanded below:
- Adjust all the fields in this section as you require and click Save changes. Add the rest of the variants you require using the same method.
You can use the Create all possible variants (N) link at any time to generate the missing product variants. Don’t worry, this will not ruin the variants you have already configured.
To let X-Cart generate product variants for you automatically, click Create all possible variants (N), where N stands for the number of all possible product variants that X-Cart will create. You’ll see a screen with a list of all possible product variants that X-Cart was able to create by combining all available options. Each line is a separate product variant that can have its own price, SKU and quantity in stock. :
If some of the product variants that were generated automatically do not exist in real life, remove them using one of the following methods:
- Click the Trash icon next to the product variant that needs to be removed and click Save changes:
- Select the variants that need to be removed, choose the Delete selected action from from the More actions for selected menu, then confirm the action: You can upload an image for each of the variants. To set the prices, SKUs and quantities, simply specify them in the respective fields. You only need to specify values that do not equal the default ones.
- To specify the default variant, select the radio button for this variant in the second column.
- Be sure to save your changes by clicking Save changes.
- For manual setup of product variants, click Create variants one by one. You’ll see a screen as follows:
Help make this document better
This guide, as well as the rest of our docs, are open-source and available on GitHub.