getdokan / dokan-wpml

WPML compatibility with dokan plugin
5 stars 10 forks source link

⚠️⚠️⚠️ SELLER PACKS SUBSCRIPTION - Email "Vendor Dokan Vendor Enable" email template > not translated - even if vendor orders pack in another language and has his default language set up to it #64

Open Sophie-2e opened 7 months ago

Sophie-2e commented 7 months ago

Following up on customer support ticket #55591

I noticed a bug with the SELLER PACKS SUBSCRIPTION for the Email "Vendor Dokan Vendor Enable" email template > even if email is translated, for example for french, if vendor orders the pack in French and has his default language as French, he still receives the email in English (default website language) instead of french.

In this video you can see that he has ordered in French from 21min: ask video in customer support ticket #55591

And in this video (no sound) you can see that the email settings and content are translated and that the user default language is set up to french but the email received is in english: ask video in customer support ticket #55591

Please check it out and fix it

Sophie-2e commented 5 months ago

Still not with Dokan 3.11.0

Sophie-2e commented 5 months ago

and still bugging with dokan 3.11.1...

Sophie-2e commented 5 months ago

2 months later still no news on when this will be fixed...

Sophie-2e commented 3 months ago

...Update Dokan 3.11.4 + Pro 3.11.3, still not fixed. Only received email in website default language even if email content is translated.

Sophie-2e commented 2 months ago

...Update Dokan 3.11.5 + Pro 3.11.4, still not fixed. Could you please assign someone @imtiaz-pranto? Thanks for your help

Sophie-2e commented 2 months ago

Hello @imtiaz-pranto can you help me get this resolved? It is quite urgent but no one seems to be assigned even after that the Support Team has reported the issue to the dev team several times on their side too over the last few months. Thanks for your hep 🙌

imtiaz-pranto commented 1 month ago

@pronob1010 bhai, please consult with @getdokan/support for solving this issue.

pronob1010 commented 1 month ago

@imtiaz-pranto Thank you for assigning me. Let me replicate and hope you will receive an update soon.

shohag121 commented 1 month ago

@pronob1010 @MdAsifHossainNadim Bhai, Did you follow this documentation?

pronob1010 commented 1 month ago

@pronob1010 @MdAsifHossainNadim Bhai, Did you follow this documentation?

Yes, I have checked out all the mentioned areas. The main issue is that setup_locale cannot detect the vendors' local language. I attempted to retrieve the preferred language from the user data manually.

$vendor_locale = get_user_meta( $seller_id, 'preferred_language', true );

if ( ! empty( $vendor_locale ) && $vendor_locale !== get_locale() ) {
        switch_to_locale( $vendor_locale );
}

However, this approach also did not work.

Sophie-2e commented 2 weeks ago

Hello @pronob1010 @shohag121

Still bugging with Dokan 3.12.5. When can we except a fix?

pronob1010 commented 2 weeks ago

@Sophie-2e I've recently been assigned to this issue and noticed it's a corner case. I'm working on it and expect to have it resolved soon. I apologize for the delay, and thank you for your patience.