- 상태
- 개발자가 해결함
- 관련 플러그인/테마
- 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'] ); }