Can't input store name in Cyrillic

We're shifting our Forum based support to a more dedicated support system!

We'll be closing our Forum support from 10th June, 2020 and move to Email Support assistance.

  • If you are a WCFM premium add-ons user, contact us- here
  • Want to know more before buying our add-ons? Send Pre sale queries- here
  • If you are a WCFM free user, please open a support ticket at WordPress.org
  • For WCFM App related queries, reach us- here
From now the forum will be read-only!

Multi Vendor Marketplace Plugin | WCFM Marketplace Forums Product Vendors Can't input store name in Cyrillic

Viewing 3 reply threads
  • Author
    Posts
    • #96305
      Andrey
      Participant

      Hi,
      If vendor tries to register new account, it’s not possible to write some store names in Cyrillic.
      All cyrillic symbols placed together on keyboard with special symbols such “;” or “‘” or “,” or “.” or “[” or “]” is not possible to write in field store_name.
      If I understand correctly – please check function restrictNameInput() in wcfm-script-menu.js

      Thank you

      Andrey

    • #96445
      WCFM Forum
      Member

      HI,

      Please add this code to your site to bypass this restriction –

      add_filter( 'wcfm_membership_registration_fields', function( $store_name_fields ) {
      	if( isset( $store_name_fields['store_name'] ) ) {
      	  $store_name_fields['store_name']['class'] = 'wcfm-text wcfm_ele';
      	}
      	return $store_name_fields;
      });
      
      add_filter( 'wcfm_marketplace_settings_fields_general', function( $store_name_fields ) {
      	if( isset( $store_name_fields['store_name'] ) ) {
      		$store_name_fields['store_name']['class'] = 'wcfm-text wcfm_ele';
      	}
      	return $store_name_fields;
      });

      Add this code to your child theme’s functions.php
      In case you do not have child theme then add code using this plugin – https://wordpress.org/plugins/code-snippets/

      Thank You

    • #96719
      Andrey
      Participant

      Now it works.
      Thank you

    • #96823
      WCFM Forum
      Member

      You are always welcome 🙂

      Let me know if there’s anything else we can help you with.

      Can we ask for a favor? Would you mind taking a few minutes to review our plugin at https://wordpress.org/support/plugin/wc-multivendor-marketplace/reviews/ and let others know about your 5 Star experience with WCFM Marketplace. Also, follow us on Twitter https://twitter.com/wcfmmp for more exciting news, important updates, and irresistible offers.  

Viewing 3 reply threads
  • The topic ‘Can't input store name in Cyrillic’ is closed to new replies.