woocommerce and The coupon code language is inconsistent
-
Woocommerce has set the traditional language, but the coupon module displayed on the shopping cart and checkout page is in English. How can I set it to be displayed in traditional Chinese?
-
Hi @tmin
I understand that your site is in Chinese but the coupons are displayed in English.
Just to check – are you using a plugin for the coupons?
In order for us to get a better idea of your setup, could you please share a copy of your site’s System Status? You can find it via WooCommerce > Status. Select “Get system report” and then “Copy for support”. Once you’ve done that, paste it here in your response.
I the meantime you can go through the documentation: https://woocommerce.com/document/coupon-management/
Depending on the plugins your site has, some text could be generated from other plugins and not only from WooCommerce. You can use Loco Translate and then select that specific plugin/theme to find, select and translate the texts according to your needs.
Thanks
I use the coupon function of woocomerce
Hi @tmin
Thanks for confirming.
Please share the system status as requested above, and also your site URL, so that we can replicate the issue our end.
### WordPress Environment ### WordPress address (URL): https://kwong-tai.com.hk Site address (URL): https://kwong-tai.com.hk WC Version: 6.4.1 REST API Version: ? 6.4.1 WC Blocks Version: ? 7.4.2 Action Scheduler Version: ? 3.4.0 WC Admin Version: ? 3.3.2 Log Directory Writable: ? WP Version: 5.9.3 WP Multisite: – WP Memory Limit: ? 40 MB - 我們建議 WooCommerce 至少設定 64MB 的記憶體。請看: 增加 PHP 的記憶體配額 WP Debug Mode: – WP Cron: ? Language: zh_TW External object cache: – ### Server Environment ### Server Info: Apache PHP Version: 7.4.28 PHP Post Max Size: 60 MB PHP Time Limit: 120 PHP Max Input Vars: 1000 cURL Version: 7.64.0 OpenSSL/1.1.1n SUHOSIN Installed: – MySQL Version: 5.7.36-39-log Max Upload Size: 60 MB Default Timezone is UTC: ? fsockopen/cURL: ? SoapClient: ? DOMDocument: ? GZip: ? Multibyte String: ? Remote Post: ? Remote Get: ? ### Database ### WC Database Version: 6.3.1 WC Database Prefix: wp_ 總資料庫大小: 19.04MB 資料庫資料大小: 17.53MB 資料庫索引大小: 1.51MB wp_woocommerce_sessions: 資料:0.51MB + 索引:0.02MB + 引擎 MyISAM wp_woocommerce_api_keys: 資料:0.00MB + 索引:0.01MB + 引擎 MyISAM wp_woocommerce_attribute_taxonomies: 資料:0.00MB + 索引:0.00MB + 引擎 MyISAM wp_woocommerce_downloadable_product_permissions: 資料:0.00MB + 索引:0.00MB + 引擎 MyISAM wp_woocommerce_order_items: 資料:0.00MB + 索引:0.00MB + 引擎 MyISAM wp_woocommerce_order_itemmeta: 資料:0.02MB + 索引:0.02MB + 引擎 MyISAM wp_woocommerce_tax_rates: 資料:0.00MB + 索引:0.00MB + 引擎 MyISAM wp_woocommerce_tax_rate_locations: 資料:0.00MB + 索引:0.00MB + 引擎 MyISAM wp_woocommerce_shipping_zones: 資料:0.00MB + 索引:0.00MB + 引擎 MyISAM wp_woocommerce_shipping_zone_locations: 資料:0.00MB + 索引:0.00MB + 引擎 MyISAM wp_woocommerce_shipping_zone_methods: 資料:0.00MB + 索引:0.00MB + 引擎 MyISAM wp_woocommerce_payment_tokens: 資料:0.00MB + 索引:0.00MB + 引擎 MyISAM wp_woocommerce_payment_tokenmeta: 資料:0.00MB + 索引:0.00MB + 引擎 MyISAM wp_woocommerce_log: 資料:0.00MB + 索引:0.00MB + 引擎 MyISAM t_country: 資料:0.01MB + 索引:0.01MB + 引擎 MyISAM t_order: 資料:0.00MB + 索引:0.00MB + 引擎 MyISAM t_shipping: 資料:0.00MB + 索引:0.00MB + 引擎 MyISAM t_state: 資料:0.00MB + 索引:0.00MB + 引擎 MyISAM v_order: 資料:0.00MB + 索引:0.00MB + 引擎 v_orderdetail: 資料:0.00MB + 索引:0.00MB + 引擎 wp_acfw_store_credits: 資料:0.00MB + 索引:0.00MB + 引擎 MyISAM wp_actionscheduler_actions: 資料:0.26MB + 索引:0.14MB + 引擎 MyISAM wp_actionscheduler_claims: 資料:0.00MB + 索引:0.00MB + 引擎 MyISAM wp_actionscheduler_groups: 資料:0.00MB + 索引:0.01MB + 引擎 MyISAM wp_actionscheduler_logs: 資料:0.22MB + 索引:0.15MB + 引擎 MyISAM wp_aws_cache: 資料:0.02MB + 索引:0.00MB + 引擎 MyISAM wp_aws_index: 資料:0.09MB + 索引:0.10MB + 引擎 MyISAM wp_commentmeta: 資料:0.00MB + 索引:0.01MB + 引擎 MyISAM wp_comments: 資料:0.01MB + 索引:0.01MB + 引擎 MyISAM wp_e_events: 資料:0.00MB + 索引:0.00MB + 引擎 MyISAM wp_e_submissions: 資料:0.00MB + 索引:0.03MB + 引擎 MyISAM wp_e_submissions_actions_log: 資料:0.00MB + 索引:0.01MB + 引擎 MyISAM wp_e_submissions_values: 資料:0.00MB + 索引:0.01MB + 引擎 MyISAM wp_hfcm_scripts: 資料:0.00MB + 索引:0.00MB + 引擎 MyISAM wp_links: 資料:0.00MB + 索引:0.00MB + 引擎 MyISAM wp_options: 資料:3.12MB + 索引:0.08MB + 引擎 MyISAM wp_postmeta: 資料:11.45MB + 索引:0.47MB + 引擎 MyISAM wp_posts: 資料:1.49MB + 索引:0.15MB + 引擎 MyISAM wp_snippets: 資料:0.01MB + 索引:0.00MB + 引擎 MyISAM wp_social_users: 資料:0.00MB + 索引:0.00MB + 引擎 MyISAM wp_termmeta: 資料:0.01MB + 索引:0.02MB + 引擎 MyISAM wp_terms: 資料:0.00MB + 索引:0.01MB + 引擎 MyISAM wp_term_relationships: 資料:0.01MB + 索引:0.02MB + 引擎 MyISAM wp_term_taxonomy: 資料:0.00MB + 索引:0.01MB + 引擎 MyISAM wp_usermeta: 資料:0.21MB + 索引:0.12MB + 引擎 MyISAM wp_users: 資料:0.02MB + 索引:0.02MB + 引擎 MyISAM wp_wc_admin_notes: 資料:0.03MB + 索引:0.00MB + 引擎 MyISAM wp_wc_admin_note_actions: 資料:0.01MB + 索引:0.01MB + 引擎 MyISAM wp_wc_category_lookup: 資料:0.00MB + 索引:0.00MB + 引擎 MyISAM wp_wc_customer_lookup: 資料:0.00MB + 索引:0.01MB + 引擎 MyISAM wp_wc_download_log: 資料:0.00MB + 索引:0.00MB + 引擎 MyISAM wp_wc_order_coupon_lookup: 資料:0.00MB + 索引:0.00MB + 引擎 MyISAM wp_wc_order_product_lookup: 資料:0.00MB + 索引:0.01MB + 引擎 MyISAM wp_wc_order_stats: 資料:0.00MB + 索引:0.01MB + 引擎 MyISAM wp_wc_order_tax_lookup: 資料:0.00MB + 索引:0.00MB + 引擎 MyISAM wp_wc_product_attributes_lookup: 資料:0.00MB + 索引:0.00MB + 引擎 MyISAM wp_wc_product_meta_lookup: 資料:0.01MB + 索引:0.03MB + 引擎 MyISAM wp_wc_rate_limits: 資料:0.00MB + 索引:0.00MB + 引擎 MyISAM wp_wc_reserved_stock: 資料:0.00MB + 索引:0.00MB + 引擎 MyISAM wp_wc_tax_rate_classes: 資料:0.00MB + 索引:0.01MB + 引擎 MyISAM wp_wc_webhooks: 資料:0.00MB + 索引:0.00MB + 引擎 MyISAM wp_xyz_ips_short_code: 資料:0.02MB + 索引:0.00MB + 引擎 InnoDB ### Post Type Counts ### attachment: 424 cartflows_flow: 1 cartflows_step: 2 custom_css: 1 customize_changeset: 8 e-landing-page: 10 elementor_library: 17 nav_menu_item: 12 page: 24 post: 5 product: 152 revision: 974 seedprod: 2 shop_coupon: 3 shop_order: 22 wp_global_styles: 1 ### Security ### Secure connection (HTTPS): ? Hide errors from visitors: ? ### Active Plugins (22) ### Advanced Woo Search: 由 ILLID – 2.53 All-in-One WP Migration: 由 ServMask – 7.58 Code Snippets: 由 Code Snippets Pro – 2.14.3 Elementor Pro 專業版: 由 Elementor.com – 3.6.5 Elementor: 由 Elementor.com – 3.6.4 Facebook for WooCommerce: 由 Facebook – 2.6.13 Facebook Chat Plugin - Live Chat Plugin for WordPress: 由 Meta – 2.4 Flexible Shipping: 由 WP Desk – 4.11.6 Social Login Buttons by Heateor: 由 Team Heateor – 1.2.10 Insert PHP Code Snippet: 由 xyzscripts.com – 1.3.3 Loco Translate: 由 Tim Whitlock – 2.6.1 一次性密碼登入/注册: 由 XootiX – 2.1 Points and Rewards for WooCommerce: 由 WP Swings – 1.2.6 Server-Side Cache AutoPurge: 由 – 1.0.1 ShipAny: 由 ShipAny – 1.0.40 Super Socializer: 由 Team Heateor – 7.13.32 WooCommerce Blocks: 由 Automattic – 7.4.2 WooCommerce Stripe Gateway: 由 WooCommerce – 6.3.0 WooCommerce PayPal Payments: 由 WooCommerce – 1.7.0 (可更新為版本 1.7.1) WooCommerce: 由 Automattic – 6.4.1 WP Bottom Menu: 由 J4 – 1.4.3 Related Products for WooCommerce: 由 WebToffee – 1.4.3 ### Inactive Plugins (6) ### Click to Chat: 由 HoliThemes – 3.9.2 Contact Form 7: 由 Takayuki Miyoshi – 5.5.6 Email Verification / SMS verification / Mobile Verification: 由 miniOrange – 3.8.0 Header Footer Code Manager: 由 99robots – 1.1.21 JWT Auth: 由 Useful Team – 2.1.0 Yedpay for WooCommerce: 由 Yedpay – 1.1.3 ### Settings ### API Enabled: – Force SSL: – Currency: HKD ($) Currency Position: left Thousand Separator: , Decimal Separator: . Number of Decimals: 2 Taxonomies: Product Types: external (external) grouped (grouped) simple (simple) variable (variable) Taxonomies: Product Visibility: exclude-from-catalog (exclude-from-catalog) exclude-from-search (exclude-from-search) featured (featured) outofstock (outofstock) rated-1 (rated-1) rated-2 (rated-2) rated-3 (rated-3) rated-4 (rated-4) rated-5 (rated-5) Connected to WooCommerce.com: – ### WC Pages ### 商店起點: #13 - /shop/ 購物車: #14 - /cart/ 結帳: #15 - /checkout/ 我的帳號: #16 - /my-account/ 服務條款: #718 - /terms-and-conditions/ ### Theme ### Name: Hello Elementor Version: 2.5.0 Author URL: https://elementor.com/?utm_source=wp-themes&utm_campaign=author-uri&utm_medium=wp-dash Child Theme: ? – 如果你要修改 WooCommerce 或一個不是你自己建立的父佈景主題的話,那我們建議使用子佈景主題。請看: 如何建立一個子佈景主題 WooCommerce Support: ? ### Templates ### Overrides: /home/kwongtai/www/www/wp-content/plugins/points-and-rewards-for-woocommerce/public/woocommerce/checkout/form-coupon.php ### WooCommerce PayPal Payments ### Onboarded: ? Shop country code: HK WooCommerce currency supported: ? PayPal card processing available in country: – Pay Later messaging available in country: – Webhook status: – Vault enabled: ? Logging enabled: – Reference Transactions: – Used PayPal Checkout plugin: – ### Action Scheduler ### 完成: 1,016 Oldest: 2022-04-05 14:12:20 +0000 Newest: 2022-04-27 04:58:28 +0000 Failed: 1 Oldest: 2021-10-20 06:30:22 +0000 Newest: 2021-10-20 06:30:22 +0000 Pending: 2 Oldest: 2022-04-28 04:50:32 +0000 Newest: 2022-04-28 04:50:33 +0000 ### Status report information ### Generated at: 2022-04-27 13:40:49 +08:00
Hi @tmin
Thanks for sharing the System Status Report.
The site is extremely low on the memory limit. (This is likely not the cause behind the issue though). You’ve allocated 40 MB while on our server requirements, we recommend a minimum of 256MB.
We recommend requesting your host to increase this limit for you to meet the minimum requirement. Alternatively, if you’re comfortable doing it on your own, here’s a guide you can follow: https://docs.woocommerce.com/document/increasing-the-wordpress-memory-limit/.
I noticed you are using Loco Translate, yet the following is not getting translated:
Link to image: https://snipboard.io/eKiJMN.jpgIf you are unable to detect where is that text coming from, you can use a string locator plugin such as this one: https://www.ads-software.com/plugins/string-locator/
If need be you can reach out at Loco Translate’s support forum: https://www.ads-software.com/support/plugin/loco-translate/
I hope you find this information helpful.
Yes, you can use loco translate to check the translation of woocommerce plug-in. The page does not call the relative language
Hi @tmin
Can you confirm if translations are up to date? You can check this under Dashboard > Updates:
Link to image: https://snipboard.io/SWxy89.jpg
If all up to date, then those English words may be overridden by the theme or another plugin. If you can’t find where those strings are coming from, using a string locator plugin like this (https://www.ads-software.com/plugins/string-locator/) can be helpful.
Yes, the translations are up-to-date. You can also find the string in the loco translate translation. The corresponding translation is displayed, but the page is still in English.
Hi @tmin
The corresponding translation is displayed, but the page is still in English
Thanks for checking that.
I see you are using a caching plugin:
Server-Side Cache AutoPurge: 由 – 1.0.1
Can you please purge all cache from it. Next, you’ll want to configure the plugin not to cache the cart, checkout, and My Account pages. Here’s a helpful guide: https://docs.woocommerce.com/document/configuring-caching-plugins/
Let us know if that helped.
- This reply was modified 2 years, 7 months ago by Margaret S. woo-hc.
Yes, I have cleared the cache and installed WP super cache settings to ensure that the following pages (shopping cart, checkout, my account) will not be cached, and the result page is the same.
Hello,
WC Version: 6.4.1
WC Database Version: 6.3.1To get the best performance on your site be sure the database version matches the WooCommerce version, you can update the database under WooCommerce > status > tools > update database, and then WooCommerce > status > tools > verify database. Please keep this in mind as a general recommendation.
You can also change the string
Have a coupon? Click here to enter your code
using a plugin like https://www.ads-software.com/plugins/say-what/I hope this helps.
The database version matches the woo commerce version, but the problem still hasn’t been solved.
Hello,
Can you confirm whether the coupon line text isn’t overwritten by your theme or another plugin? You can check this by switching theme to storefront and deactivating plugins one by one.
Alternatively, you can try changing the text by using https://www.ads-software.com/plugins/say-what/
Yes, I tried to change the theme store front and disable other plug-ins, but the page is still the same.
Hello,
To perform additional tests without affecting your live site, I recommend you use a staging site (your host might have that feature, but you can create it with WP Staging as an alternative).
Then, set your staging site’s theme to Storefront, disable all plugins except for WooCommerce and, if the issue persists, please send us the staging site’s system report.
- The topic ‘woocommerce and The coupon code language is inconsistent’ is closed to new replies.