Having trouble overriding WooCommerce Category template in X Child

Hello, I am having trouble overriding the product_cat taxonomy page in Woocommerce using the taxonomy-product_cat.php template in my child theme (/themes/x-child/woocommerce/taxonomy-product_cat.php). Overriding the template in this way does not appear to effect how the page is rendered. I put a print statement and an error_log statement in the file to see if it was even executed, but no changes appear on the page from the print function and nothing appears in the logs for the error_log statement. Is there something special I should know about overriding WooCommerce templates in X Theme?

Thanks!

Hi @mattmintun,

Thanks for writing in.

There is no special thing that you should do in X to override woocommerce template.

The only problem that I could see is that the file that you have created in your child theme is not recognized or read. taxonomy-product_cat.php is located in this folder \woocommerce\templates

Check further if you have added it in the right file path.

Let us know how it goes.

Thanks.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.