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
- 10:00 – 17:00 10:00 – 17:00 10:00 – 17:00 10:00 – 17:00 10:00 – 17:00 -
- 18:00 – 19:00 18:00 – 19:00 18:00 – 19:00 18:00 – 19:00 18:00 – 19:00 -

Supporter timezone: Asia/Kathmandu (GMT+05:45)

Tagged: 

This topic contains 24 replies, has 1 voice.

Last updated by Shekhar Bhandari 6 hours, 44 minutes ago.

Assisted by: Shekhar Bhandari.

Author Posts
March 31, 2026 at 6:38 pm #17941183

sabineB-13

Hi!
I have the Barn2 product options for woocommerce plugin installed and translated (by hand, string translation, not automatic), and I think I translated everything, but the options don't show on the English products. Only on the Dutch ones (the original language). What to do to solve this problem?

Thank you!

Kind regards,
Sabine

April 1, 2026 at 5:40 pm #17944084

sabineB-13

Hi, I got some help from the AI chatbot, but the problem still exists.

I think I translated all strings, but the options are still not shown on the translated products.

I hope you can have a look into it.

Thank you!

Kind regards,
Sabine

April 2, 2026 at 4:34 am #17944729

Shekhar Bhandari
WPML Supporter since 03/2015

Languages: English (English )

Timezone: Asia/Kathmandu (GMT+05:45)

Hello there,

Thank you for contacting WPML support. I'd be happy to assist you on this issue.

Can you provide me few links along with strings which are not showing as translated?

Further, To debug this issue further, I would need to check your site settings once, for this I would need temporary access (wp-admin and ftp) to your site.

So could you please provide me with those details, you will find the needed fields for this below the comment area when you log in to leave your next reply.
hidden link

This info is private and available to you and WPML supporters only.
Read more about this: https://wpml.org/purchase/support-policy/privacy-and-security-when-providing-debug-information-for-support/

Note:
Backup your sites before providing the credentials or if possible provide credentials for the test site

Look forward to your reply.

Thanks

April 6, 2026 at 4:56 am #17950603

Shekhar Bhandari
WPML Supporter since 03/2015

Languages: English (English )

Timezone: Asia/Kathmandu (GMT+05:45)

Hello,

The login details provided do not belong to an administrative account. Could you please upgrade the access to administrator level so I can investigate this further?

I look forward to your response.

Thank you.

April 6, 2026 at 3:31 pm #17951976

sabineB-13

I am so sorry, it's changed now!

April 7, 2026 at 6:48 am #17952691

Shekhar Bhandari
WPML Supporter since 03/2015

Languages: English (English )

Timezone: Asia/Kathmandu (GMT+05:45)

Hello there,

Thank you for the details.

It appears to be a compatibility issue with the plugin. I’ve created a public demo website—could you install the plugin and set up a simple demo product with basic options so we can verify it?

Login link: hidden link

Look forward to your reply.

Thanks

April 7, 2026 at 3:03 pm #17954738

sabineB-13

Hi Shekar,

I added a product and basic product options. I don't see them though... maybe I need a license key. But maybe it's sufficient to test? Let me know!

Kind regards,
Sabine

April 8, 2026 at 4:18 am #17955462

Shekhar Bhandari
WPML Supporter since 03/2015

Languages: English (English )

Timezone: Asia/Kathmandu (GMT+05:45)

Hello there,

I think you need to add the license key as it's not showing on the front-end, we need it to show on front-end to test this further.

Look forward to your reply.

Thanks

April 8, 2026 at 7:38 pm #17957630

sabineB-13

I activated it! It's on the frontend now.

Kind regards,
Sabine

April 9, 2026 at 9:33 am #17958876

Shekhar Bhandari
WPML Supporter since 03/2015

Languages: English (English )

Timezone: Asia/Kathmandu (GMT+05:45)

Hello,

I’ve been able to reproduce the issue and have escalated it to our compatibility team. I’ll keep you updated as soon as I receive any feedback from them.

Thanks

April 9, 2026 at 1:24 pm #17959516

sabineB-13

Ok thank you so much!

Kind regards,
Sabine

April 13, 2026 at 10:56 am #17965577

Shekhar Bhandari
WPML Supporter since 03/2015

Languages: English (English )

Timezone: Asia/Kathmandu (GMT+05:45)

Hello there,

Our compatibility team checked the issue and suggested the following workaround, please follow the steps accordingly.

- Make a full backup before proceeding

- Open the ...\wp-content\plugins\woocommerce-product-options\src\Model\Group.php file

- Look for line 104 and line 227

- Replace

$term_ids   = Util::get_product_term_ids( $product_id );

with

$term_ids   = Util::get_product_term_ids( $product_id );
$term_ids   = self::expand_wpml_term_ids( $term_ids, 'product_cat' );

Line 347, before:

/**
	 * Transform the flat JOIN results into nested group/option structure.

Add the following:

private static function expand_wpml_term_ids( $term_ids, $taxonomy = 'product_cat' ) {
	$expanded = array_values( array_unique( array_map( 'intval', (array) $term_ids ) ) );

	if ( ! class_exists( 'SitePress' ) ) {
		return $expanded;
	}

	$element_type = 'tax_' . $taxonomy;

	foreach ( $expanded as $term_id ) {
		$term = get_term( $term_id, $taxonomy );

		if ( ! $term || is_wp_error( $term ) || empty( $term->term_taxonomy_id ) ) {
			continue;
		}

		$trid = apply_filters( 'wpml_element_trid', null, (int) $term->term_taxonomy_id, $element_type );

		if ( ! $trid ) {
			continue;
		}

		$translations = apply_filters( 'wpml_get_element_translations', array(), $trid, $element_type );

		if ( ! is_array( $translations ) ) {
			continue;
		}

		foreach ( $translations as $translation ) {
			if ( ! empty( $translation->term_id ) ) {
				$expanded[] = (int) $translation->term_id;
			}
		}
	}

	return array_values( array_unique( array_filter( $expanded ) ) );
}

Let me know if this helps.

Thanks

April 13, 2026 at 9:40 pm #17967063

sabineB-13

Hi,

Thank you!

I added the codes, but now the options aren't shown in any language...

Kind regards,
Sabine

April 14, 2026 at 8:37 am #17967814

Shekhar Bhandari
WPML Supporter since 03/2015

Languages: English (English )

Timezone: Asia/Kathmandu (GMT+05:45)

Hello,

It appears to be displaying correctly on my end—am I missing something?hidden link

I also tested it on the sandbox, and it’s working there as well.

Looking forward to your reply.

Thanks

April 14, 2026 at 2:33 pm #17969021

sabineB-13

Hi Shekar,

No, what you see there are the PPOM options. Those are old and have to leave as soon as the new options are working.

I add an image of how it should look.

Kind regards,
Sabine

Afzonderlijk product (Copy).jpg