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?
Languages: English (English )German (Deutsch )French (Français )
Timezone: Europe/Zagreb (GMT+02: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.
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.
Languages: English (English )German (Deutsch )French (Français )
Timezone: Europe/Zagreb (GMT+02: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.
Languages: English (English )German (Deutsch )French (Français )
Timezone: Europe/Zagreb (GMT+02: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.