WPML
סטטוס
נפתר
נפתר בגרסה
WPML Multilingual CMS 4.7.4
תוסף/ערכת עיצוב קשורים
Elementor
תגיות נושא
Compatibility

סקירה כללית של התקלה

בעת שימוש ב־Elementor Pro עם WPML Multilingual & Multicurrency for WooCommerce, ייתכן שעמוד התודה המותאם אישית אינו מוצג כראוי בשפה משנית, אם נקודת הקצה ”order-received” של WooCommerce מתורגמת. במקום זאת, הוא חוזר לעמוד התודה של WooCommerce הסטנדרטי.

פתרון עוקף

אנא, ודא שיש ברשותך גיבוי מלא של האתר לפני שתמשיך.


  • פתח את הקובץ …/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 );
    }		

כל התקלות הידועות →