Variable products and swatches

Variable products let customers choose between product options such as color, size, or material. WooCommerce displays these options as dropdowns by default, while WoodMart can present global attribute terms as text, color, or image swatches.

WoodMart swatches are available only for global WooCommerce attributes created under Dashboard -> Products -> Attributes. Attributes created directly inside an individual product use the standard WooCommerce dropdown.

Create a variable product

  1. Navigate to Dashboard -> Products -> Attributes, create a global attribute, and add its terms. For example, create a Color attribute with Black, Blue, and Red terms.
  2. Edit the product and set Product data to Variable product.
  3. Open the Attributes tab, add the global attribute, select its values, and enable Used for variations.
  4. Open the Variations tab, create the required variations, and configure their prices, stock, images, and other product data.

For complete instructions on variable product data and variation management, see the official WooCommerce Variable Products guide.

Configure the swatch type

  1. Navigate to Dashboard -> Products -> Attributes.
  2. Click Configure terms for the required attribute.
  3. Add a new term or edit an existing one.
  4. In the Swatch settings, configure one of the available types and save the term.
  • Image swatch — upload an image that represents the attribute term.
  • Color swatch — select a color for the term.
  • Text swatch — display the term name as a clickable text option.
WoodMart attribute term settings with the text swatch enabled
Configure each attribute term as a text, color, or image swatch.
WoodMart color swatch setting for the Beige attribute term
Assign a color when the term should appear as a color swatch.

Configure the swatch appearance

Return to Dashboard -> Products -> Attributes and edit the global attribute itself. The WoodMart settings let you configure the appearance shared by its terms:

  • Swatch style — controls the general appearance of available swatches.
  • Disabled swatch style — controls how unavailable variation options appear.
  • Swatch shape — sets round, rounded, or square swatches.
  • Swatch size — sets the size used for the attribute swatches.

Display swatches on the product grid

Navigate to Dashboard -> Theme Settings -> Shop -> Variable products and select an attribute in Grid swatch attribute to display. WoodMart will show that attribute below variable products in shop grids when the products contain the corresponding variations.

If a particular product needs a different grid attribute, use its Grid swatch attribute to display option in the WoodMart product settings to override the global selection.

Use variation images as swatches

WoodMart can fill the selected attribute’s swatches with the primary images assigned to product variations:

  1. Navigate to Dashboard -> Theme Settings -> Shop -> Variable products.
  2. Select the required attribute in Grid swatch attribute to display.
  3. Enable Use images from product variations.
  4. Assign a primary image to every variation that should appear as an image swatch.
  5. For each attribute term, remove the Color swatch value and configure an Image swatch or Text swatch as a fallback.

When a variation image is available, WoodMart uses it instead of the term’s Image swatch. If no variation image is assigned, the configured term swatch is used as the fallback.

WoodMart image swatch setting for a product color attribute
Configure an image fallback for each attribute term when variation images are used.

Video tutorial