Skip Navigation

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.

Tagged: 

This topic contains 18 replies, has 2 voices.

Last updated by Bruno Kos 1 month, 3 weeks ago.

Assisted by: Bruno Kos.

Author Posts
October 14, 2024 at 9:00 am

piaP-6

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?

October 14, 2024 at 9:28 am
October 14, 2024 at 11:37 am #16285724

Bruno Kos
Supporter

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.

October 14, 2024 at 12:10 pm #16285869

piaP-6

Hi there,

I have tested on your sandbox, and it works fine. Also, I have found other products on our own webshop, where the links are OK - e.g. hidden link

Could there be some missing meta information on some products?

Best Regards,
Peter

October 14, 2024 at 12:25 pm #16285897

Bruno Kos
Supporter

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

Let me know if this helped.

October 14, 2024 at 1:34 pm #16286319

piaP-6

Unfortunately, that did not solve the issue.

October 15, 2024 at 5:45 am #16288593

piaP-6

Hi again,

I see there is a similar issue regarding the related products on e.g. this product: hidden link

Some of the related products are linking to the Danish language.

October 15, 2024 at 5:47 am #16288594

Bruno Kos
Supporter

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.

October 15, 2024 at 5:52 am #16288595

piaP-6

Transfering and storing all the customer's data at another server is not GDPR-compliant. Could I create and host a copy installation for you instead?

October 15, 2024 at 7:28 am #16288887

Bruno Kos
Supporter

Languages: English (English ) German (Deutsch ) French (Français )

Timezone: Europe/Zagreb (GMT+01:00)

Sure, if you can create a site copy without client information, but where the issue can be reproduced, that would work also.

October 17, 2024 at 10:36 am
October 17, 2024 at 1:05 pm #16300315

Bruno Kos
Supporter

Languages: English (English ) German (Deutsch ) French (Français )

Timezone: Europe/Zagreb (GMT+01:00)

Am I allowed to create a Duplicator package on that one as well? I see the plugin is already there.

October 17, 2024 at 4:39 pm #16301496

piaP-6

Yes, it should be complete free, from customer data!
I have added FTP credentials as well.

October 21, 2024 at 8:06 am #16310703

Bruno Kos
Supporter

Languages: English (English ) German (Deutsch ) French (Français )

Timezone: Europe/Zagreb (GMT+01:00)

I am trying to create a Duplicator package but having issues with it at the moment, trying different settings.

hidden link

Can you have a look? We only need to have /uploads excluded as this is about 4GB of data and everything else included.

October 23, 2024 at 11:40 am #16321489

piaP-6

Hi Bruno,

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