Skip Navigation

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);

4 Responses to “Elementor PRO - Product Archive Template displays default template, not Elementor PRO template”

  1. Hi, I’m having this issue, but this workaround did not fix it. Any idea when the fix will be available to the public?