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'] );
    					}
    

Leave a Reply

Please stay on topic and be respectful to others. If you need help with issues not related to this post, use our Support Forum to start a chat or submit a ticket.

You can use these tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>