- Trạng thái
- Đã được giải quyết bởi nhà phát triển
- Plugin/giao diện liên quan
- YITH WooCommerce Request a Quote
- Thẻ chủ đề
- Compatibility
Tổng quan về lỗi
Khi sử dụng plugin YITH WooCommerce Request a Quote và WPML, người dùng sẽ được chuyển hướng đến trang ngôn ngữ mặc định sau khi gửi yêu cầu báo giá.
Giải pháp tạm thời
Vui lòng đảm bảo có một bản sao lưu toàn bộ trang web của bạn trước khi tiếp tục.
- Mở file …./wp-content/plugins/yith-woocommerce-request-a-quote-premium/includes/forms/default/class.yith-ywraq-default-form.php.
- Tìm dòng 619.
- Ngay sau chú thích này:
/** * 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. */
- Thêm:
// 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'] ); }