Resolved
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
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);
Hi, I’m having this issue, but this workaround did not fix it. Any idea when the fix will be available to the public?
I’m sorry to hear that. We don’t have an ETA so far, but please open a ticket in our Support forum so we can check your situation:
https://wpml.org/forums/forum/english-support/
I am experiencing the same issue. I tried the proposed solution and it’s not working.
Sorry to hear that. Can you please open a ticket in our Support Forum so we can check your situation:
https://wpml.org/forums/forum/english-support/