Skip Navigation

Resolved

Resolved in: WCML 3.7.12

Overview of the issue

Genesis Connect for WooCommerce plugin enables overriding default WooCommerce templates by filtering ‘template_include’. WooCommerce Multilingual also filters ‘template_include’ but with higher priority. Thus why changes applied from Genesis Connect are not effective.

Workaround

We need to queue filtering ‘template_include’ at higher priority so it won’t get overwritten by WooCommerce Multilingual. You need to add the follwoing action to your functions.php file:

add_action( 'after_setup_theme', 'wpml_comp_1646', 100 );
function wpml_comp_1646(){
if ( has_filter( 'template_include', 'gencwooc_template_loader' ) ) {
remove_filter( 'template_include', 'gencwooc_template_loader', 20 );
add_filter( 'template_include', 'gencwooc_template_loader', 200 );
}
}