Disable theme WooCommerce template

by dado   Last Updated December 06, 2018 15:08 PM

Just purchased a premium WooCommerce-read theme. Unfortunately, this theme comes with a /woocommerce folder. How can I disable this templates,without deleting whole folder?



Answers 1


Many themes overwrite WooCommerce template files. A behaviour that can cause malfunctions.

WC_TEMPLATE_DEBUG_MODE will prevent overrides in themes from taking priority

// Add this to wp-config.php file

define( 'WC_TEMPLATE_DEBUG_MODE', true );

https://docs.woocommerce.com/wc-apidocs/function-wc_get_template_part.html

dado
dado
December 06, 2018 15:02 PM

Related Questions



Woocommerce template best practices

Updated March 15, 2017 01:08 AM