[Resolved] Place order button not showing on translate language
This thread is resolved. Here is a description of the problem and solution.
Problem: The client was unable to see the 'Place Order' button on the WooCommerce checkout page when viewing the site in the Arabic language. A PHP fatal error related to an unknown format specifier was identified in the debug log. Solution: We resolved the issue by following the steps outlined in our documentation on PHP 8 PHP Fatal error: Uncaught ValueError: Unknown format specifier in. The specific string causing the issue was located in the file
on line 44. We re-translated the string in WPML > String Translation, ensuring that the placeholder tags "%1$s" and "%2$s" were kept the same in the translation.
If you're experiencing a similar issue, we recommend you try the same solution. However, please note that this solution might be irrelevant if it's outdated or not applicable to your case. If the problem persists, we highly recommend checking related known issues on WPML Known Issues, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. Should you need further assistance, please do not hesitate to open a new support ticket in the 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.
If it does not help, I would like to request temporary access (wp-admin and FTP) to your site to take a better look at the issue. It would be better to have a testing site where the issue is replicated. Your next reply is set to private to share the info.
"Since your browser does not support JavaScript, or it is disabled, please ensure you click the %1$sUpdate Totals%2$s button before placing your order. You may be charged more than the amount stated above if you fail to do so."
in WPML > String Translation. You should keep the same placeholder tag "%1$s" and "%2$s" in the translation string.
- Go to WPML > String Translation > Search for the keyword "Since your browser does not support JavaScript".
- Re-translate the string and keep the placeholder in the translation string. For example:
نظرًا لأن متصفحك لا يدعم JavaScript، أو أنه معطل، يرجى التأكد من النقر فوق الزر %1$s تحديث الإجماليات %2$s قبل تقديم طلبك. قد يتم تحصيل رسوم منك أكثر من المبلغ المذكور أعلاه إذا فشلت في القيام بذلك .
We use cookies to optimize our website and services. Your consent allows us to process data such as browsing behavior. Not consenting may affect some features.
Functional
Always active
Required for our website to operate and communicate correctly.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
We use these to analyze the statistics of our site. Collected information is completely anonymous.The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
These cookies track your browsing to provide ads relevant to you.