|
|
Background of the issue:
I translated everything in string translations but it's still not translated in the cart. Checkout works ok. I enabled 'auto register strings for translations'. I scanned themes and plugins for new strings. I looked in 'Translate texts in admin screens'.
Symptoms:
Cart is not translated
Questions:
Why is the cart not translated despite translating everything in string translations?
hidden link
Is there a specific step I missed in translating the cart strings?
|
|
|
Hello,
Welcome to the WPML support forum. I will do my best to help you to resolve the issue.
Please try the following troubleshooting steps after a full site backup{mandatory} and make sure the issue exists or not.
1) Upgrade to the latest version of WordPress (6.6.1)
2) Increase *WP Memory Limit* to *256* MB(the minimum required memory limit for WPML is *128*). Please check the following links for more details
https://wpml.org/home/minimum-requirements/
https://developer.wordpress.org/apis/wp-config-php/#increasing-memory-allocated-to-php
3) Go to WPML>>Support page, click on the Troubleshooting link (blue link in the middle of the page)
4) On the Troubleshooting page, please click on the following options of the *Clean up* section. Wait for confirmation of processing after each one.
- Clear the cache in WPML
- Remove ghost entries from the translation tables
- Fix element_type collation
- Set language information
- Fix WPML tables collation
- Assign translation status to duplicated content
- Fix terms count
- Fix post type assignment
- Cleanup and optimize string tables
- Show custom MO Files Pre-generation dialog box>>Generate .Mo files
--
Thanks!
Bigul
|
|
|
I figured out what was wrong. My cart was not /cart but /cart-2.
I had two cart pages and when I deleted the new one all was ok.
Having said that, wpml keeps adding an additional /cart-2 page and making it a default one. This happens every few weeks and I have the same problem on multiple different websites. Is this something known to you?
|
|
|
Hello,
Thank you for the updates. Hope you have added the secondary cart page from Pages>>All Pages. Normally WPML will not create a page or post automatically. Therefore it requires further checking.
So please share a screencast (Screen capture of the bug and you can share it via Google Drive or Dropbox) for a better understanding of the issue. The screencast will help us a lot in internal communications.
--
Thanks!
Bigul
|
|
|
For now I deleted the second page. Will let you know when there is an issue again.
Basically, a new Cart page appears with url /cart-2/ and it is made a default one.
What I then do is delete the page and set /cart/ page to be the default one in setting.
Problem is this is happening on almost every page that uses wpml, and it's hard to keep daily track.
|
|
|
Hello,
Thank you for the updates. We hope you are using WPML Advanced Translation Editor for translating the posts/pages and you have selected the *Auto-generate from title* option in WPML>>Settings>>Translated documents options>>Page URL settings.
WPML is following the WordPress guidelines for creating the post slug. So if there is a post slug *cart* that exists, WordPress will add *cart-2* as the slug for the new post with slug *cart*. Refer to the following documentation for more details.
https://wpml.org/documentation/getting-started-guide/translating-page-slugs/#translate-page-and-post-url-slugs
hidden link
Please share a couple of screenshots or a screencast (a screen capture of the issue and you can share it via Google Drive or Dropbox) for a better understanding of the following. It will help us a lot in internal communication.
Problem is this is happening on almost every page that uses wpml, and it's hard to keep daily track.
--
Thanks!
Bigul
|
|
|
I'm using a classic translation editor actually.
Also the problem seems to be gone with last few updates, will keep an eye on it tho.
thank you
|
|
|
Hello,
Thank you for the feedback. We are happy to know you are getting the expected results now. Take your time. We will wait for your updates.
--
Thanks!
Bigul
|