Skip to content Skip to sidebar

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

Problem:
The client is experiencing issues with the Russian checkout page on their WooCommerce site. While the checkout pages in Estonian and English are functioning correctly, the Russian page is visually off and continues to load indefinitely.
Solution:
We discovered that the checkout page template in Russian might not have been translated correctly. If you're experiencing this, we recommend checking if the template was built with Elementor and ensuring it's correctly translated. Additionally, the client managed to implement a temporary fix by modifying the

wc_get_terms_and_conditions_checkbox_text()

function in the WooCommerce plugin files to ensure proper link handling in terms and conditions. This change was made in the

wc-template-functions.php

file.

Please note that this solution might be outdated or not applicable to your case. We highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If the issue persists, please open a new support ticket.

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

Last updated by mattiasR-3 1 year, 10 months ago.

Assisted by: Itamar.

Author Posts
June 25, 2024 at 12:52 pm #15820857

mattiasR-3

Background of the issue:
I am trying to add something to the cart on my site hidden link. Everything works fine in Estonian (EST) and English (ENG), but not in Russian (RUS). The Russian checkout page (hidden link) is visually off and keeps loading.

Symptoms:
The Russian checkout page is visually off and keeps loading, while the Estonian and English checkout pages work fine.

Questions:
Why is the Russian checkout page not working after updating everything, including PHP to version 8.3?
What can I do to fix the Russian checkout page issue?

June 25, 2024 at 1:08 pm #15821154

Itamar
WPML Supporter since 02/2016

Languages: Hebrew (עברית )

Timezone: Asia/Jerusalem (GMT+03:00)

Hi,

If you need further help with this, please share the access details to your site with me.
I'm enabling a private message for the following reply.

Privacy and Security Policy
We have strict policies regarding privacy and access to your information. Please see:
https://wpml.org/purchase/support-policy/privacy-and-security-when-providing-debug-information-for-support/
**IMPORTANT**
- - Please backup the site files and database before providing us access. --
-- If you have a staging site where the problem can be reproduced, it is better to share access to the staging site.--

Regards,
Itamar.

July 1, 2024 at 10:38 am #15867813

mattiasR-3

I actually hacked through it (though still don't know how could it be for 1 language only) with:

- within wp-content/plugins/woocommerce/includes/wc-template-functions.php change old code to: (for me it was line 845 in log errors)

function wc_get_terms_and_conditions_checkbox_text() {
$text = sprintf(
/* translators: 1: opening terms and conditions link tag, 2: closing terms and conditions link tag */
__( 'I have read and agree to the %1$sterms and conditions%2$s', 'woocommerce' ),
'',
'
'
);
return apply_filters( 'woocommerce_get_terms_and_conditions_checkbox_text', $text );
}

... and deleted the orginal code for this.

---

Still not sure why this didn't work but maybe it was because Russina URL's include so much odd code that just got "stuck" somewhere. But that was my quick fix for that.