Group WooCommerce product attributes

In WooCommerce Attribute Swatches v1.1.0 the ability to group product attributes was added.

Let's say you have a Color attribute. The color choices vary in style; gloss / matte / patterned. By default they would all show one after the other:

But using the new Groups setting, you can split them up to make it much more user-friendly:

Let's look at how this can be achieved.

How to create WooCommerce product attribute groups

It's important to note that you can only create groups for global attributes; this is any attribute created under Products > Attributes.

  1. Navigate to Products > Attributes.
  2. Click Edit on an attribute (color, for this example).

  3. Scroll down to the Groups field.

  4. Start typing in the name of your first group, and then select it from the dropdown.

  5. Continue this process for the other groups.

  6. Navigate back to Products > Attributes.

  7. Click Configure Terms.

  8. Click to Edit a term.

  9. Scroll down to the Group field.

  10. Select a group from the dropdown.

  11. Click Update.

  12. Repeat steps 8 to 11 for the other attribute terms.

That's it! Now when you view the swatches on the frontend they'll be grouped. Any that aren't added to a group will display right after the main attribute label.

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.