Help me default these business visibility setup and hide it for seller

We're shifting our Forum based support to a more dedicated support system!

We'll be closing our Forum support from 10th June, 2020 and move to Email Support assistance.

  • If you are a WCFM premium add-ons user, contact us- here
  • Want to know more before buying our add-ons? Send Pre sale queries- here
  • If you are a WCFM free user, please open a support ticket at WordPress.org
  • For WCFM App related queries, reach us- here
From now the forum will be read-only!

Multi Vendor Marketplace Plugin | WCFM Marketplace Forums WCFM – Marketplace (WooCommerce Multivendor Marketplace) Help me default these business visibility setup and hide it for seller

Viewing 9 reply threads
  • Author
    Posts
    • #128834
      eritechdeveloper
      Participant

      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.

      Capture45<br />short and funny love poems<br />

      Best regards,
      Robel

    • #128836
      eritechdeveloper
      Participant

      Sorry I meant to default the business name position to the header.

    • #129890

      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.
    • #129997
      eritechdeveloper
      Participant

      Hi Sarmistha,

      Thanks, now how do I add these options from the vendor’s settings page? as in the whole business visibility setup.

    • #130051

      Hello,

      We didn’t get you, Vendor already have the options(Store Name Position,Products per page etc.) in his settings page.

      Thanks.

    • #130060
      eritechdeveloper
      Participant

      I want to hide these options from the vendor page. 🙂

      I don’t want the vendor to be able to make changes to it.

    • #130063

      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.

    • #130130
      eritechdeveloper
      Participant

      Thanks that nearly worked, I can still see the title Business Visbility Setup. Please help me hide that too.

      • #130371

        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.

    • #130311
      Henriette
      Participant

      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 );
    • #131006
      eritechdeveloper
      Participant

      thank you both

Viewing 9 reply threads
  • You must be logged in to reply to this topic.