Multi Vendor Marketplace Plugin | WCFM Marketplace › Forums › WCFM – Marketplace (WooCommerce Multivendor Marketplace) › Help me default these business visibility setup and hide it for seller
- This topic has 10 replies, 3 voices, and was last updated 4 years, 6 months ago by eritechdeveloper.
- AuthorPosts
- May 9, 2020 at 4:28 pm #128834eritechdeveloperParticipant
Hi,
Please help me default business name position to On Banner, services per page to 10, hide map from business = false, and hide about from business = false. As per the image below
Then hide it.
<br />short and funny love poems<br />
Best regards,
Robel - May 9, 2020 at 4:35 pm #128836eritechdeveloperParticipant
Sorry I meant to default the business name position to the header.
- May 12, 2020 at 11:48 am #129890Sarmistha ChakrabortyMember
Hello,
Set “Store Name Position” and “Products per page” from admin WCFM dashboard -> Settings-> Marketplace settings, that will reflect vendor’s settings page by-default value. And by-default “hide map from business” and “hide about from business” default value is false(unchecked)
Thanks.
Attachments:
You must be logged in to view attached files. - May 12, 2020 at 3:14 pm #129997eritechdeveloperParticipant
Hi Sarmistha,
Thanks, now how do I add these options from the vendor’s settings page? as in the whole business visibility setup.
- May 12, 2020 at 7:05 pm #130051Sarmistha ChakrabortyMember
Hello,
We didn’t get you, Vendor already have the options(Store Name Position,Products per page etc.) in his settings page.
Thanks.
- May 12, 2020 at 7:26 pm #130060eritechdeveloperParticipant
I want to hide these options from the vendor page. 🙂
I don’t want the vendor to be able to make changes to it.
- May 12, 2020 at 7:34 pm #130063Sarmistha ChakrabortyMember
Hello,
Okay, 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/add_filter('wcfm_marketplace_settings_fields_visibility','fn_wcfm_marketplace_settings_fields_visibility_1205',9,2); function fn_wcfm_marketplace_settings_fields_visibility_1205($vendorsetting,$vendor_id) { global $WCFM, $WCFMmp; unset($vendorsetting['store_name_position']); unset($vendorsetting['store_ppp']); unset($vendorsetting['store_hide_map']); unset($vendorsetting['store_hide_description']); return $vendorsetting; }
Thanks.
- May 12, 2020 at 9:13 pm #130130eritechdeveloperParticipant
Thanks that nearly worked, I can still see the title Business Visbility Setup. Please help me hide that too.
- May 13, 2020 at 2:37 pm #130371Sarmistha ChakrabortyMember
Hello,
If you want to hide all “Business Visbility Setup” from vendor’s setting panel use this code snippet
add_filter( 'wcfm_is_allow_store_visibility', '__return_false' );
Thanks.
- May 13, 2020 at 11:26 am #130311HenrietteParticipant
I managed this with this snippet I also got from this forum:
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 );
- May 14, 2020 at 9:03 pm #131006eritechdeveloperParticipant
thank you both
- AuthorPosts
- You must be logged in to reply to this topic.