This is the technical support forum for WPML - the multilingual WordPress plugin.
Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.
Sun | Mon | Tue | Wed | Thu | Fri | Sat |
---|---|---|---|---|---|---|
- | 9:00 – 14:00 | 9:00 – 14:00 | 9:00 – 14:00 | 9:00 – 14:00 | 9:00 – 14:00 | - |
- | 15:00 – 18:00 | 15:00 – 18:00 | 15:00 – 18:00 | 15:00 – 18:00 | 15:00 – 18:00 | - |
Supporter timezone: Asia/Dhaka (GMT+06:00)
This topic contains 11 replies, has 2 voices.
Last updated by Prosenjit Barman 2 months, 2 weeks ago.
Assisted by: Prosenjit Barman.
Author | Posts |
---|---|
August 18, 2024 at 4:36 pm #16081609 | |
antoineC-28 |
Background of the issue: Symptoms: Questions: |
August 20, 2024 at 8:21 am #16086132 | |
Prosenjit Barman Supporter
Languages: English (English ) Timezone: Asia/Dhaka (GMT+06:00) |
Hi There, I understand the issue you're facing. It seems that the translation preference for the custom fields, containing the restriction rules might not be set to "Copy"(to sync across languages), which is why the restriction rules aren’t being applied correctly to the French language. If you can identify the field where you’re adding the restrictions (by using the hidden link">browser inspector to check the field name), try the following steps to see if they resolve the issue: - Go to WPML > Settings and scroll down to the 'Custom Field Translation' section. Please let me know if the information helps or if you need further assistance in this matter. I will be happy to help. Best regards, |
August 20, 2024 at 5:23 pm #16087935 | |
antoineC-28 |
Hi Prosenjit! 🙂 Hope you are well, Thank you for your response, this is gladly appreciated. I've looked into what you said and i found some potential fields but i'm really not sure on how to manage this without breaking the website. Let me exlain even further the issue here, Here is the plugin associated with Memberships and Users : - Woocommerce Subscriptions (WOOSUB) For a user to register, they need to buy a WOOCOMMERCE SUBSCRIPTION PRODUCT, THE WOOSUB PRODUCT assign the PMPRO MEMBERSHIP LEVEL to the user. The PMPRO MEMBERSHIP LEVEL then assign the BUDDYBOSS PROFILE TYPE (Member_type) to the user and finally the BUDDYBOSS PROFILE TYPE assign the WORDPRESS ROLE to the user. PMPRO Does also apply restrict content related to Buddyboss features. Everything works fine in ENGLISH but not in FRENCH. Its like as you said, something is not being copied somewhere preventing from restricted content features to be applied. I'm just not sure on what to COPY to make sure that everything works fine on both languages. Do you have an idea on how can i do this? Thanks again for the help! |
August 20, 2024 at 8:21 pm #16088216 | |
antoineC-28 |
Just to add further information : PMPRO membership levels doesnt need a translation, i just need the membership levels to be sync in both languages for them to apply the good member/profile type of Buddyboss while keeping the same restricted content on pages and buddyboss features. Profile/Member type of Buddyboss needs to be translated but only the text on the frontend not their database ID, it needs to be sync on both languages. The woocommerce subscription products are already translated Wordpress Role doesnt need translation just to be sync So when somebody is registering and buying a membership, i just want to make sure that the attribution is well done such as : Woosub product > Membership levels (PMPRO) > Profile/Member Type (Buddyboss) > WordPress Role I've reach out to Pmpro free support and let them know your thoughts |
August 21, 2024 at 1:57 am #16088524 | |
antoineC-28 |
Hi again! I think i might found a solution by myself since PMPRO is not compatible with WPML, there is a default social control options provided by BUDDYBOSS based on WORDPRESS Roles that would solve my problem for BUDDYBOSS features. About restricted pages, i think i might use WPFUSION access control instead. And use AUTOMATORWP to assign Profile/Member Type if a WOOCOMMERCE SUBSCRIPTION is bought by a user. I'll let you know how it goes tomorrow! Thanks again! If you have other solution let me know! |
August 21, 2024 at 5:03 am #16088651 | |
Prosenjit Barman Supporter
Languages: English (English ) Timezone: Asia/Dhaka (GMT+06:00) |
Hi There, If you're not translating the Membership Level, simply copying the Membership settings from the Subscription product to the French subscription product should work. This way, users who purchase the French subscription will have the same restrictions as those applied to the default Subscription product. As you know, the PMPRO Membership plugin is currently not compatible with WPML, so I'm not entirely sure about the exact name of the field that stores the Membership information. However, setting that field's translation preference to "Copy" should ensure that the Membership data is copied over to the translated product. You can try out the suggestion as well as the solution you found, and feel free to reach out if you have any questions or need further clarification. I'm here to help! Best regards, |
August 28, 2024 at 7:48 pm #16116963 | |
antoineC-28 |
Hi again! Sorry for the delay, i found a solution, i've uninstalled PMPRO About restricted pages, i use WPFUSION access control instead. And use AUTOMATORWP to assign Profile/Member Type and WordPress role if a WOOCOMMERCE SUBSCRIPTION is bought or switched by a user. The only issue that i would love to solve now is translating Buddyboss Profile Type while conserving the same ID in the Database. Is it possible? Because when i've looked into *POST TYPE TRANSLATIONS*, i saw the profile type as an option but when i checked to *TRANSLATABLE* it does create separate Profile type (one in english and the other in french) I would love to translate without having to duplicate in the other language the profile type. Thank you so much! |
August 29, 2024 at 10:07 am #16119286 | |
Prosenjit Barman Supporter
Languages: English (English ) Timezone: Asia/Dhaka (GMT+06:00) |
Hello There, Glad to hear that you've found a solution. When you translate a post or page using WPML, a separate instance of that post or page is created in the database with a different ID. If you want to translate BuddyPress profile types without changing the ID, unfortunately, this won’t be possible. If you want, you can set the translation preference for the profile type to "Translatable - use translation if available or fallback to default language." This will allow the default profile type to appear in the translation, ensuring everything continues to work smoothly and in sync. However, If you translate the Profile Type, you'll need to configure the translated profile type the same way as the default profile. I hope you can understand. Please feel free to let me know if you have any other queries or need clarification. I will be happy to help. Best regards, |
August 29, 2024 at 8:01 pm #16121886 | |
antoineC-28 |
Hi again! Thanks for the answer, I've tried your solution, but it still creates duplicated profile types for all languages preventing any good syncing or good functionalty with other plugins as well as preventing members to be shown on Buddyboss Members page because the profile type are not well configured this way. I just need to translate it as a string without having to duplicate just like a normal string translation. I saw a post related to this issue and the guy seems to have the same problem as me. hidden link Now the only for me to make it work is too write the label of the profile type in both languages and it can be fine for a DOUBLE language website but i'm planning to make a third language so it cant stay this way. Is there any way to translate the label only shown at frontend? |
August 29, 2024 at 8:05 pm #16121891 | |
antoineC-28 |
For example, I've created a new Profile Type name : TEST in ENGLISH and TESTEI in FRENCH. On a single profile, the profile type is being shown as ENGLISH whatever happens It really needs to be synced while the label on the frontend being translated! |
August 29, 2024 at 8:29 pm #16122024 | |
antoineC-28 |
https://wpml.org/forums/topic/buddyboss-profile-types-cannot-be-translated-with-wpml/ here the issue i was talking about that someone seems to have like me |
September 2, 2024 at 4:10 am #16129837 | |
Prosenjit Barman Supporter
Languages: English (English ) Timezone: Asia/Dhaka (GMT+06:00) |
Hello There, Thank you for providing the details. If the issue you're experiencing is the same as the one mentioned in the other ticket you shared, have you tried implementing the solution suggested in this response? I'd also like to inform you that we are aware of an issue with BuddyPress profile types where the profile fields do not appear translated on the frontend. Please refer to the Errata below for more details. - https://wpml.org/errata/buddypress-profile-fields-are-not-being-translated-on-the-frontend/ Could you please try the solution mentioned in the Errata and see if it resolves the issue? Please let me know the update. I will be happy to help if you need further assistance in this matter. Best regards, |
The topic ‘[Closed] Sync membership levels for both languages’ is closed to new replies.