Background of the issue:
I'm encountering an issue on the checkout page of my WooCommerce store. I've modified the text under the 'Cash on Delivery' payment method, but the changes are not visible. However, when I deactivate WPML, my custom text appears correctly.
Symptoms:
Custom text for 'Cash on Delivery' payment method is not displayed when WPML is activated; only the default text is shown.
Questions:
How can I ensure that my custom text is displayed when WPML is activated?
I understand the issue you're experiencing. If Dutch is the default language on your site, the changes should immediately appear in Dutch. Could you please go to WPML > String Translation and verify whether the source language of the text you added is set correctly? The string should appear under the Dutch language flag.
However, if the string is showing under the correct source language, the issue might be related to site caching. Could you please clear the caches from your site and browser, then check again? It would also be helpful to check from a different browser or in incognito mode to see if the issue persists.
Let me know the update. I will be happy to help if you need further assistance in this matter.
Hello There,
Thank you for trying out the suggestions.
As the issue persists, a closer inspection will be required to understand the root cause of the issue.
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.
You will find the needed fields below the comment area when you log in to leave your next reply. The information you will enter is private which means only you and I can see and have access to it.
Maybe I'll need to replicate your site locally. For this, I’ll need to temporarily install a plugin called “Duplicator” or "All in One WP Migration" on your site. This will allow me to create a copy of your site and your content. Once the problem is resolved I will delete the local site. Let me know if this is ok with you.
IMPORTANT
-Please backup site files and database before providing us access.
-If you do not see the wp-admin/FTP fields this means your post & website login details will be made PUBLIC. DO NOT post your website details unless you see the required wp-admin/FTP fields. If you do not, please ask me to enable the private box. The private box looks like this: hidden link
Hello There,
Thank you for sharing the access information.
I was able to fix the issue in your staging site. Please check this screenshot: hidden link
The Dutch text for "Cash on Delivery" was being loaded from the WooCommerce translation files, which is why the manual changes to the title weren't taking effect until the translation file was updated. Here are the steps I took to resolve the issue.
- I navigated to WooCommerce > Settings > Payments and clicked on the "Contant betalen bij ontvangst" method.
- In the Title field, I removed the custom title you had added and replaced it with "Cash on Delivery."
- I saved the changes.
- Then, I clicked on the "vertalingen" link below the title field, which opened the String Translation screen and displayed the title.
- The source language for the "Cash on Delivery" title was English, so I changed the source language to English following this guide:
- After that, I added the Dutch translation, "Betaal bij afhaal."
- Next, I went to WPML > Support > Troubleshooting.
- At the bottom of the page, I clicked on the "Show custom MO Files Pre-generation dialog box" button and then generated the MO files by clicking on the "Generate MO Files" button.
- Once the generation was complete, I returned to WooCommerce > Settings > Payments and updated the Dutch title for the "Contant betalen bij ontvangst" method.
- Finally, I cleared the caches and checked the frontend. This time, the text updated correctly.
Please try accordingly on your main site and let me know how it goes. If you need further assistance or clarification, feel free to let me know and I'll be happy to help.
Best regards,
Prosenjit
The topic ‘[Closed] Issue with Custom Text for Cash on Delivery Payment Method in WooCommerce with WPML’ is closed to new replies.