WPML
สถานะ
แก้ไขแล้ว
แก้ไขใน
WPML Multilingual CMS 4.7.4
ปลั๊กอิน/ธีมที่เกี่ยวข้อง
Elementor
แท็กหัวข้อ
Compatibility

ภาพรวมของปัญหา

เมื่อใช้ Elementor Pro ร่วมกับ WPML Multilingual & Multicurrency for WooCommerce คุณอาจพบว่าหน้าขอบคุณแบบกำหนดเองแสดงผลไม่ถูกต้องในภาษารอง หาก endpoint ”order-received” ของ WooCommerce ถูกแปล แต่ระบบจะเปลี่ยนกลับไปใช้หน้า WooCommerce Thank You มาตรฐานแทน

วิธีแก้ปัญหาชั่วคราว

โปรดตรวจสอบให้แน่ใจว่าได้สำรองข้อมูลทั้งหมดของไซต์ของคุณก่อนดำเนินการต่อ


  • เปิดไฟล์ …/wp-content/plugins/elementor-pro/modules/woocommerce/module.php

  • แทนที่โค้ดต่อไปนี้ (ประมาณบรรทัดที่ 970):
    $order_received_endpoint = get_option( 'woocommerce_checkout_order_received_endpoint', 'order-received' );

  • ด้วย:
    $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 );
    }		

ปัญหาที่ทราบแล้วทั้งหมด →