Create Taxonomy Archive for WooCommerce Product Attributes

Create Taxonomy Archive for WooCommerce Product Attributes
August 30, 2015 zorem

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”:

Comments (0)

Leave a reply

Your email address will not be published. Required fields are marked *

*