Skip Navigation

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 – 18:00 9:00 – 18:00 9:00 – 18:00 9:00 – 18:00 9:00 – 18:00
- - - - - - -

Supporter timezone: America/Lima (GMT-05:00)

This topic contains 31 replies, has 3 voices.

Last updated by Andreas W. 1 year, 5 months ago.

Assisted by: Andreas W..

Author Posts
August 17, 2023 at 11:06 am #14245313

martinH-119

We are running an e-learning membership site using WPML along with WooCommerce Subscriptions, Memberships for WooCommerce and Teams for Memberships.
It has been running fine for a couple of years, but we are encountering some issues that seem to relate to WPML, as they are not present, when WPML is not active.
The site is set up in Danish and English. English is only for members who are not good at Danish, so they need both. It is only possible to purchase the Danish subscriptions, and that provides acccess to an English translation. If the customer tries to purchase on the English page, they are directed to the Danish Page.
1. When customers try to adjust (add or remove) the number of seats on their account, there is a tendency for the subscription to switch to the English subscription. As a result, they end up having to pay more or they are not able to adjust the number of seats.
2. We are using CPT to add several groups of content. In each group, some of the content is public and some of it is restricted to the membership. This has worked fine, but suddenly everything in a CPT group has become restricted if one piece of content is restricted.
3. The Admin of an account can set a member to act as a manager. This provides access to add and remove members from the account. This has also worked, but now the manager does not get the rights to see other members and adjust their access. The role is given to the member, but nothing happens, when WPML is active.

We have a staging site for testing purposes, if you need access.

August 18, 2023 at 11:59 am #14252249

Alejandro
Supporter

Languages: English (English ) Spanish (Español ) Italian (Italiano )

Timezone: Europe/Rome (GMT+01:00)

Hello!

I'll be helping you out until a supporter takes your case.

1) What you mention seems to be using some custom code to redirect users when needed and other similar features. can you confirm this is the case and give us more information on what exactly are you doing to achieve what you described?

2) If instead they are features provided by an e-learning plugin or similar, and if that's the case, can you point out which features are you using to create these redirections that are not working?

3) let's focus for now on the redirections because it seems to be the main issue here. i suppose the clients click on a button or a link to go to a page, that is set to go to a specific language. how is that section created? is it created via a template, code, shortcode or something else?

Thanks in advance for this information.

---------------

WPML needs a minimum of 128MB of memory to work correctly and it seems you are not meeting this requirement so let's start with this in the meantime.

Kindly add this code into your wp-config.php file, right after the database information:

 

define ('WP_MEMORY_LIMIT', '256M');
define ('WP_MAX_MEMORY_LIMIT', '256M');

Then check if by any chance the problem disappears or changes and let us know.

August 18, 2023 at 12:14 pm #14252375

martinH-119

Hi Alejandro,

1. The functionality is built into the WooCommerce Subscriptions, WooCommerce memberships and Teams for WooCommerce memberships plugins. The customer has a dashboard, where they can adjust the number of seats for their subscription. The issue we are trying to figure out is how WPML can cause the subscription to switch between the two translations of the subscription product when seats are adjusted.

When they first purchase the subscription on the public site, they can purchase it on the Danish language pages - it is an Elementor pop up that contains the subscription product. If they go to the English language page, instead of the product there is a text box with a link back to the danish page. So there is no way to purchase the english version of the product. The issue only arises when they already have a product and want to increase og decrease they amount of seats. Then they go to their dashboard - adjusts the number and go through the check out. In this case, sometimes, WPML seems to affect a subscription switch to the english language version of the subscription, which results in the price being calculated wrong and the cutomer to have both subscriptions recorded in the backend.

The memory limit has been adjusted.

August 19, 2023 at 6:16 pm #14257137

Andreas W.
Supporter

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

Hello,

Thank you for the provided information.

First, please go to WPML > Settings > Custom Field translation and check for any available fields, that could be relative, like such fields that refer to "seats" for example.

Make sure that any important field that refers to a setting of your subscriptions or memberships is set to "copy".

Guide:
https://wpml.org/documentation/getting-started-guide/translating-custom-fields/

Also, please check WooCommerce > WooCommerce Multilingual & Multi-Currency for any given configuration issues and if you find some of them and do not know how to solve them, then please send me a screenshot of the message(s).

Also, this problem could actually be related to this known issue between WooCommerce Memberships and WCML.

Please read this errata, apply the provided workaround, and then let me know if you are still experiencing issues:

https://wpml.org/errata/woocommerce-memberships-does-not-assign-membership-when-purchasing-a-product-in-a-secondary-language/

Best regards
Andreas

August 21, 2023 at 1:31 pm #14264553

martinH-119

Hi Andreas,
There are no specific seat related custom field which are not set to copy, but there are some that relates to check out, etc. They have been changed - but would it be better for you to get access to our staging site, to have a look? The same fores for the WooCommerce Multilingual & Multi-Currency. It looks right, and it is only for the physical webshop products, which is only available in Danish that we can see missing translations (on purpose). But again - it might be easier if you can verify that based on your experience?

August 21, 2023 at 1:33 pm #14264561

martinH-119

In regard to the workaround - we have not experienced that the membership details are missing, only that the order related to the translated version of the membership - which should not be possible as it is not available to purchase on the site. So it seems unlikely to relate to that workaround.

August 22, 2023 at 5:53 pm #14273167

Andreas W.
Supporter

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

Hello,

Indeed, I would like to offer to have a closer look at the problem and request temporary access (wp-admin and FTP) to the staging site to investigate this issue further.

You can find the required fields below the comment section when you log in to leave the next reply. The information you provide is private, which means only you and I can see and access it.

IMPORTANT
Please be sure to make a backup copy of the website and database before allowing us access.
If you can't see the wp-admin / FTP fields, your post and website credentials are set as PUBLIC. DO NOT publish the data unless you see the required wp-admin / FTP fields.

The private response form looks like this:
hidden link

Next time you reply, click "I still need assistance."

Video:
hidden link

Please note that we are obliged to request this information individually on each ticket. We may not access any access information not specifically submitted on this ticket in the private response form.

Best regards
Andreas

August 24, 2023 at 9:23 pm #14288289

Andreas W.
Supporter

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

Hallo,

Ich habe unter WPML > Settings > Custom Field Translation > "Show system fileds" folgende Felder gefunden:

_subscription_payment_sync_date
_wc_memberships_for_teams_has_team_membership
_wc_memberships_for_teams_pricing
_wc_memberships_for_teams_min_member_count
_wc_memberships_for_teams_max_member_count
_wc_memberships_for_teams_plan
_subscription_one_time_shipping

Wenn ich nun das Team im Backend editiere und dann auf die Kontoseite gehe, dann sehe ich die gleichen Angaben in beiden Sprachen und kann ebenso Einladungen versenden.

Sollte weitere Hilfe notwendig sein, dann lass es mich bitte wissen.

Mit freundlichen Grüßen
Andreas

August 28, 2023 at 6:52 am #14297429

martinH-119

Hi Andreas,
Thanks for the reply.
We are testing to see if it changes anything. We do have a related issue. When a member on the website is set as a team manager, they should be able to see other members, invite members, and delete members. But they do not get their new role access when WPML is active. It works when it is not. We have tested again after the above adjustments, but it still does not work. Do you have a solution for that?

August 30, 2023 at 12:21 am #14309527

Andreas W.
Supporter

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

Hello,

Please take kindly note that we try to handle only one issue per ticket.

Could you please confirm if the suggestion from my prior comment solves the main issue of this ticket, which was that members' subscriptions were not visible in both languages?

If so, then I can offer to create a new ticket for the issue with the user capabilities when using Team Managers.

Best regards
Andreas

August 30, 2023 at 9:28 am #14311861

martinH-119

Hi Andreas,
I believe these issues are related, so maybe it makes sense to keep them together?

Among the three issues, the one where licenses are shown wrong on some accounts seems to be better - at least on the existing account where we noticed the issue.

We do still experience both the Team Manager role access issue and the issue where if we restrict the content of one post in a custom post type, then all posts are restricted. This also goes away, when WPML is not active.

August 30, 2023 at 10:49 am #14312549

Andreas W.
Supporter

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

Hello,

We always create one ticket per issue and we are in fact handling various issues here that somehow all relate to the same plugin.

The reasons why we separate the issues are:

- It will be easier for other users of the forum to find an answer for a similar issue

- We might need to escalate an issue internally which we need a unique ticket

- The support agent or user of the forum might lose the overview and the ticket might take longer to solve than necessary

This is why it is more effective to only handle one issue per ticket.

Please take note that we do have a national holiday here in Peru today.

In case you would not like to wait until Thursday, I would like to encourage you to open new tickets on the forum for any further issues and mark this ticket as resolved, as issue 1) was solved on this ticket.

I hope for your understanding.

Best regards
Andreas

September 6, 2023 at 6:50 am #14348749

martinH-119

Hi,
Have you had time to look into the issues once back?

September 6, 2023 at 11:53 pm #14355297

Andreas W.
Supporter

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

Hello,

Please revise WooCommerce > WooCommerce Multilingual & Multi-Currency for issues.

I had to adjust the source language for the permalinks inside the WPML Permalink Settings and then translate the Store URLs for Shop and Products.

Take note, that we handled an issue with subscriptions not working as expected and currently they are showing up on the account page in English I am also able to change the seats of the team.

I also can send invitations to new members.

Also, I can change members to managers or remove them from here:

hidden link

I do not see any issue on the Staging.

Please revise and confirm.

Best regards
Andreas

September 8, 2023 at 9:36 am #14365413

martinH-119

Hi Andreas,

I see what you mean in relation to the product slug permalink setting being set as primarily English. Others on that list - such as the endpoints also has English as the primary language - where is that changed, so we can set Danish as the primary language for all slugs?

It is not a problem to set someone as a team manager - they get the role in the backend - the issue is that they do not get the rights.

What about the content restriction issue, where when we restrict one piece of content all posts in that CPT is restricted?

The topic ‘[Closed] WPML causes subscriptions switch when adjusting subscriptions.’ is closed to new replies.