Product groups/variations
Split product output into separate blocks with product groups — assign, display, and show them as tabs.
Groups are the simplest way to split product output into separate blocks — for example, a phone in one group and its accessories in another, or different colors and variations of the same product. (The other way to control exactly what a block shows is to bind specific products to it — see Choose products.)
Assign products to a group
On the Added tab of the product manager:
In bulk — select products, then pick a group from the dropdown, or choose + New group… to create one.
Per product — assign a group (or a new group) on a product's row, or in its edit drawer.

You can also assign a group while searching, using the syntax keyword -> group name. After the product is added, it's placed in that group automatically. This syntax also works for auto-update keywords.
Display one or more groups
To show only certain groups:
In the CE Products block, set the Product Groups filter in the block's Data Filtering panel — pick one or more groups. See The Products block.
Or use the
groupsshortcode parameter, with several groups separated by commas:
See Shortcode parameters.
Show groups as tabs
Special group templates render each group as its own tab automatically. Set the tab order with the groups parameter, and the tab style with tabs_type (tabs, pills, or underline).

Removing a group
To remove a group, simply unassign it from all products — once no product uses it, the group is deleted automatically.
Static groups
If you want certain groups to be available for all posts by default, use the cegg_static_product_groups filter.
Add the following to your theme's functions.php (preferably in a child theme):
Last updated