[Resolved] Checkout breadcrumbs not showing on the second language
This thread is resolved. Here is a description of the problem and solution.
Problem: The client is experiencing an issue where the 'Shopping cart', 'Checkout details', 'Order complete' breadcrumbs are missing on the Portuguese version of their site, while they appear as expected on the original English site. Solution: We recommend checking the slug of the secondary language checkout pages. If you change the slug to checkout, it should resolve the issue. This problem occurs because the theme checks for specific slugs, and when these slugs are translated, it fails to recognize them. Here is an example of how the theme handles breadcrumbs:
Additionally, ensure that your theme, in this case, Flatsome, is updated to the latest version as an outdated theme can also cause such issues.
If this solution does not apply to your case, or if it seems outdated, 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 issues persist, 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.
Our next available supporter will start replying to tickets in about 7.83 hours from now. Thank you for your understanding.
Background of the issue:
I am trying to: So the 'Shopping cart', 'Checkout details', 'Order complete' breadcrumbs are missing on the second language page. On the original English site they are working as intended, but they are not there on the Portuguese version of the site. Any ideas what could be the issue? Link to a page where the issue can be seen: hidden link
Symptoms:
The 'Shopping cart', 'Checkout details', 'Order complete' breadcrumbs are not showing on the Portuguese version of the site, while they are working as intended on the original English site.
Questions:
Why are the breadcrumbs not showing on the Portuguese version of the site?
How can I fix the issue with the missing breadcrumbs on the second language page?
So i set up the dummy site, and I tried to translate the Checkout site, because that is the one that we are having issues with, and I came to the same exact problem.
If we click the Portuguese language in the footer for the checkout site, the checkout breadcrumbs are gone. Can you see it at your end?
Strange, can you provide me login details of the live site?
So could you please provide me with those details, you will find the needed fields for this below the comment area when you log in to leave your next reply. hidden link
Okay it seems it works on the Checkout page, but on the Cart page it is still missing for the Portuguese language. Is it the same at your end?
Edit: Nevermind, I fixed it the same way that you explained for the cart as well, now the question is what is the easiest way to translate these strings for the portuguese language?
- Go to WPML->Strings Translations->Auto Register strings for translations
- Enable the "Look for strings while pages are rendered" option
- Now visit the page on front-end where the string is shown, this will automatically register strings from that page
- Now go to WPML->Strings Translations->Auto Register strings for translations and disable the options
- Search for the strings in WPML->String Translations and translate it
Also thank you Shekhar for a very quick response as well!
filipC-6 confirmed that the issue was resolved on 2024-07-08 10:28:08.
This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.