Skip Navigation

Resolved by author

Topic Tags: Compatibility

Overview of the issue

When using the YITH WooCommerce Request a Quote plugin and WPML, users are redirected to the default language page after submitting a quote request.

Workaround

Please, make sure of having a full backup of your site before proceeding.

  • Open …./wp-content/plugins/yith-woocommerce-request-a-quote-premium/includes/forms/default/class.yith-ywraq-default-form.php file.
  • Look for line 619.
  • Just after this comment:
    					/**
    					 * 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.
    					 */
    
  • Add:
    					// 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'] );
    					}