[Resolved] Product Meta links is pointing at different language
This thread is resolved. Here is a description of the problem and solution.
Problem: The client is experiencing an issue where links under the 'Add to cart' button are pointing to the original language version (Danish) instead of the translated version (Norwegian) on their e-commerce site. Solution: We recommend the following steps to resolve this issue: 1. Ensure that the "Adjust IDs for multilingual functionality" option is enabled. You can find this setting by navigating to WPML -> Languages. 2. After enabling this option, it is advisable to clear your site's cache to ensure changes take effect, although this may not always be necessary.
The "Adjust IDs for multilingual functionality" setting in WPML helps ensure that content elements like posts, pages, media, and taxonomies are correctly linked across different languages. This setting is crucial for maintaining the integrity of ID-based content across your site, facilitated by themes, plugins, or custom fields. While enabling this feature might introduce a slight performance overhead due to additional database queries, proper caching strategies can effectively minimize this impact.
If this solution does not resolve your issue, or if it seems outdated or irrelevant to your specific case, 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 problems persist, please do not hesitate to open a new support ticket with us for further assistance. You can do so at 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.
Background of the issue:
I'm trying to get the links under the 'Add to cart' button to point to the correct categories in Norwegian. The problem can be seen on this page: hidden link
Symptoms:
Links to categories point to the original language version (Danish) instead of the translated version (Norwegian).
Questions:
How can I make links point to the translated categories?
What could be causing links to point to the original language version?
Languages: English (English )German (Deutsch )French (Français )
Timezone: Europe/Zagreb (GMT+01:00)
On this sandbox: hidden link
Can you install Flatsome theme and set its template the same way it is in your site, then check if the issue with the wrong category URL is happening there as well?
I created one category and a product, both are translated, so we only need a template.
Languages: English (English )German (Deutsch )French (Français )
Timezone: Europe/Zagreb (GMT+01:00)
I see.
That being said, can you try the following:
- WPML - > Support -> Troubleshooting:
– Synchronize posts taxonomies (for products and then for variations)
-- Clear the cache in WPML
-- Remove ghost entries from the translation tables
-- Set language information
-- Fix terms count
-- Fix post type assignment for translations
If this does not help, can you also go to wp-admin/admin.php?page=wpml-wcml&tab=troubleshooting and run these:
- Fix translated variations relationships
- Sync removed product meta from original products to translations
Languages: English (English )German (Deutsch )French (Français )
Timezone: Europe/Zagreb (GMT+01:00)
To troubleshoot this problem, I'll install the Duplicator plugin and generate packages for further debugging purposes. I'll ensure to exclude all media files to maintain a minimal package size. You can find more information about the process here: [link](https://wpml.org/faq/provide-supporters-copy-site/). Please confirm if this approach is acceptable to you.
I will need credentials again because these got removed automatically.