Create Taxonomy Archive for WooCommerce Product Attributes

blank

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

Leave a Reply

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

This site uses cookies to offer you a better browsing experience. By browsing this website, you agree to our use of cookies.