تخطي الملاحة

Open

Topic Tags: Compatibility

Overview of the issue

When using Elementor Pro with WooCommerce Multilingual, you may encounter that the custom Thank You page doesn’t display correctly in a second language, if the WooCommerce endpoint “order-received” is translated. Instead, it defaults back to the standard WooCommerce Thank You page.

Workaround

Please, make sure of having a full backup of your site before proceeding.

  • Open the …/wp-content/plugins/elementor-pro/modules/woocommerce/module.php file
  • Replace the following snippet (around line 970):
    $order_received_endpoint = get_option( 'woocommerce_checkout_order_received_endpoint', 'order-received' );
    
  • With:
    $order_received_endpoint = get_option( 'woocommerce_checkout_order_received_endpoint', 'order-received' );
    
    // WPML Workaround for compsupp-6790
    if ( class_exists('Sitepress') ) {
    	$order_received_endpoint = apply_filters('wpml_translate_single_string', $order_received_endpoint, 'WP Endpoints', $order_received_endpoint );
    }		
    

2 ردود إلى “Elementor Pro - Custom Thank You Page Not Displaying in Second Language when WooCommerce Endpoint "order-received" is Translated”

  1. I have a similar problem, on Cartflows, the default language works well, but the second language redirects to the default Woocommerce checkout page with Purchase summary, already translated into the second language. I would want it to follow the flow and use the custom flow thank you page.

ترك رد

يُرجى البقاء في الموضوع والتزام الاحترام للآخرين. إذا كنت بحاجة إلى مساعدة بشأن المشكلات التي لا تتعلق بهذا المنشور، فاستخدم منتدى الدعم لبدء محادثة أو إرسال تذكرة.

يمكنك استخدام هذه العلامات:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>