Skip Navigation

This thread is resolved. Here is a description of the problem and solution.

Problem:
[Product Category Discount] When the language is switched to the second language on the same product discount does not apply.

Solution:

1- Go to Product Category Discount
2- Make sure to apply the discount to categories in all languages

Please check this reply. (https://wpml.org/forums/topic/product-category-discount-when-the-language-is-switched-to-russian-on-the-same-product-discount-does-not-applied/#post-13540591)

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: 

This topic contains 7 replies, has 2 voices.

Last updated by maksimasC 1 year, 10 months ago.

Assisted by: Osama Mersal.

Author Posts
April 14, 2023 at 8:47 am #13471707

maksimasC

Thank you, this was fixed. I found another issue. I use the plugin "Product Category Discount"
to make discounts for the whole product category. So it works when the language is Latvian, but when the language is switched to Russian on the same product discount does not applied.
For example this: hidden link

April 16, 2023 at 12:35 pm #13481595

Osama Mersal
Supporter

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+02:00)

Hi,

Thanks for contacting WPML forums support. I'll be glad to help you today.

First of all, sorry for the late reply due to a higher workload. Please log in to this sandbox site and upload the "Product Category Discount" plugin. (hidden link)

After that, please create discount rules to replicate the issue. If the issue is replicable, please let me know how to reproduce it to check it and consult our compatibility team.

2) Could you please share your Debug information with me?
You can read a detailed explanation about it here. (http://wpml.org/faq/provide-debug-information-faster-support)
The debug info will give me a lot of information about how your site is configured.

Best regards,
Osama

April 16, 2023 at 6:52 pm #13482351

maksimasC

Still not work

April 16, 2023 at 9:54 pm #13482591

Osama Mersal
Supporter

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+02:00)

Hi,

I installed the WooCommerce Multilingual plugin, created a post, and translated it. After that, I applied the discount to the categories in all languages.

When visiting the products in all languages, you will see the discount. (Kindly check the attached screenshot)

Kindly check the sandbox and let me know if the issue is replicable.

Best regards,
Osama

2.jpg
April 19, 2023 at 4:18 am #13501245

maksimasC

I have disabled all plug-ins apart wpml, cleared cache but discount not applied in Russian translation

April 19, 2023 at 11:26 am #13504209

Osama Mersal
Supporter

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+02:00)

Hi,

Thanks for your update. I would need to look closely at your site, so I would need to request temporary access (WP-Admin and FTP)
– preferably to a test site where the problem has been replicated if possible –
in order to be of better help and check if some configurations might need to be changed.

Your next answer will be private, which means only you and I can access it.

❌ Please backup your database and website ❌

✙ I would need your permission to de-activate and re-activate the Plugins and the Theme and change configurations on the site. This is also a reason the backup is critical.

✙ I also need your permission to take a local copy of your site to debug the issue without affecting your live site.

Best regards,
Osama

April 26, 2023 at 11:27 am #13540591

Osama Mersal
Supporter

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+02:00)

Hi,

Thanks for the access details. I checked your site and found that the discount is not applied to the Russian category. (Kindly check the attached screenshot)

After applying it, the discount worked correctly. Kindly check this product. (hidden link)

I hope this helps you. If you need further info, please let me know.

Best regards,
Osama

1.jpg