How to Translate Fields on the Registration Page

Translations or availability of other languages is really important, especially for the Wholesale Registration Page. Fortunately, all of our Wholesale Suite plugins are optimized for translation. It contains translation strings that can be translated to any language that is supported by WordPress.

The easiest way to translate the built-in fields is by using Loco Translate, PoEdit or WPML.

In Loco Translate, you should be able to find the strings on Loco Translate > Plugins > WooCommerce Wholesale Lead Capture and translate it.

(click to zoom)
(click to zoom)

Using WPML, go to  WPML > Theme and plugins localization > WooCommerce Wholesale Lead Capture > String Translation.

Translating Custom Fields

Since the custom fields are user created fields, it must be translated manually by using custom hooks, then add it to your functions.php.

In the example below, you need to change the Field ID, language code and the translation.


add_filter( ‘woocommerce_form_field_args’, ‘my_wwlc_translate_custom_field’, 99, 3);
function my_wwlc_translate_custom_field( $args, $key, $value ){

  if($key == ‘wwlc_cf_FieldID’){
  switch (ICL_LANGUAGE_CODE) {
    case ‘es’: //language code
    $args[‘label’] = “Spanish Label”; //translation
    break;
    case ‘fr’:
    $args[‘label’] = “France Label”;
    break;
    }
  }

return $args;
}

in WooCommerce Wholesale Lead Capture

Solve The Big Three Problems With Wholesaling In WooCommerce

Add wholesale pricing to products   Streamline your ordering   Register & manage wholesale customer

Explore The Plugin Suite  

[data-image-id='gourmet_bg']
[data-image-id='gourmet_bg']
[data-image-id='gourmet_bg']
[data-image-id='gourmet_bg']
[data-image-id='gourmet_bg']
[data-image-id='gourmet_bg']
[data-image-id='gourmet']
[data-image-id='gourmet']
[data-image-id='gourmet']
[data-image-id='gourmet']
[data-image-id='gourmet']
[data-image-id='gourmet']
[data-image-id='gourmet']
[data-image-id='gourmet']
[data-image-id='gourmet']
[data-image-id='gourmet']