Skip Navigation

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

Problem:
The client reported an issue with WooCommerce Multilingual & Multicurrency where coupon codes were not consistently applying to orders. The problem seemed to occur intermittently, requiring multiple attempts to apply a coupon.

Solution:
For the coupon application issue, the client identified a compatibility problem with the PixelYourSite plugin. The solution involved reconfiguring PixelYourSite by turning off form_event tracking, which resolved the issue, although it may not be a perfect solution.

We also informed the client that the PixelYourSite plugin is not on our compatibility list and suggested checking with the plugin's support. We encouraged the plugin authors to join WPML’s Go Global program to ensure compatibility with WPML. For more information, visit Go Global program.

If this solution does not seem relevant to your situation, please open a new support ticket at WPML support forum.

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 3 replies, has 2 voices.

Last updated by Waqas Bin Hasan 1 year, 4 months ago.

Assisted by: Waqas Bin Hasan.

Author Posts
December 8, 2023 at 5:34 pm #15027567

marcinK-23

Hi,

I have an issue with WooCommerce Multilingual & Multicurrency. If the plugin is active coupon codes do not apply to the orders every time they should. I. e. user tries to apply the coupon, repeats, repeats, and repeats, sometimes three times, sometimes ten times and finally it applies - sometimes. There are also cases when you can apply the coupon several tens of times but it doesn't get applied to the order.

If I deactivate the plugin, everything works fine and normal.

You can take a look at the screen recording: hidden link

Could you please help me with fixing the issue? What could be the cause of the problem?

Best
Marcin

December 11, 2023 at 8:07 am #15033439

Waqas Bin Hasan
WPML Supporter since 05/2014

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Hello Marcin,

Thank you for contacting the support.

I tried to watch the screen recording but getting an access denied.

However, before proceeding further, may I ask you to try the following?

IMPORTANT: Take full backup of your website and database beforehand. It is highly advised to try the following on a staging/dev site first, so your live website isn't compromised.

- Deactivate all plugins except WPML, WooCommerce and the coupon plugin and check for the issue.
- Activate each plugin one-by-one, while keeping check on the issue after a plugin is activated. This way you'll be able to pinpoint a plugin having a conflict (or problem), if any.
- If the problem persists, repeat the above steps with a default theme of WordPress (i.e. 2021 or 2023).

Please let me know and I'll try my best to further help you on the matter.

Regards.

December 13, 2023 at 12:38 pm #15054559
marcinK-23

Hello,

thank you for your message. I have done as you suggested, even on the staging environment and actually found the reason - it was some compatibility issue with PixelYourSite and WPML (turning off one of them - PixelYourSite or WooCommerce Multilingual & Multicurrency) so I have reconfigured - turned of form_event tracking in PixelYourSite and maybe it is not a perfect solution but works.

In the meantime I have found another issue with the newest version of WooCommerce Multilingual & Multicurrency. It causes that in secondary language, after checkout, when user wants to proceed to the payment he or she is redirected to the address of the primary language causing 404 error. Downgrading to the previous version of your plugin solves the issue. Do you know about that?

Best
Marcin

New threads created by Waqas Bin Hasan and linked to this one are listed below:

https://wpml.org/forums/topic/split-proceeding-to-payment-user-is-redirected-to-primary-language-causing-404-error/

December 14, 2023 at 4:32 am #15060545

Waqas Bin Hasan
WPML Supporter since 05/2014

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Thank you for the updates and glad it was fixed.

The PixelYourSite plugin isn't on our compatibility list (https://wpml.org/plugin/), so you may also check with the plugin support.

Theme and plugin authors are welcome to join WPML’s Go Global program, which helps them make their code multilingual ready. Together with WPML’s compatibility team, they can test and confirm that their theme or plugin works with WPML. See https://wpml.org/documentation/support/go-global-program/ for details and you can refer your theme/plugin provider to this as well.

Please feel free to mark this ticket as resolved if you don't need more help. Or you can keep it open if you want to share any info from the 3rd party plugin support for us.

For the other issue regarding checkout and payment redirection, I've split it into a new ticket: https://wpml.org/forums/topic/split-proceeding-to-payment-user-is-redirected-to-primary-language-causing-404-error/ because as per forum policy we can only handle one issue per ticket. So you can get more to the point help, without mixing up several issues in one long ticket.

December 14, 2023 at 11:23 am #15062633

marcinK-23

Thank you very much for your help, provided links and splitted issue 🙂