Setting up Different Layouts for Each Product Category and Subcategory

how do I create different layouts for each product category and subcategory in Woocommerce?
If I change settings, they seem to affect every category and product page, but I want to make sure they are all distinct.
Thank you

Solutions Collecting From Web of "Setting up Different Layouts for Each Product Category and Subcategory"

Woocommerce follows WordPress’s native template hierarchy system.

To create a template file to be used for a specific category, use this file naming scheme:


So, for Woocomerce categories, this will be:


You can create one of those files for each category that you want to have a different appearance from the default category.

You need to put your custom Woocommerce templates in your_theme_directory/woocommerce.

Note – the above method to your question will mean ‘hardcoding’ (the category names will be attached to the file names), but as long as the person who will be creating new categories is always also a developer who can create the extra files, then no problem.