- סטטוס
- נפתר על ידי המפתח
- תוסף/ערכת עיצוב קשורים
- YITH WooCommerce Request a Quote
- תגיות נושא
- Compatibility
סקירה כללית של התקלה
בעת השימוש בתוסף YITH WooCommerce Request a Quote וב־WPML, המשתמשים מופנים לעמוד שפת ברירת המחדל לאחר שליחת בקשה להצעת מחיר.
פתרון עוקף
אנא ודא שיש לך גיבוי מלא של האתר לפני שתמשיך.
- פתח את הקובץ …./wp-content/plugins/yith-woocommerce-request-a-quote-premium/includes/forms/default/class.yith-ywraq-default-form.php.
- חפש את שורה 619.
- מיד לאחר הערה זו:
/** * DO_ACTION:send_raq_mail * * This action triggers to send the quote email * * @param array $raq List of arguments useful to send the email with quote. */
- הוסף:
// workaround compsupp-7072 $wpml_default_lang = apply_filters('wpml_default_language', NULL); if ($wpml_default_lang !== $filled_form_fields['lang'] ) { do_action( 'wpml_switch_language', $filled_form_fields['lang'] ); }