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:
taxonomy-{taxonomy}-{term}.php
So, for Woocomerce categories, this will be:
taxonomy-product_cat-{category_name}.php
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.
Related Posts:
- how to override woocommerce specific loop or archive-product.php [closed]
- Get all products with a custom attribute
- pagination in woocommerce order history page
- Show attribute description when filtering by that attribute
- Create a Custom menu item fetched by Product Categories and Sub Categories
- Disable email field on WooCommerce customer account details
- Show post page only if the user has bought a specific product
- redirect product-category to a custom page
- Woocommerce Product page edit
- How to redirect WooCommerce shop URL?
- Unable to display custom fields on WooCommerce product pages
- Send a custom WooCommerce email when custom order change [closed]
- Change WooCommerce product price based on category and GEO IP country
- Automatically Update Woocommerce Prices [closed]
- Add custom field to woocommerce variations [closed]
- how to get the categories for a single product in a hierarchical way
- Viewing checkout page removes fees from mini cart
- woocommerce_checkout_fields modifying existing billing_phone label created new field
- How to add an extra button on woocommerce shop page and use it to send the product info with image in a mail? [closed]
- how do I remove the shipping from woocommerce thankyou page and from the email
- Woocomerce custom billing address fields display in order details [closed]
- Color swatches on category page? [closed]
- help to change some colors (woocomerce and store locator) [closed]
- No shipping method has been selected [closed]
- Changer numbers of columns in woocommerce shop
- Woocommerce product permalink not working
- “woocommerce_form_field()” function having issues after latest woocommerce update [closed]
- How to customize shipping region/states on WooCommerce
- Rename WooCommerce sorting dropdown options [closed]
- WooCommerce custom billing fields on email address
- Woocommerce custom checkout form
- Woocommerce custom field calculation
- Hiding Short Description in Shop Page, WooCommerce
- wordpress shortcode not working
- I found this code to be very useful, how can I change it to a text that display “Product versions and period of last update” rather than a button?
- Customizing woocommerce product page
- Woocommerce custom archive page custom content and shortcode
- WP_Query – sort the results by meta value custom attribute wocoomerce
- customer specific email attachment
- Style WooCommerce Product Search Widget
- Product page not found if product data is set Appointment Service
- Query Product categories what have a custom field
- How to get the full product name by ignoring custom modification on it
- where is admin footer?
- Woocommerce custom “My Account” Tab – Add Save button
- Need to add custom text field to Woocommerce under add to cart button
- Moving Quantity after product description
- Custom product status get filtered on all product list views
- Can we add an extra button on woocommerce shop page and use it to send the product info including image in a mail?
- Upload advanced custom field text link array with csv
- Woocommerce – Remove cart button depending product (post) status
- WordPress Performance and bulk edits
- I want to use a product thumbnail completely different than the product image
- Including a Customized Initialize File with a wordpress header
- Send default WooCommerce email when switching from custom order status
- How to Remove wpautop in woocommerce includes folder class-wc-order-item.php
- WooCommerce – Adding custom HTML to specific product pages
- How do I change text of a product template in a WooCommerce theme? [closed]
- WooCommerce customise checkout billing form [closed]
- Integrate Woocommerce to a custom theme
- woocommerce display product category on checkout page [closed]
- Save And Display Mp3 Audio files on WooCommerce product page with Dokan
- Change the User/ Author of the Products
- Show total sales for each products on search results page Woocommerce
- Change in credit card payment button for woocommerce
- How to display product variations on same row
- Custom product sorting archive page
- Backup the Database and Restore from the Backup?
- Scaling a WP eCommerce site
- Limit Media Library to Given Folder
- Integrating the WordPress admin panel with a frontend theme
- woocommerce_before_calculate_totals in woocommerce 3.0
- Add attribute / custom attribute to product in woocommerce
- How to add classes in the wp_list_category parent link
- Moving from development while pulling production database without overwriting, to production
- Is it possible to add a ribbon in the background of h1 on every page?
- changing font size and font of a custom message added after comment
- Custom wp-content and upload directory
- Lost password empty field error redirect to custom login
- WordPress Custom File Permalink
- How To Load an HTML File As A WordPress Page (With No 301/No Redirect)
- how to display a specific wordpress menu?
- User bar above logotipo?
- Create a url structure for my blogs based on categories and sub-cats
- Dynamically Filtering Posts by Data Points – Any Pointers?
- Remove year from title
- Custom Tags Archive – permalinks not working
- How to append custom text to the output of ‘categories widget’?
- Change Site Logo or Menu Logo Per Page
- WP Search Form Query: Add Author’s posts into search query
- New Page/Post Screen Opens an Existing Post
- Adding new divs with custom classes to products on WooCommerce shop page [closed]
- URL issue after setting up Custom Structure in Settings >> Permalinks
- Add custom attribute to product’s HTML to woocommerce cart page
- Importing Attributes in to Woocommerce
- external Integration with wordpress timeout error
- Create single{custom}.php with data in table out of wp_posts
- Changing starting number of User ID
- How to duplicate “Pages” section in the control panel?
- Show post content in two different places without redirect