woocommerce / woocommerce-subscriptions-custom-price-string

Customize the price displayed to your customers for subscription products (or non-subscription product).
GNU General Public License v3.0
62 stars 11 forks source link

Compatibility with WPML plugin #4

Closed AmeliaBriscoe closed 5 years ago

AmeliaBriscoe commented 5 years ago

A customer wished to change the text on the checkout page where recommending the custom price string mini-plugin was appropriate.

The customer advised that it solved the problem, but added that:

It would be even greater if the plugin works with the WPML plugin for multilangual websites

Adding the suggestion here as an enhancement request

bernattorras commented 5 years ago

I think that you can set this custom field as translatable in WPML>Settings>Custom Fields Translation page. You just need to click the "show system fields" link and set the "_custom_price_string" field as translatable.

Once done, it should appear as a translatable field in their translation GUI.

In any case, we should add a wpml-config.xml field to the plugin to specify the custom fields that WPML should automatically consider as translatable (custom_price_string and custom_from_string).