• Resolved ignacio75

    (@ignacio75)


    Hi I want know if the plugin is compatible with WPML, and if it is correct please let me know like to use this

Viewing 6 replies - 1 through 6 (of 6 total)
  • From my knowledge, I can say the plugin is not compatible with multilingual plugins such as Polylang, WPML, etc since I faced this issue recently.

    To figure out the issue, I decided to make the email body static by a filter that I suggested here.
    https://www.ads-software.com/support/topic/git-repository-4/

    An example can be like this:

    add_filter('woo_ca_send_email_data', function ($emailData) {
        $emailTemplate = \Cartflows_Ca_Email_Templates::get_instance();
        $couponEnabled = $emailTemplate->get_email_template_meta_by_key($emailData->template_id, 'override_global_coupon');
        $couponAmount  = '';
    
        if (isset($couponEnabled->meta_value) && '1' === $couponEnabled->meta_value) {
            $couponAmount = $emailTemplate->get_email_template_meta_by_key($emailData->template_id, 'coupon_amount');
            $discountType = $emailTemplate->get_email_template_meta_by_key($emailData->template_id, 'discount_type');
    
            if ($discountType->meta_value === 'percent') {
                $couponAmount = $couponAmount->meta_value . '%';
            } else {
                $couponAmount = get_woocommerce_currency_symbol() . $couponAmount->meta_value;
            }
        }
    
        $emailData->email_body = '<p>Hey,</p>
        <p>' . sprintf(__('You haven\'t finished your shopping. Please proceed and we will give you %s discount.', 'textdomain'), $couponAmount) . '</p>
        <p><a href="{{cart.checkout_url}}" target="_blank" rel="noopener">' . __('Continue Your Purchase Now!', 'textdomain') . '</a></p>
        <p>{{cart.unsubscribe}}</p>';
    
        return $emailData;
    });
    Plugin Support Shravan Bhaskaravajjula

    (@bhshravankumar)

    Hello @ignacio75,

    The cart Abandonment plugin is not fully compatible with WPML, we suggest using the Loco Translate plugin.

    Hope this helps.

    Thread Starter ignacio75

    (@ignacio75)

    Hi Sravan,

    I need translate the template of plugin.

    Plugin Support Shravan Bhaskaravajjula

    (@bhshravankumar)

    Hello @ignacio75,

    I am not sure what you are referring to, can you please share a screenshot?

    Looking forward to hearing from you.

    Thread Starter ignacio75

    (@ignacio75)

    Hi Sravan,

    I need to have a mail template for each language (Spanish, English, Portuguese).

    If the client wanted to buy with the option in Spanish, send him an email in Spanish

    If the client wanted to buy with the option in English, send him an email in English

    Plugin Support Shravan Bhaskaravajjula

    (@bhshravankumar)

    Hello @ignacio75,

    Sorry to disappoint you, but this option is not available yet, this is added to our product roadmap and will be available in future versions.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Is the Plugin Compatible with WPML?’ is closed to new replies.