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.
Tagged: Compatibility, Known issue
This topic contains 24 replies, has 3 voices.
Last updated by Diego Pereira 1 year, 10 months ago.
Assisted by: Waqas Bin Hasan.
Author | Posts |
---|---|
August 3, 2023 at 6:02 am #14145699 | |
Waqas Bin Hasan WPML Supporter since 05/2014
Languages: English (English ) Timezone: Asia/Karachi (GMT+05:00) |
Thank you for your detailed tests and observations. I'm consulting with the team and 'll get back to you accordingly. |
August 3, 2023 at 4:15 pm #14150939 | |
mariaA-45 |
Hi Waqas, After reviewing my previous comment, I must admit that my final conclusion came out wrong. I shouldn't have written that "WPML doesn't work for WooCommerce Memberships". WPML clearly does something with WooCommerce Memberships ... perhaps, as part of this ticket, your team could publish some details about the actual, scoped integration features, so it becomes easier for me (and others out there) to understand and review that feature set rather than assuming certain behaviours and then be dissappointed by the reality. Either case, thanks for working with me on this issue! Appreciated! Best, |
August 3, 2023 at 5:07 pm #14151179 | |
mariaA-45 |
Just for clarity: at the very heart of it, I was hoping for the following scenario to be supported by the integration between WPML and WooCommerce Memberships: As initially described, my customers are buying WooCommerce products to get access to "premium" pages that are otherwise hidden from the public. This works already in one main language and now I want to translate the entire website to secondary languages to be able to offer my premium content to an international audience. Now, here's what I specifcally hoped for: 1) If a customer buys a trigger product in a particular language, then the customer will not only be able to access the according premium content page in that same language, but also all translated pages of that same premium content. So on the surface, a customer should be (transparently) enrolled in all translations of that membership plan. 1a) If I later on add a new language to the WPML config and a new Membership Plan translation for that new lanuage, then the premium content should be automatically available to all existing customers in that new language. 2) The customer should be able to review the original purchase record in the my-account area. Please remember that product translations can have widely varying prices, so we need a fixed record of what the customer originally purchased and at what price. 3) The customer should be able to review the membership enrollment details in the my-account area and the displayed information should be complete independently of the currently diplayed language. I hope this makes sense! LMK! |
August 4, 2023 at 7:08 am #14153075 | |
Waqas Bin Hasan WPML Supporter since 05/2014
Languages: English (English ) Timezone: Asia/Karachi (GMT+05:00) |
Thank you for the updates, meanwhile I am still waiting for some feedback from our team about your previous and the recent updates. We recently had another report about this plugin, but, for a certain part (Restrict Content), where we offered this solution https://wpml.org/forums/topic/override-or-delete-conditions-on-restrict-content-woocommerce-membership/page/2/#post-14138891. Since you mentioned about that area particularly recently, I suspect if this may also be relevant in your case. Can you please check that thread and apply that workaround on your site (in addition to the previously suggested)? And review your recent points, specially #1, #1a and #3. About #2, I think that all depends on how WC orders are stored and then later on presented in members area, like receipts and previous purchases. These tend to be stay fixed at time of purchase and should reflect the same amounts when bought. Please let me know after applying the fix mentioned in the other thread. |
August 7, 2023 at 8:53 am #14161991 | |
mariaA-45 |
I just tried the work-around linked above in my staging environment. It doesn't seem to solve a lot, though (anything?). That whole ticket seems to circle around how WPML handles membership page-restrictions, when pages protected by these page-restrictions are deleted. I'm not sure that has to do with what I am seeing. Did you hear back from your dev team, yet? I don't want to be overly pushy, but I really need to move on. Since it seems that neither you or I can figure out intuitively how to set up multi-lingual memberships properly, I would like to respectfully ask for a firm response to these questions: - Is my use-case being supported by design (yes or no)? Best, |
August 7, 2023 at 11:05 am #14163091 | |
Waqas Bin Hasan WPML Supporter since 05/2014
Languages: English (English ) Timezone: Asia/Karachi (GMT+05:00) |
Thank you Maria for taking time to check for the workaround. I totally understand your concerns and 've contacted again with my team about it. Our apologies for the delay due to the weekend. I'll get back to you as soon as I hear back. Thanks again for your patience and cooperation. |
August 7, 2023 at 6:16 pm #14165801 | |
Diego Pereira Supporter
Languages: English (English ) Spanish (Español ) Portuguese (Brazil) (Português ) Timezone: America/Sao_Paulo (GMT-03:00) |
Hello Maria, this is Diego from the WPML Compatibility team. First, let me try to answer your questions from the following reply: https://wpml.org/forums/topic/woocommerce-memberships-enrollment-not-working-for-translated-woocomm-products/page/2/#post-14151179
However, during the investigation, we found that the same was not happening when purchasing the product through the second language (Issue #3). We provided a workaround and escalate the issue to our development team. 1a) If I later on add a new language to the WPML config and a new Membership Plan translation for that new lanuage, then the premium content should be automatically available to all existing customers in that new language. - The translations are handled as different products, so the original/translated memberships are assigned to the user at the time of purchase (e.g. when buying the original, the user also gains access to the existing translations). Because of that, if we add a new language AFTER the user has purchased the product, I think it would not work this way (only for new users/purchases). For existing users, it would be needed to assign the new translations manually. 2) The customer should be able to review the original purchase record in the my-account area. Please remember that product translations can have widely varying prices, so we need a fixed record of what the customer originally purchased and at what price. - Yes, the user should be able to check the order history. I did a quick test and added a screenshot on how it works (see attached). 3) The customer should be able to review the membership enrollment details in the my-account area and the displayed information should be complete independently of the currently diplayed language. Do these answers clarify your doubts? Issues about restricted content You mentioned that you are having problems with restricted content, but at the moment it is not clear what this problem is. So far, we are aware of 2 issues: - Restrict Content conditions applies to all pages across the site: This is a known issue that is escalated to our developers. We created a errata with the details and workaround here: https://wpml.org/errata/woocommerce-memberships-restrict-content-conditions-applies-to-all-pages-across-the-site/ Beside these 2 issues, is there anything else that you are experiencing related with restricted content? If so, what are the steps to reproduce? |
August 8, 2023 at 9:41 am #14168055 | |
mariaA-45 |
Hi Diego and thanks for your response - all read and understood. Wrapped in a lot of text, you confirm that there is an issue with enrolling customers in the respective memberships when purchasing translated products. This is the core of this issue, hence the title of this ticket. The work-arounds you presented in this ticket are merely debugging tools. When applying them to your sandbox, we could not show that they even solve the issue. Even if they did, then I would certinaly not consider such work-arounds validated production level code changes. I must thus ask one more time for a timeline of when a official fix will be available. Thank you! |
August 8, 2023 at 1:10 pm #14169471 | |
Waqas Bin Hasan WPML Supporter since 05/2014
Languages: English (English ) Timezone: Asia/Karachi (GMT+05:00) |
Thanks for the updates Maria, I've relayed your message to Diego and we'll get back to you as soon as possible. |
August 8, 2023 at 6:29 pm #14171895 | |
Diego Pereira Supporter
Languages: English (English ) Spanish (Español ) Portuguese (Brazil) (Português ) Timezone: America/Sao_Paulo (GMT-03:00) |
Hello Maria, About the workaround: About the official fix: I talked to our development team and asked them to increase the priority, so we're going to include this specific fix in WCML version 5.3.0 (expected to be released between September and the end of the year). |
August 10, 2023 at 6:56 am #14179453 | |
mariaA-45 |
For what it's worth: I don't think that copy-pasting bits and pieces into the code base of other plugins is a solution, though. And waiting for months for an actual solution isn't the kind of product or support level that I can be relying on. Thank you for all your help, though! |