View Product Page

Attributes

To start creating custom attributes for your product variations, go to WooCommerce > Products > Attributes.

Create new attributes

Now, you can configure the following fields:

  • Name: enter the name for the attribute that will show on the frontend;
  • Slug: enter the slug for the attribute (max number of characters: 28);
  • Enable Archives: enable this option if you want the attribute to have product archives in your store;
  • Type: attribute type. In addition to the standard WooCommerce select, the plugin adds the following attribute types: Colorpicker, Image, and Label;

Attribute types

  • Default sort order: select the sort order of the terms on the frontend;
  • Description: enter the attribute description.

Example

Attribute example

To save the attribute, click on the button Add attribute.

All the created attributes will now show in the table on the right side of the page.

Attributes table

Terms

After creating your attributes, you will need to add their terms which can be done by clicking on Configure terms.

Configure attribute terms

Based on the attribute type (Colorpicker, Image, or Label), you will find a different set of options to add the terms for your product variations.

Colorpicker

Colorpicker terms

  • Name: enter the name that defines the color and will show on the frontend;
  • Use for tooltip: enable this option to use the term name for the tooltip;

Use term name for the tooltip

  • Swatch type: choose the swatch type from
    • Single color: select if you want to show a single color for the swatch, then choose the color in the Colorpicker option;
    • Bicolor: select if you want to show a two-tone swatch, then choose the colors in the Colorpicker options;
    • Image: select if you want to show an image for the color swatch, then drag or upload the file in the related option;

Swatch types

  • Tooltip text: enter the text for the tooltip that defines the attribute variation and will show on the product page;
  • Tooltip image: drag or upload the image for the tooltip that defines the attribute variation and will show on the product page;

Tooltip image for Color attributes

  • Slug: enter the slug for the attribute variation;
  • Description: enter a description that defines the attribute variation, shown in the front end.

After configuring and adding the terms, you’ll get a view like in the image below.

Color terms

Image

Image terms options

  • Name: enter the name that defines the image and will show on the frontend;
  • Use for tooltip: enable this option to use the term name for the tooltip;
  • Image: drag or upload the image that you want to use for the attribute variation;
  • Tooltip text: enter the text for the tooltip that defines the attribute variation and will show on the product page;
  • Tooltip image: choose the image for the tooltip by selecting one of the following options:

Tooltip image

    • No image
    • Use attribute image
    • Upload image: by selecting this option, you will be able to drag or upload a different image through the dedicated uploader;

Upload image option

  • Slug: enter the slug for the attribute variation;
  • Description: enter a description that defines the attribute variation, shown in the front end.

After configuring and adding the terms, you’ll get a view like in the image below.

Image terms

Label

Label terms

  • Name: enter the name that defines the label and will show on the frontend;
  • Use for tooltip: enable this option to use the term name for the tooltip;
  • Use for label: enable this option to use the term name for the label;

Use attribute name for the label

  • Label: enter the label that defines the attribute variation;
  • Tooltip text: enter the text for the tooltip that defines the attribute variation and will show on the product page;
  • Tooltip image: choose the image for the tooltip that defines the attribute variation and will show on the product page;
  • Slug: enter the slug for the attribute variation;
  • Description: enter a description that defines the attribute variation, shown in the front end.

After configuring and adding the terms, you’ll get a view like in the image below.

Label terms

How to add attribute terms from products

You can create new product variations directly from the Attributes section of the product detail page. After selecting the attribute, click on Add new to add a new term.

Add new attribute from product edit page

The modal window will include the available options that you can use to configure the new attribute term.Add new attribute terms from product edit page

Add attributes to the product

You can add attributes to the product just like for any other attribute belonging to WooCommerce types. Select the attribute and click on Add.

Add attributes to the product

Now select the terms you want to use for the product variations, enable the option Used for variations and click on Save attributes.

Select terms

You can now configure the variation settings through the created attribute. Here, you can also find the option to add a different image gallery for each of the product variations.

Variation image gallery

The customers will see a different image gallery for every variation they select.

Variation image gallery on frontend

How to customize attribute style at the product level

If you need to set a different style for the attributes of a specific product, you can do it through the section Attributes style on the product edit page.

Attributes style customization

Here, you will find the attributes previously added to the product. By clicking on each of them, the list of terms will show. You can now override their style by enabling the option Override attribute options.

Override attribute options

The term options available to be overridden depend on the attribute type.

Colorpicker term options

Terms customization options
  • Swatch type: select the color swatch type (Single color, Bicolor or Image);
  • Value: select the color/s or set the image;
  • Tooltip text: enter the text for the tooltip;
  • Tooltip image: drag or upload the image for the tooltip.

Image term options

Image term options
  • Value: drag or upload the image;
  • Tooltip text: enter the text for the tooltip;
  • Tooltip image: choose the image to use as tooltip from:
    • No image: no image will show;
    • Use attribute image: use the same image assigned to the attribute;
    • Upload image: upload a different image.

Label term options

Label term options
  • Value: enter the label;
  • Tooltip text: enter the text for the tooltip;
  • Tooltip image: drag or upload the image for the tooltip.

Example

Imagine you are selling clothes in your online store and you want to show the size match for a specific T-shirt model in the following way: S=42, M=44, L=46, etc.

Label term options customization - example

By overriding the label term options in that product, you will get a result as in the image below.

Example

Attribute types examples

New attribute types that the plugin allows to use, in addition to WooCommerce standard ones, are colorpicker, image and label. Showing these types of attributes on your products will offer users the possibility to have a nice view of the options available and will help them make the right choice for their needs.
Let’s see some examples for each type.

Colorpicker

This attribute type allows creating color swatch variations for your products.

You can choose to create variations by

  • single color

Single color example

  • bicolor

Bicolor

  • or image.

Image

To set up color attribute terms for your product variations, please refer to this page.

Label

The Label attribute allows showing a text label for your product variations.

Label

To set up label attribute terms for your product variations, please refer to this page.

Image

Image attributes allow showing an image to better represent your product variations.

Image

To set up image attribute terms for your product variations, please refer to this page.

Variations in shop & archive pages

Through the plugin General options, you can choose to show single product variations on default WooCommerce shop and archive pages.

Show variations as separate products

Enable the option Show variations as separate products and decide whether to show or hide the parent product by enabling/disabling the option Hide parent products. If hidden, only the variations of the products will be visible in the loop.

If you want to keep the order and sequentially show the same products, enable the option Order products by ID.

Please note – for the product variations to show as separate products, it is essential to enable the option Show in archive pages? in each variation on the product edit page. Show in archive pages

This is an example of separate product variations shown on the Shop page.

Separate variations on Shop page

In this section, you can also set other options to offer users a better purchase experience.

  • Allow attributes selection in shop and archive pages: by enabling this option, users can select the product variation on shop and archive pages without being redirected to the product page ;
Selection disables
Selection disabled
Selection enabled
  • Show only specific attributes on shop archive pages: use this option to show only specific attributes in the shop page.
No attributes selected
Specific attribute selected
  • Variations form position in archive pages: choose whether to show the product variations before or after the Add to cart button;
Show variations before Add to cart
Before Add to cart button
Show variations after Add to cart button
After Add to cart button
  • Enable AJAX form in archive pages: use this option to enable/disable Ajax on archive pages;
  • Customize the “Add to cart” button label: enable this option if you want to show a custom text for the Add to cart button;
  • Label for the “Add to cart” button: enter the custom text to show for the Add to cart button when users select a product variation.
Add to cart custom label

Variations in product pages

Variations on product pages

The first option you can find in this General options section is the one to choose the variation layout for the product pages. You can choose from:

  • Inline
  • Separate lines
Inline layout
Inline
Separate lines layout
Separate lines

The other settings are:

  • Show attribute description: by enabling this option, the attribute description will show on the product page;
  • Replace product image on hover: by enabling this option, the product image will be replaced with the image of the variation when the user hovers over it.
Replace image
  • Show custom attributes on “Additional Information” Tab: enable this option if you want to show the custom attributes style in the “Additional Information” product tab.
Additional information tab

Variations on Cart page

By enabling this option the users will be able to edit the selected variations directly in the cart page.


And a new button ”Edit” will be available.


By clicking the button a modal window will be available to let you edit and update product variations.

Customization

In the section Customization, you can configure the tooltip and style options.

Tooltip options

Tooltip options
  • Enable tooltip on attributes: enabled this option to add a tooltip to each attribute created.
  • Tooltip position: choose whether to show the tooltip on top or bottom of the attributes;
Top position
Top
Bottom
Bottom
  • Tooltip animation: choose the animation for the tooltip from Fade in and Slide in;
  • Tooltip colors: set the colors for the tooltip background and text

Style options

Style options
  • Form colors: set the border and accent colors;
Attributes form colors
Example: Border > gray; Accent > blue
  • When a variation does not exist or is out of stock: choose the behavior to apply when a product variation is not set or is out of stock. Available options are:
    • Hide it: the variation will be hidden;
    • Blur it: the variation will show as blurred;
    • Blur it and cross it out: the variation will show as blurred and crossed out;
Blur and cross out out-of-stock variations
  • Color swatches size (px): enter the value (in px) to define the size of color swatches;
  • Color swatches border radius (px): enter the value (in px) to define the border radius of color swatches;
  • Options border radius (px): enter the value (in px) to define the border radius of the options.

YITH WooCommerce Added to Cart Popup

Thanks to YITH WooCommerce Added to Cart Popup you can enable an automatic popup to notify the user about the updated cart content. Every time a product is added to the cart, the popup automatically opens.

The combined use of these two plugins allows users to choose the variation of the products directly from the modal window.

To do it, you need to install and activate the premium version of both plugins on your site.

Integration with YITH Added to Cart Popup

For further details about YITH WooCommerce Added to Cart Popup settings, please refer to the official documentation.

YITH WooCommerce Ajax Product Filter

YITH WooCommerce Ajax Product Filter lets you filter the product catalog by attribute, price, stock, rating and much more.

The combined use of these two plugins allows inheriting the colors, labels, and images configured with YITH Color, Image & Label Variation Swatches for WooCommerce as configuration of the filtering terms, so you don’t have to re-create them from scratch in the filter. This applies to Color swatches and Label/Image types.

Integration with YITH Ajax Product Filter

Specifically, by disabling the option Customize terms, the plugin will recover the options configured for the terms with YITH Color, Image & Label Variation Swatches.

Integration with YITH Color, Images and Label Swatches Variations

When enabling the option “Show variations as separate products” in YITH Color, Image & Label Variation Swatches, each variation will be shown as a separate product.

Integration with YITH Ajax Product Filter

The filter will also be applied in this case, and will show all products (variations) that match the filter.

For further details about YITH Ajax Product Filter, please, refer to the official documentation.