Multi Vendor Marketplace Plugin | WCFM Marketplace › Forums › WCFM – Marketplace (WooCommerce Multivendor Marketplace) › Special characters in Store name
- This topic has 7 replies, 4 voices, and was last updated 4 years, 10 months ago by
EK.
- AuthorPosts
- April 28, 2020 at 3:15 am #123952
alexdezi
ParticipantHello!
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!
- April 28, 2020 at 11:05 am #124049
Sushobhan
KeymasterHi,
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! - April 28, 2020 at 7:19 pm #124283
alexdezi
Participantawesome, thank you!
- April 28, 2020 at 7:33 pm #124290
Sushobhan
KeymasterYou 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. - May 31, 2020 at 2:31 pm #136904
1994.kocak
ParticipantHello @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.
- June 1, 2020 at 6:35 pm #137314
EK
ParticipantHi,
Does the code snippet cover special characters from French?
Thanks a lot
- June 1, 2020 at 7:41 pm #137331
Sushobhan
KeymasterHi,
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! - June 1, 2020 at 8:08 pm #137350
EK
Participantthanks a ton for confirming 🙂
- AuthorPosts
- You must be logged in to reply to this topic.