This thread is resolved. Here is a description of the problem and solution.

Problem: How to adding custom tabs on the products?

Solution: The client mentions two plugins to create custom tabs:

- https://wordpress.org/plugins/yikes-inc-easy-custom-woocommerce-product-tabs/ - https://wordpress.org/plugins/woocommerce-custom-product-tabs-lite/

Both plugins are translatable with WPML. The settings are similar to both:

- Add tab in the original product language - Update the product - Scroll down and look at the "Multilingual Content Setup" metabox - On the "yikes_woo_products_tabs" line, select the "Translate" option - Click on the Save button

- Click on the WPML > WooCommerce Multilingual. - Look for 'Product Translation Interface' - Select the "Go to the native WooCommerce product editing screen" option - Click on the "Save" button

Access the secondary language of the product you want to add the translated tabs. That way you can create tags in the secondary language as well.

Relevant Documentation: https://wpml.org/documentation/getting-started-guide/string-translation/

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.

Author Posts
May 31, 2016 at 8:47 am #893530

Jim Geldhof

Hi,

I am trying to create translatable custom product tabs on the product pages.
I am using Woocommerce and Shopkeeper theme from Getbowtied together with WPML.

It really strucks me how difficult it seems to have such basic request getting to work as this is not a standard built in feature, even when having purchased a premium WordPress theme and a premium translation plugin.

Anyways, at this moment I am considering 3 options, in which I would like to know which is going to achieve my above goal the best.

1. Add custom code in functions.php
hidden link

2. Work with plugin:
https://wordpress.org/plugins/yikes-inc-easy-custom-woocommerce-product-tabs/faq/

3. Work with plugin:
https://wordpress.org/plugins/woocommerce-custom-product-tabs-lite/screenshots/

Please advice me what will be the best and easiest option in regards to adding translatable custom product tabs?

Kind regards,

Jim

May 31, 2016 at 6:49 pm #894120

Bruno
Supporter

Languages: English (English ) Portuguese (Brazil) (Português )

Timezone: America/Sao_Paulo (GMT-03:00)

Hi,

On the first link, it should be good only if you are comfortable with PHP. This will be possible to translate the String Translation.

It seems that both plugins work properly. I tested both plugins and have been translated correctly. The second plugin mentioned, allows you add more than one tab, if necessary.

To translate the tabs, follow these steps:

- Add tab in the original product language
- Update the product
- Scroll down and look at the "Multilingual Content Setup" metabox
- On the "yikes_woo_products_tabs" line, select the "Translate" option
- Click on the Save button

- Click on the WPML > WooCommerce Multilingual.
- Look for 'Product Translation Interface'
- Select the "Go to the native WooCommerce product editing screen" option
- Click on the "Save" button

Access the secondary language of the product you want to add the translated tabs. That way you can create tags in the secondary language as well.

Please let me know if you are satisfied with my answer and if I can help you with any other questions you might have.

Thank you.

May 31, 2016 at 7:23 pm #894141

Jim Geldhof

Hi Bruno,

Great support and swift response!

The "Go to the native WooCommerce product editing screen" option was the piece of the puzzle that I was missing. So thanks for that!

I agree with you the Yikes plugin is pretty robust. However, now I will have a hard time translating more then 50 products in 3 languages because I seem to have to add each custom tab to each product, and repeat, in each language?

Maybe the custom php code then would be the better option? Or could you find a fix for that plugin too?

Cheers

May 31, 2016 at 9:03 pm #894186

Bruno
Supporter

Languages: English (English ) Portuguese (Brazil) (Português )

Timezone: America/Sao_Paulo (GMT-03:00)

Hi Jim,

Thanks for the feedback.

---- However, now I will have a hard time translating more then 50 products in 3 languages because I seem to have to add each custom tab to each product, and repeat, in each language?

Yes, in this case, you must add the content in the tabs individually on each product.

About the manual tab, depends on what you want to display. If you want to have some custom options that are already registered in the products, it might be a good idea. Otherwise, either way, you will have to manually edit the product individually.

If you want to custom tabs, you can see some of the hooks available in WPML in our documentation: https://wpml.org/documentation/support/wpml-coding-api/wpml-hooks-reference/

https://wpml.org/wpml-hook/wpml_register_string/
https://wpml.org/wpml-hook/wpml_translate_string/

Please let me know if I can help you with any other questions you might have.

Thank you.

June 1, 2016 at 7:36 am #894330

Jim Geldhof

Ok thank you for the great support.

Cheers,

Jim

June 20, 2019 at 10:00 am #4058633

giorgioA-4

Hi, how about formatting the text of the tabs via text editor?