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.

This topic contains 3 replies, has 2 voices.

Last updated by T4ng 4 years, 9 months ago.

Assisted by: Alejandro.

Author Posts
May 10, 2021 at 1:57 pm #8730127

T4ng

I'd like to have the coupon field option enabled only in some of the languages.

May 10, 2021 at 3:13 pm #8731263

T4ng

The value in the database that controsl this seems to be:
wp_options > woocommerce_enable_coupons (\plugins\woocommerce\includes\admin\settings\class-wc-settings-general.php: 197)

May 11, 2021 at 11:27 am #8739091

Alejandro
WPML Supporter since 02/2018

Languages: English (English ) Spanish (Español ) Italian (Italiano )

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

Here you go: hidden link

It's totally possible and it's not a hack or anything, it's a good way to achieve what you wanted and this might be applicable to other plugins and other theme options as well.

The guide used to achieve this is the following: https://wpml.org/documentation/getting-started-guide/string-translation/finding-strings-that-dont-appear-on-the-string-translation-page/#strings-arent-selected-for-translation

and it will be applicable to all the elements that belong to the wp_options table and compatible plugins database tables.

Regards.

May 19, 2021 at 7:55 am #8796651

T4ng

After facing caching issue, it works. Thanks a lot for the support, and especially the video.