When you setup your Woocommerce catalog, you assign each product with attribute, for example ‘Color’, ‘Size’, Now, for example, in order to display an archive of aBlack products, you need to create a template file for your attribute in your theme folder.
Copy woocommerce/templates/taxonomy-product_cat.php into your theme folder/woocommerce/
Rename the template file in your theme to reflect your attribute – in our example we’d use taxonomy-pa_color.php, doing that will create a landing page for each attribute term value. You can now view this template for the value black: /shop/color/black/
After creating the attribute template, there are 3 useful things you can do to use these New attribute “landing pages”:
- Add custom attributes in menus
- Set the archive checkbox for the attribute you wish to have archives for.
- If you want to be able to use shortcodes in your attribute descriptions