Product categories are the primary way to group products with similar features. You can also add subcategories if desired.
For example, if you sell clothing, you might have “t-shirts”, “hoodies” and “pants” as categories.
Categories are managed from the Products > Categories screen.
Similar to categories on your posts in WordPress, you can add, delete, and edit product categories.
Storefront by default displays product category images on the homepage template.
Categories can also be reordered by dragging and dropping – this order is used by default on the front end whenever the categories are listed. This includes both widgets and the category/subcategory views on product pages.
Since WooCommerce 3.3, there will be a default category. Every product must be assigned to a category, so the default category will be automatically assigned if the product is not assigned to any other category. By default, this category will be named “Uncategorized” and can not be deleted. However, you can rename the category. You can also switch the default category using the row actions underneath the category name, then the “Uncategorized” category can be deleted as it is no longer the default.
When you add a new product via Products > Add Product, you can select this new product category from the list.
Alternatively, you can go to Products > Add Product directly, and select Add New Product Category.
The taxonomy is product_cat
. And the filtering feature becomes AJAX-enabled for friendlier use once there are 100 categories.
Product tags are another way to relate products to each other, next to product categories. Contrary to categories, there is no hierarchy in tags; so there are no “subtags.”
For example, if you sell clothing, and you have a lot of cat prints, you could make a tag for “cat.” Then add that tag to the menu or sidebar so cat lovers can easily find all t-shirts, hoodies, and pants with cat prints.
Tags can be added similarly to adding product categories and work in exactly the same way as post tags. See the WordPress.org Codex for more information.
The taxonomy is product_tag
.
A third and important way to group products is to use attributes. There are two uses of this data type that are relevant for WooCommerce:
For example, if you’re selling clothing, two logical attributes are “color” and “size”, so people can search across categories for a color that fits their style and type and clothing available in their size.
Go to Products > Attributes to add, edit, and remove attributes.
Here you can quickly and easily add attributes and their terms.
http://yourstore.com/pa_color/black/
to your menu to only display black clothing – pa
stands for “product attribute.”Select Add Attribute.
The attribute is added in the table on the right, but without values.
Select the “Configure terms” text to add attribute values.
Next Add New “Attribute name”, where “Attribute name” automatically takes the name you gave the attribute in the previous step.
Add as many values as you wish. If you selected “Custom ordering” for the attribute, reordering your values can be done here.
Add the created attributes to your products.
If you selected a global attribute that you previously created, you can select terms that you added previously.
Alternatively, add an attribute you only want to use for one product. This would only be ideal if you have a product with unique variations.