Multi Vendor Marketplace Plugin | WCFM Marketplace › Forums › WCFM – Marketplace (WooCommerce Multivendor Marketplace) › About the hidden fields of store setting
- This topic has 4 replies, 2 voices, and was last updated 6 years ago by MOHO.
- AuthorPosts
- November 17, 2018 at 5:48 am #36895MOHOParticipant
1. How could change the “Slider Hyperlink” only admin could set?
Store Vendor only could upload slider images, but they can’t input “Slider Hyperlink”.2. How could i hide “Mobile banner” for store vendor?
They no need this now.3. How could i hide “Store Visibility” for store vendor?
I had add these code in child theme
add_filter(‘wcmp_vendor_store_header_hide_store_phone’, ‘__return_true’);
add_filter(‘wcmp_vendor_store_header_hide_store_email’, ‘__return_true’);
add_filter(‘wcmp_vendor_store_header_hide_store_address’, ‘__return_true’);Attachments:
You must be logged in to view attached files. - November 17, 2018 at 4:45 pm #36967WCFM ForumMember
Hi,
Kindly add these lines –
add_filter( 'wcfm_is_allow_store_mobile_banner', '__return_false' ); add_filter( 'wcfm_is_allow_store_visibility', '__return_false' );
1. How could change the “Slider Hyperlink” only admin could set?
Store Vendor only could upload slider images, but they can’t input “Slider Hyperlink”.** I am checking this, how this can be achievable!
Thank You
- November 19, 2018 at 8:19 pm #37126MOHOParticipant
Your code work
and thanks for your checking “Slider Hyperlink” only admin could set about my requirement.
- November 20, 2018 at 8:51 am #37195WCFM ForumMember
Hi,
“thanks for your checking “Slider Hyperlink” only admin could set about my requirement.”
Kindly add this code for the purpose –
function wcfm_marketplace_settings_fields_2011_general( $general_fields ) { if( wcfm_is_vendor() && isset( $general_fields['banner_slider'] ) ) { $general_fields['banner_slider']['options']['link']['class'] = 'wcfm_custom_hide'; } return $general_fields; } add_filter('wcfm_marketplace_settings_fields_general', 'wcfm_marketplace_settings_fields_2011_general', 50 );
Thank You
- November 20, 2018 at 12:40 pm #37242MOHOParticipant
Thanks it work now.
Please close it.
- AuthorPosts
- The topic ‘About the hidden fields of store setting’ is closed to new replies.