Skip Navigation

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.

This topic contains 3 replies, has 2 voices.

Last updated by Dražen 1 year, 5 months ago.

Assisted by: Dražen.

Author Posts
December 11, 2023 at 6:52 pm #15040245

charles-alexandreM

I'm having the same problem as described on this thread: https://wpml.org/forums/topic/wpml-issue-with-woocommerce-related-product/

Essentially, the related products section in WooCommerce product pages doesn't show the same information in french and english

In english version for exemple : hidden link

It shows unrelated products, and those same 4 products are shown on most english products

We load our products and its translation through Rest API and we noticed that there is no "related_ids" custom field detected by WPML under custom fields settings

December 13, 2023 at 9:38 am #15052195

Dražen
Supporter

Languages: English (English )

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

Hello,

thanks for your patience.

Please let me know if it is okay to disable all other plugins, update them, and switch themes to WP default. Before proceeding, I need to confirm that the issue still happens on this condition and do further debugging.

Please make a backup before proceeding.

Regards,
Drazen

December 20, 2023 at 7:15 pm #15105651

charles-alexandreM

Hello Dražen, yes you may go ahead and proceed with your tests.

Thank you!

December 21, 2023 at 7:49 am #15107139

Dražen
Supporter

Languages: English (English )

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

Hello,

thanks, I have checked.

I am afraid there is not much we from WPML can affect here, products that are showing in EN are part of same category (parts) as main product, so there is nothing wrong here.

As WC docs says:
Related Products is a section on some templates that pulls products from your store that share the same tags or categories as the current product.

These products cannot be specified in the admin, but can be influenced by grouping similar products in the same category or by using the same tags.

Best I can suggest is grouping them under same tag, or removing parent category from product so they share only the relevant ones or disable this and showing linked product that can be defined for each product.

Hope you understand.

Regards.
Drazen