Overriding WooCommerce templates

Updated on June 18, 2019

Normally, when we override Woocommerce templates we create a folder named woocommerce in a theme folder and copy those templates there that we want to override but in Jupiter X we have changed this path to jupiterx/lib/templates/woocommerce/. Now, any template you want to override should be inside jupiterx/lib/templates/woocommerce/

e.g. To override a content-single-product.php from plugins/woocommerce/templates/content-single-product.php.

Create a template with same name content-single-product.php in jupiterx/lib/templates/woocommerce folder and modify as per your requirements.

Same applies for the Child theme jupiterx-child/lib/templates/woocommerce

Did this answer your question?