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.

This topic contains 5 replies, has 2 voices.

Last updated by Yvette 4 years ago.

Assisted by: Yvette.

Author Posts
February 2, 2021 at 10:39 pm #7990963

amrosaab

Coupon dosent work for other language

when make the discount is applicable for for 1 brand only
it will work for 1 language only because it cant read the brand in the other language

can you fix this

February 3, 2021 at 9:41 am #7994075

amrosaab

for Example I have 1 Brand in English is (Apple) in Spanish its (manzana)

my coupon code (SS50) set to give discount 50% for this brand only (Apple)

it will work if the website is English only but if the website in Spanish it will show this coupon code (SS50) is not abdicable

February 3, 2021 at 5:37 pm #7999427

Yvette
Supporter

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

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

Hello

Temporary Access to your system
Please provide access to your system (wp-admin and ftp) so that I can further investigate this particular problem. The fields to provide this data are included in a private section that I will open for your next response. You can find it above the comments area. The information in this private section is only visible between WPML Support and you.

Please also tell me which product to test with and any coupon data I should use to see the issue.

Is this a development or live site? Am I permitted to temporarily activate/deactivate plugins as I troubleshoot this issue?

Thanks

February 4, 2021 at 1:46 pm #8007321

Yvette
Supporter

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

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

This seems to be a compatibility issue with the plugin that is providing you with the taxonomy "Brands". I suppose it is : YITH WooCommerce Brands Add-on Premium

Normally, we require the coupon to be "not translatable" and the different language views of the coupon details (i.e. usage restrictions) will place the language-dependent version of the product or category in the details depending on the active admin language when you edit the coupon.

However, in your case, the custom taxonomy "Brand" is not handled by WCML.
The only way I could get any coupon to be applied to an Arabic "Brand" was to :
- temporarily set the "Coupon" post type to be "Translatable".
- Then define a new coupon "Amnya2" with the Arabic language active and select the Arabic translation of "Amnya".
- Set the "Coupon" post type back to "Do not translate".

Now you can see that the coupon "Amnya2" is applied to the Brand.

I understand that this is not the solution you are looking for but it higlights the issue at hand which is that WCML and your "Brands" taxonomy are not compatible.

February 4, 2021 at 2:31 pm #8007959

amrosaab

Yes if i make it this way it will work

but I can make 2 coupons for 1 offer its not professional we need to make it 1 only

February 4, 2021 at 2:59 pm #8008209

Yvette
Supporter

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

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

Hello

Yes, I agree. As I stated earlier, this seems to be a compatibility issue with the plugin you have chosen to implement "Brands".

We have other solutions that you can try (see image).
https://wpml.org/plugin/

These are tested as compatible with WCML solution.

If you insist on using the plugin you already have, I have to warn you that the compatibiltiy process can be long and may not ever reach a resolution. We require a working relationship with the plugin author, a sufficient market demand from our clients, and that the issue not be so complex to resolve.

The process asks that you recreate the issue on a new sandbox site that I will provide. I will confirm the issue and then escalate it to our compatibility team who will then decide whether to investigate it/resolve it or not.

For this reason, I would suggest if you could see if another plugin that is already tested might work for your installation.

I wait for your news and if I should provide to you a sandbox site to begin the compatibility process.

OtherBrandsSolutions.png