Multi Vendor Marketplace Plugin | WCFM Marketplace › Forums › Product Vendors › Can't input store name in Cyrillic
- This topic has 3 replies, 2 voices, and was last updated 4 years, 11 months ago by WCFM Forum.
- AuthorPosts
- December 6, 2019 at 9:27 pm #96305AndreyParticipant
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.jsThank you
Andrey
- December 7, 2019 at 2:30 pm #96445WCFM ForumMember
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
- December 9, 2019 at 1:58 pm #96719AndreyParticipant
Now it works.
Thank you - December 10, 2019 at 9:52 am #96823WCFM ForumMember
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.
- AuthorPosts
- The topic ‘Can't input store name in Cyrillic’ is closed to new replies.