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, 5 months ago by EK.
- AuthorPosts
- April 28, 2020 at 3:15 am #123952alexdeziParticipant
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!
- April 28, 2020 at 11:05 am #124049SushobhanKeymaster
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! - April 28, 2020 at 7:19 pm #124283alexdeziParticipant
awesome, thank you!
- April 28, 2020 at 7:33 pm #124290SushobhanKeymaster
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. - May 31, 2020 at 2:31 pm #1369041994.kocakParticipant
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.
- June 1, 2020 at 6:35 pm #137314EKParticipant
Hi,
Does the code snippet cover special characters from French?
Thanks a lot
- June 1, 2020 at 7:41 pm #137331SushobhanKeymaster
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! - June 1, 2020 at 8:08 pm #137350EKParticipant
thanks a ton for confirming 🙂
- AuthorPosts
- You must be logged in to reply to this topic.