Overview of the Issue
In some cases where your theme is using a taxonomy-product_cat.php template and you create a product archive using Elementor PRO and translate it, the translated product archive page displays the default template, not the template you created using Elementor PRO.
Workaround
This issue is fixed in WooCommerce Multilingual 4.11.0. Updating solves it on your site, so you only need this workaround if you can’t update yet.
We’re working on a fix for this in WooCommerce Multilingual. In the meantime you can use the following workaround to fix the issue:
- Please make sure that you have a backup of your website files and database before doing that change.
- Add the following code in you theme’s functions.php file:
add_filter('template_include', function ($template){
if (function_exists('wc_locate_template') && strpos($template, 'elementor') !== false && !file_exists(wc_locate_template(basename($template)))) {
global $woocommerce_wpml;
remove_filter( 'template_include', [ $woocommerce_wpml->store, 'template_loader' ], 100 );
}
return $template;
}, 12);Still Seeing This Issue?
If updating doesn’t fix it, ask a support question and we’ll look into it with you.
Ask a support question