-
Notifications
You must be signed in to change notification settings - Fork 11
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
fix: Store category count sync for multiple language #60
Conversation
# Conflicts: # dokan-wpml.php
Hello @shohag121 and @Aunshon hope you enjoyed your holidays. When can we expect the fix to be released as still not working with Dokan 3.10.2? |
Hello @aihimel @shohag121 @StalinDurjo @Aunshon Just tested your solution by adding the line of codes missing in Dokan WPML but it does not work. Is the store categories registered in the user profile metadata? Because if yes, only a few user profile metadata are translatable by default with WPML, here for your reference: https://wpml.org/documentation/getting-started-guide/string-translation/translating-user-meta-information-with-wpml/ So if store categories are indeed registered as user profile metadata, you need to add extra code to make them translatable and ensure that when a user registers the store category in one language, it gets automatically registered for the other language. Here is a tutorial that will help you understand the logic behind and so achieve the results wanted if store categories are indeed user profile metadata: https://gist.github.com/senlin/4fd15ba7a19533ceb9fe If you need a video with more explanations and proof that this current fix is not working, ask Yeasin about the last video I sent in support ticket #60772 Hope that helps, let me know, waiting for your news |
Note Currently processing new changes in this PR. This may take a few minutes, please wait... Files selected for processing (1)
WalkthroughThe changes enhance multilingual support in the Dokan plugin by introducing functions to handle translated store categories and updating the WPML configuration to synchronize these categories across different languages. Changes
Assessment against linked issues
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
Review Details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (2)
- dokan-wpml.php (4 hunks)
- wpml-config.xml (1 hunks)
Files skipped from review due to trivial changes (1)
- wpml-config.xml
Additional comments not posted (3)
dokan-wpml.php (3)
651-667
: The implementation ofset_translated_category
aligns with the PR objectives to sync store categories across languages. Consider adding error handling or logging when WPML functions are not available.
678-698
: The implementation ofget_translated_category
correctly fetches translated categories. Consider adding a comment to clarify whynull
is used as the language parameter inwpml_object_id_filter
, which defaults to the current language.
160-161
: Integration ofset_translated_category
andget_translated_category
with Dokan hooks is correctly implemented.
@Aunshon @shohag121 @shashwatahalder01 it is still not synchronise properly with Dokan WPML 1.1.3. Please review comment here and reopen the GitHub: #53 (comment) |
Implemented Store category saving and fetching filters.
This will help syncing and preserving Category count.
Summary by CodeRabbit
New Features
Improvements