Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Page settings unable to set Dashbaord for multiple languages #84

Open
marijak178 opened this issue Sep 24, 2024 · 5 comments
Open

Page settings unable to set Dashbaord for multiple languages #84

marijak178 opened this issue Sep 24, 2024 · 5 comments
Assignees

Comments

@marijak178
Copy link

Hello

We are using Dokan with the wpml configurations. Everything functions ok just we are not able to set specific page to the dashboard page for specific language.
lets say we have 2 languages
English and French
when we are on the settings page and English is selected we are setting the Dashboard page to be EN Dashboard page.
then when we open that EN Dashboard page everything functions
if we try to change the language to french the dashboard is broken and no error is displayed anywhere.
Then when we go to the settings again but language is set to French the settings for dashboard page is empty and if we set the FR Dashboard page everything functions on the French page. As soon as we switch to English Dashboard page is broken.

Steps to reproduce

  1. set language to EN
  2. go here wp-admin/admin.php?page=dokan#/settings
  3. set the dashboard page to specific dashboard page
  4. switch to other language
  5. go here wp-admin/admin.php?page=dokan#/settings
  6. Dashboard field is empty
  7. set the propper page
  8. only the last language page is ok the other language is broken

Dev docs
WP : 6.6.2
Dokan : 3.12.2 |
Dokan pro: 3.9.8
Dokan - WPML Integration : 1.1.6
WPML String Translation : 3.2.14
WPML Multilingual CMS : 4.6.13

I tried the whole procedure with Polylang as well, and it is the same.

Can you confirm that this is ok on your side or point me to some configs if i miss somthing.

Thanks in advance!

@shohag121
Copy link
Member

@MdAsifHossainNadim Bhai, Would you please look into it?

@Sophie-2e
Copy link

@shohag121 , @MdAsifHossainNadim => for you info, as you know I have WPML on my marketplace, with similar languages and I do not face this issue so not sure it is related to Dokan.

@marijak178 You don't need to set up a specific page for the other languages. You only need to add the default page (in the website/admin default language) in Dokan > Settings > Page Settings > Dashboard > Only add the dashboard page in your website default language with your Wordpress Admin set on the default language. WPML will automatically fetch the translations of your dashboard page to attribute the correct dashboard page according to the user language. Hope that it helps you resolve your issue 🤞

@shohag121 I am still waiting for news on these Dokan plugin related issues :

#35
#58
#66
#78

Looking forward to hearing from you 😉

@marijak178
Copy link
Author

@Sophie-2e thanks for the response
As soon as i added all translations to the pages, the page resolved correctly.
I will close and resolve the issue.
Many thanks for your great work!

@Sophie-2e
Copy link

Hello @marijak178, I’m really glad I could help resolve the issue, and I’m happy it’s all sorted out! Just to clarify, I’m not part of the Dokan team, though I’m actively involved with them since my own marketplace is built with Dokan 🙂
Together, we are making Dokan better!

If you ever run into any issues again, don’t hesitate to reach out—I’ve probably faced a similar situation before! 😉

@mralaminahamed
Copy link
Member

Hi @marijak178,

I see that your issue has already been resolved thanks to @Sophie-2e's suggestion about WPML translation handling. While I was going to share some additional information about WPML admin language settings, I'm glad you were able to get everything working by properly setting up the page translations.

If you encounter any other issues with Dokan and WPML integration in the future, please don't hesitate to open a new issue. We're here to help!

Thank you for using Dokan!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants