Enable shop customiser => Not able to override WC templates


#1

Hello jupiter-community,

I’ve encountered a weird behavior with shop customiser option.
When I enable it my Woocommerce override template doesn’t works anymore when disable it its works fine.

Do you have any idea ? :o
im struggling…

Jupiter, jupiter-donut and Woocommerce is updates


#2

I found a fix but I don’t really like use king of fix

add_filter( 'wc_get_template', 'custom_wc_templates', 10, 5 );

function custom_wc_templates( $located, $template_name, $args, $template_path, $default_path ) {
if( $template_name == ‘order/order-downloads.php’){
$located = trailingslashit( get_stylesheet_directory() ) . ‘woocommerce/’ . $template_name;
}
return $located;
}