• Resolved SDN Host

    (@sdnhost)


    we have issue with store name field. it is not possible to type some Persian characters which are (? ? ? ? ?) .
    also it is not possible to type (][‘;/.,) when keyboard is in English.

    and a weird thing is this that, it is possible to type any character from mobile. or it is possible to copy and paste any characters inside store name filed in desktop too.

    what is the problem?

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Author WC Lovers

    (@wclovers)

    Hi,

    By default non-latin characters are not allow as store name.

    But add this snippet to allow those –

    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 custom code(s) to your child theme’s functions.php
    In case you do not have child theme then add those using this plugin –?https://www.ads-software.com/plugins/code-snippets/

Viewing 1 replies (of 1 total)
  • The topic ‘Store Name field Persian character issue’ is closed to new replies.