How to hide some options for vendor

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!

Viewing 10 reply threads
  • Author
    Posts
    • #66785
      Jose
      Participant

      Hi,

      I would like to hide some options that changed and others new.

      1.- Catalog visibility for vendors
      2.- Just allow private notes in orders
      3.- Hide facebook and Twitters settings in SEO (I have off social in profile capability)
      4.- Hide option of Hide map in vendor setting

      Please see the attachments

      Regards and thank you !

      Attachments:
      You must be logged in to view attached files.
    • #67031
      WCFM Forum
      Keymaster

      Hi,

      Use these code snippets for the purpose –

      1.- Catalog visibility for vendors

      add_filter( 'wcfm_is_allow_products_manage_visibility', '__return_false' );

      2.- Just allow private notes in orders

      – Add this CSS – #order_note_type{display:noe!important;}

      3.- Hide facebook and Twitters settings in SEO (I have off social in profile capability)

      add_filter( 'wcfm_is_allow_vendor_seo_facebook', '__return_false' );
      add_filter( 'wcfm_is_allow_vendor_seo_twitter', '__return_false' );

      4.- Hide option of Hide map in vendor setting

      add_filter( 'wcfm_is_allow_store_map_location', '__return_false' );

      Thank You

    • #67037
      Jose
      Participant

      Hi,

      Thanks a lot for the codes.

      But, N° 1 and 4 don’t work

      Regards,

    • #67132
      WCFM Forum
      Keymaster

      Hi,

      Please use this snippet for that –

      add_filter( 'product_simple_fields_visibility', function( $catalog_fields ) {
      	$catalog_fields =	wcfm_hide_field( 'catalog_visibility', $catalog_fields ); 
      	return $catalog_fields;
      });

      Thank You

    • #67197
      Jose
      Participant

      Hi,

      Thanks so much, now work fine.

      Just you forgot to try with another code for N°4 because don’t work. Will be great for us.

      Regards,

      Attachments:
      You must be logged in to view attached files.
    • #67239
      inspire
      Participant
      This reply has been marked as private.
    • #67474
      WCFM Forum
      Keymaster

      Hi,

      Please be sure you are using WCFM 6.1.5+

      Thank You

    • #71088
      Jose
      Participant

      Hi,

      I’m back… You helped me to hide backorder in stock manager, but I need to hide the same option inside product setting (Inventory)

      Regards,

      Attachments:
      You must be logged in to view attached files.
    • #71291
      WCFM Forum
      Keymaster

      Hi,

      Use this code snippet –

      add_filter( 'wcfm_product_fields_stock', function( $stock_fields, $product_id, $product_type ) {
      	if( isset( $stock_fields['stock_status'] ) ) {
      		$stock_fields['stock_status']['options'] = array( 'instock' => __('In stock', 'wc-frontend-manager'), 'outofstock' => __('Out of stock', 'wc-frontend-manager') );
      	}
        return $stock_fields;
      }, 50, 3 );

      Thank You

    • #71316
      Jose
      Participant

      Hi,

      Work perfect !!

      Thanks you so much

    • #71384
      WCFM Forum
      Keymaster

      Welcome 🙂

Viewing 10 reply threads
  • The topic ‘How to hide some options for vendor’ is closed to new replies.