Skip to content Skip to sidebar

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.

Sun Mon Tue Wed Thu Fri Sat
- 8:00 – 13:00 9:00 – 13:00 9:00 – 13:00 8:00 – 12:00 8:00 – 12:00 -
- 14:00 – 17:00 14:00 – 18:00 14:00 – 18:00 13:00 – 17:00 13:00 – 17:00 -

Supporter timezone: Europe/Zagreb (GMT+01:00)

Tagged: 

This topic contains 12 replies, has 0 voices.

Last updated by Bruno Kos 1 week ago.

Assisted by: Bruno Kos.

Author Posts
November 5, 2025 at 10:58 am

drS

Background of the issue:
I am trying to use composite products on my site hidden link.

Symptoms:
Composite products are not working.

Questions:
Everything is working fine except composite products in arabic

November 5, 2025 at 12:51 pm #17550249

Bruno Kos
WPML Supporter since 12/2018

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

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

Here is the sandbox with all the plugins installed:
hidden link

Could you please create one composite product with one aerosol option to choose from, set up the same way as it is on your site?

So, I believe we’ll need:

* 1 composite product
* 1 additional product to be used as the aerosol option
* both translated

Let me know if you have any questions!

November 6, 2025 at 7:19 am #17552160

drS

Hi, i tried to add a product but i cant translate it in german. Can you guide me how to do it and install WPC Composite for me?

November 6, 2025 at 1:53 pm #17554318

Bruno Kos
WPML Supporter since 12/2018

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

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

WPC Composite Products for WooCommerce is already installed, while you can translate any product like this (see my screenshot).

Let me know if you need further assistance!

translate.jpg
November 11, 2025 at 11:01 am #17565846

drS

Sorry for late reply. Ok let me see if I am able to add the translation

November 11, 2025 at 12:33 pm #17566305

drS

Hi i tried to add product i think composite is not working here too.

English URL
hidden link

Germany URL
hidden link

November 11, 2025 at 4:13 pm #17567724

Bruno Kos
WPML Supporter since 12/2018

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

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

This has been escalated to our Compatibility team and may take some debugging time, I'll get back to you as soon as I have any news or questions for you.

November 13, 2025 at 9:14 am #17573633

drS

Ok but pl i want to hear from you, because WPML iis perfectly translatin everything but this plugin is also very important as we have many offers and the customer can choose any products for those offers so its mandatory to be in english and arabic. Ok looking forward to hear fom you

November 13, 2025 at 3:26 pm #17575763

Bruno Kos
WPML Supporter since 12/2018

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

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

Our 2nd-tier support team confirmed that all `wooco_*` custom fields must be set to “COPY” in WPML.
https://wpml.org/documentation/getting-started-guide/translating-custom-fields/#how-to-translate-custom-fields

This ensures that the WooCommerce Composite Product data is correctly synchronized across translated products.

You also need to add the following code to your functions.php file:

if ( class_exists('Sitepress') ) { 
    add_filter( 'wooco_get_product_id', function( $product_id, $id ) {

        $type = get_post_type( $product_id );
        $element_type = ( $type === 'product_variation' ) ? 'product_variation' : 'product';
        $current_lang = apply_filters( 'wpml_current_language', null );
        $product_id = apply_filters( 'wpml_object_id', $product_id, $element_type, true, $current_lang );

        return (int) $product_id;
    }, 10, 2 );
}

This fix ensures that WooCommerce Composite Products correctly retrieve the matching product IDs in the current language, preventing mismatches or missing components when switching between translations.

Please let me know if it works on your site! After you make these changes, make sure to update both original product and its translation.

November 14, 2025 at 10:41 am #17578362

drS

Actually befote WPML I contacted WP Clever Support and they said the same setting which I already did but it was not effecting, anyhow I will try to update the code in functions.php and check if it can work or not

wpclever_support.png
November 14, 2025 at 1:46 pm #17579377

Bruno Kos
WPML Supporter since 12/2018

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

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

Ok, as in addition to custom field settings, the code is needed too.

November 18, 2025 at 9:40 am #17587161

drS

I am addin the code in functions,php can you explain me how to add the code in custmo fields? as you highlight in last message?

November 18, 2025 at 3:21 pm #17588666

Bruno Kos
WPML Supporter since 12/2018

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

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

In the custom fields you don't add code, only change translation preferences.

It is done on:
- Go to WPML → Settings.
- Scroll down to the Custom Fields Translation section.
-Set a translation preference for each custom field.

https://wpml.org/documentation/getting-started-guide/translating-custom-fields/#how-to-translate-custom-fields