- ステータス
- 開発者により解決済み
- 関連するプラグイン/テーマ
- 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'] ); }