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.

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

Supporter timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Tagged: 

This topic contains 1 reply, has 2 voices.

Last updated by Long Nguyen 1 year, 3 months ago.

Assisted by: Long Nguyen.

Author Posts
March 19, 2024 at 1:56 pm #15426775

dylanH-6

Hi there,

I have a major issue which I need to be resolved since we're going live with this site in 5 days. We're using the plugin 'Extra product options' which is compatible with WPML.

1. Extra product options dissapeared.

We created global forms which contain different Extra product options. We've added them to all our relevant products separately in the product editing page under 'extra product options' --> 'settings'. Some of these products also have a CSV file uploaded with a custom EPO form.

The issue: for some odd reason, a lot of these products are not displaying the EPO's anymore. They're only displaying the CSV's that are uploaded in the product. This happened after translating the products.

Example:
In this image, you see the CSV (the different sizes, top option) and the global forms that are selected. This is a working product where everything is fine.
<see image, bk-working>

In this image, you only see the CSV, the EPO global forms that were selected are gone.
<see image, bk-notworking>

Also, the 'settings' tab on all the products is not displaying anything anymore:
<see image, bk-empty>

This seems like a major bug. We've spent hours upon hours to set everything up and to connect it with all the different products. We'd like to have a good resolution in a timely matter as we're going live with the site in 5 days.

Thanks in advance.

BK-empty.jpg
BK-notworking.jpg
BK-working.jpg
March 20, 2024 at 6:46 am #15429485

Long Nguyen
WPML Supporter since 02/2022

Languages: English (English )

Timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Hi Dylan,

Thank you for contacting WPML support, I’m happy to help you with this issue.

Please ensure you have a full backup of your site and database, then apply the workaround below and let me know if it helps:

- Edit the file wp-content\plugins\woocommerce-tm-extra-product-options\includes\class-themecomplete-extra-product-options.php

- Find the code

$original_post_id = floatval( THEMECOMPLETE_EPO_WPML()->get_original_id( $post_id, 'product' ) );

replace it with this one

$original_post_id = floatval( THEMECOMPLETE_EPO_WPML()->get_original_id( $post_id, 'product' ) );
$original_post_id = apply_filters( 'wpml_object_id', $original_post_id, 'product', TRUE );

Looking forward to your reply.
Thanks

The topic ‘[Closed] WPML & Extra product options disappear after translating products.’ is closed to new replies.