Special characters in Store name

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!

Viewing 7 reply threads
  • Author
    Posts
    • #123952
      alexdezi
      Participant

      Hello!

      I need to use special characters (German: ä, ü, ö) in the title of the shop, but it doesn’t allow to.
      Can that be implemented?

      Thank you!

    • #124049
      Sushobhan
      Keymaster

      Hi,
      Thank you for contacting the support and sorry for any inconvenience that might have been caused due to that.
      To allow those character in store name use the following snippet-

      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/
      Let me know how this goes.
      Thanks!

    • #124283
      alexdezi
      Participant

      awesome, thank you!

    • #124290
      Sushobhan
      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 (if you haven’t already) 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.

    • #136904
      1994.kocak
      Participant

      Hello @Sushobhan, why don’t you do this as default in plugin? It is very normal to use special character for title. I think we shouldn’t have to use this code in functions.

      Best regards.

    • #137314
      EK
      Participant

      Hi,

      Does the code snippet cover special characters from French?

      Thanks a lot

    • #137331
      Sushobhan
      Keymaster

      Hi,
      The above code bypass any special character checking and thus can be used for all languages.
      @1994.kocak- Sorry about that inconvenience. Though these kinds of tweaking using hooks and filters are pretty common in WP.
      Thanks!

    • #137350
      EK
      Participant

      thanks a ton for confirming 🙂

Viewing 7 reply threads
  • You must be logged in to reply to this topic.