Multi Vendor Marketplace Plugin | WCFM Marketplace › Forums › WCFM – Marketplace (WooCommerce Multivendor Marketplace) › Disable Store Name Position for vendors
- This topic has 5 replies, 2 voices, and was last updated 5 years, 2 months ago by WCFM Forum.
- AuthorPosts
- September 7, 2019 at 5:56 pm #80624kaloomeeParticipant
Hi
1 – I would like to disable the option for vendors to select the position of store name
At present they are able to select
At Header
Or In banner
I would like to set so that all vendors store name only appears in ‘At header’
I have checked admin settings but can only see what to set as the default
Any help much appreciated - September 9, 2019 at 11:46 am #80798WCFM ForumMember
Hi,
Please add this line to your site –
add_filter( 'wcfm_is_allow_store_visibility', '__return_false' );
Thank You
- September 9, 2019 at 2:45 pm #80838kaloomeeParticipant
Thank you for snippet but this code also removes all field options below ‘Store Name Position’ :-
Products per page
Hide Email from Store
Hide Phone from Store
Hide Address from Store
Hide Map from Store
Hide About from Store
Hide Policy from StoreI would just like to hide ‘Store Name Position’ option and make ‘Store Name Position’ as ‘At Header’ only
- September 14, 2019 at 9:16 pm #81609WCFM ForumMember
Hi,
OK, remove that code and use this –
add_filter( 'wcfm_marketplace_settings_fields_visibility', function( $visibility_fields, $store_id ) { $visibility_fields = wcfm_hide_field( 'store_name_position', $visibility_fields ); return $visibility_fields; }, 50, 2 );
Thank You
- September 14, 2019 at 10:42 pm #81643kaloomeeParticipant
Thank you, Works wonderfully
- September 15, 2019 at 3:02 am #81764WCFM ForumMember
Great … you are welcome 🙂
- AuthorPosts
- The topic ‘Disable Store Name Position for vendors’ is closed to new replies.