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
- 8:00 – 13:00 9:00 – 13:00 9:00 – 13:00 8:00 – 12:00 8:00 – 12:00 -
- 14:00 – 17:00 14:00 – 18:00 14:00 – 18:00 13:00 – 17:00 13:00 – 17:00 -

Supporter timezone: Europe/Zagreb (GMT+01:00)

Tagged: 

This topic contains 0 replies, has 0 voices.

Last updated by Bruno Kos 2 days, 22 hours ago.

Assisted by: Bruno Kos.

Author Posts
February 4, 2025 at 11:05 am

ilariaG-3

Background of the issue:
I am trying to resolve an issue with discounts in both production and staging environments. The issue seems to be related to the compatibility between WPML and WooCommerce Memberships. I have noticed that the system still detects discounts associated with the 'Baby' membership, even though they have been deleted. Additionally, when trying to add a new discount in the WooCommerce product edit screen, a non-editable row is generated. Disabling WPML resolves the issue. . The issue can be seen at: hidden link and hidden link

Symptoms:
The system detects non-existent discounts associated with the 'Baby' membership. A non-editable row is generated when adding a new discount in the WooCommerce product edit screen. The issue disappears when WPML is disabled.

Questions:
Why does the system still detect discounts that have been deleted?
Why is a non-editable row generated when adding a new discount?

February 4, 2025 at 11:51 am
February 4, 2025 at 11:54 am #16666455

ilariaG-3

Please delete the password in previous post

February 4, 2025 at 12:28 pm #16666616

Bruno Kos
Supporter

Languages: English (English ) German (Deutsch ) French (Français )

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

I removed them, can you recreate it again?

February 4, 2025 at 1:22 pm
February 4, 2025 at 2:11 pm #16667238

Bruno Kos
Supporter

Languages: English (English ) German (Deutsch ) French (Français )

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

I am checking this with our Compatibility team and will keep you posted.

February 5, 2025 at 12:09 pm #16670898

ilariaG-3

Thank you.
Let me know as soon as you have any updates.
Good work and have a nice day.

February 6, 2025 at 7:37 am #16673755

Bruno Kos
Supporter

Languages: English (English ) German (Deutsch ) French (Français )

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

On this sandbox:
hidden link

Can you reproduce this with one type of the discount only?

Please install WooCommerce Memberships and try reproduce it with one discount/product only, as given the amount of discounts and rules in your site, it is quite difficult to understand where the issue is.

February 6, 2025 at 3:14 pm #16676272

ilariaG-3

Forgive my bluntness, but that would be too easy.

Of course, everything works fine when starting from scratch.
I already told you that in my environment, creating a new product doesn’t cause this issue.

However, I also demonstrated that even if I remove all discounts from the "Plans" view in WooCommerce Memberships, they still appear in the products.
I also mentioned that if I disable the WPML plugin, WooCommerce Memberships magically works as expected.

Can’t you ask L2 to check my staging environment? You, better than anyone else, know the data model and what your plugin interacts with.

February 8, 2025 at 5:41 pm #16682918

Bruno Kos
Supporter

Languages: English (English ) German (Deutsch ) French (Français )

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

I understand. That being said, to troubleshoot this problem, I'll install the Duplicator plugin and generate packages for further debugging purposes. I'll ensure to exclude all media files to maintain a minimal package size.

You can find more information about the process here: https://wpml.org/faq/provide-supporters-copy-site.

Please confirm if this approach is acceptable to you.

February 11, 2025 at 8:34 am #16690294

ilariaG-3

Thx Kos
Please procede

February 11, 2025 at 11:13 am #16691111

Bruno Kos
Supporter

Languages: English (English ) German (Deutsch ) French (Français )

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

This has been escalated to our 2nd tier team team and may take some debugging time, I'll get back to you as soon as I have any news or questions for you.