Skip Navigation

Open

Overview of the issue

When you create a page using Divi page builder and use Woo Title or Woo Description modules and translate the page, the selected product will not be translated on the translated page.

Workaround

Our developers are working on implementing a feature to fix this issue. As a workaround, you can add the following snippet to your child theme’s functions.php file

add_filter( 'et_pb_module_shortcode_attributes', function( $props ) {
	if ( isset( $props['product'] ) ) {
		$props['product'] = apply_filters( 'wpml_object_id', $props['product'], 'product', true );
	}
	return $props;
} );

Once added, the translate product title/description will be displayed on the translated page.

4 Réponses à “Divi Woo Title and Woo Description modules don't display the translated product”

  1. Hey guys,

    I have tried this solution but it seems only to work with non variable products / simple products.
    Any workaround for variable products?

    Thank you in advance!

  2. Hi, I know this is an old thread but I haven’t seen any new updates. I added this snippet to our website and the translation works. But that also creates a critical error when using the add to cart button. Any new updates that can guide me further?

    • Hello!
      I am sorry that this workaround creates a problem for your site.
      Could you please create a new ticket in our support forum, so that we can investigate the problem and adjust the workaround?
      It would help tremendously if when you open the ticket, that you provide debug log from WordPress that shows the error.

Laisser une réponse

Please stay on topic and be respectful to others. If you need help with issues not related to this post, use our Support Forum to start a chat or submit a ticket.

Vous pouvez utiliser ces balises :
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>