Variable products are a product type in SC Commerce that lets you offer a set of variations on a product, with control over prices, stock, image and more for each variation. They can be used for a product like a shirt, where you can offer large, medium and small sizes, each in a range of different colours.
There are three stages to adding a variation. You first need to set the product type as a variable product. Then you create attributes that describe the variations you have available (colour, size, weight, etc). Once this is done you can then assign each variation one or more attributes.
To add a variable product, create a new product or edit an existing one.
In the Attributes section, add attributes before creating variations — you can use global attributes that are site-wide (and predefined separately) or add custom ones specific to your product.
To use a global attribute:
To add a new attribute specific to this product:
|(e.g., Small | Medium | Large | Extra large).
To add a variation, go to the Variations section in the Product Data meta box. You need to set up Attributes first, or else you will see this message:
You have a choice of manually adding a variation, or creating variations from all of the available attributes.
Select Create variations from all attributes to have SC Commerce create every possible combination of variations and then click Go.
SC Commerce will create a new variation for each and every possible combination of variation attributes (max 50 per run). If you have more possible combinations you can run it again.
If you have two attributes – color (with values blue and green) and size (with values large and small) it creates the following variations:
If you later add additional attributes, it may require the variables to be redefined for the variation combinations to work correctly.
If you have more than 15 variations, use the buttons to navigate forward and backward through the list. Each time you navigate to a new set of variations, the previous set is saved. This ensures that all data is saved.
Set defaults you prefer on variations. In the example, no default form values were set, so users can pick any color and size right away from the product page.
If you want a certain variation already selected when a user visits the product page, choose the default form values. This also enables the Add to Cart button to appear automatically on variable product pages.
You can only set defaults after at least one variation has been created.
Each variation can have the following properties.
Inventory for variable products can be managed on both the product and the variation level.
Сhoose how to manage stock by toggling Enable stock management at product level on the Inventory tab:
The following settings are available if you choose to manage stock on a product level:
Choosing to manage stock for variations individually allows you to edit the same properties for each variation.
Set Stock Status can be applied to all variations at once to In stock or Out of stock. Bulk-update under Variations.
If the SKU, weight, dimensions, and stock fields are not set, then it inherits values assigned to the variable product. Price fields must be set per variation.
Adding individual images to variations will automatically display that option when the customer selects it from the dropdown box.
You can bulk-edit variations by selecting the specific piece of data you want from the dropdown.
On the frontend, when viewing a variable product, the user is presented with dropdown boxes to select variation options. Selecting options will reveal information about the variation, including available stock and price.
If the user tries to click the greyed out add to cart button before choosing an attribute, a message will appear asking them to select some attributes.
In the product archive page, Add to Cart does not display because a variation must first be chosen before adding to cart on the product page.