[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+02: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+02: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+02: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.
It took quite a few hours to build the package, but it is now available for you in the admin interface.
You are also welcome to just use the debug site as well.
Best Regads,
Peter
Manage Cookie Consent
We use cookies to optimize our website and services. Your consent allows us to process data such as browsing behavior. Not consenting may affect some features.
Functional
Always active
Required for our website to operate and communicate correctly.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
We use these to analyze the statistics of our site. Collected information is completely anonymous.The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
These cookies track your browsing to provide ads relevant to you.