Can't input store name in Cyrillic

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

This topic contains 3 replies, has 2 voices, and was last updated by WCFM Forum WCFM Forum 2 months, 1 week ago.

  • Author
    Posts
  • #96305
    Avatar
    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
    WCFM Forum
    Keymaster

    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
    Avatar
    Andrey
    Participant

    Now it works.
    Thank you

  • #96823
    WCFM Forum
    WCFM Forum
    Keymaster

    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.  

The topic ‘Can't input store name in Cyrillic’ is closed to new replies.