Hide Fields

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!

Tagged: 

Viewing 10 reply threads
  • Author
    Posts
    • #20937
      bradziajor
      Participant

      Please assist me to hide the following fields:

      Settings -> Store Settings:

      Logo
      Shop Name
      Profile

      I am also wondering if it is possible to remove the WooCommerce Header which has buttons for Dashboard, Edit Page, WCFM, etc.

    • #20947
      WCFM Forum
      Member

      Hi,

      You can disable “Profile” from WCFM capability.

      Logo and Store Name – requires some custom coding to hide from edit settings.

      “I am also wondering if it is possible to remove the WooCommerce Header which has buttons for Dashboard, Edit Page, WCFM, etc.” – can you please show me screenshot for this.

      Thank You

    • #20976
      bradziajor
      Participant

      1) I disabled the profile under
      capability -> Profile
      capability -> Profile -> Address
      capability -> profile -> social

      However, it is still there under store settings.

      2) Screenshot attached. It is the black bar at the top

      3) Still require to Hide Logo and Store Name

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

      Hi,

      Kindly show me screenshot for capability and vendor settings page.

      For hide top bar use this – https://wordpress.org/plugins/hide-admin-bar/

      Thank You

    • #21042
      bradziajor
      Participant

      Attached.

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

      Hi,

      Capability settings is perfect.

      Tell me one thing, are you WCFM – Groups & Staffs as well? If so, then have to set this for Group capabilities as well.

      Thank You

    • #21076
      bradziajor
      Participant

      No, I do not use groups and staffs.

    • #21078
      Brad
      Guest

      As you can see, the profile, logo, and Shop Name are still showing. Please assist in hiding.

    • #21085
      WCFM Forum
      Member

      Hi,

      Logo and Store Name – requires some custom coding to hide from edit settings.

      Kindly use this filter for the purpose – “wcfm_wcpvendors_settings_fields_store”

      Thank You

    • #21140
      bradziajor
      Participant

      Could you give me some more details on the filter? I don’t know where I can find that or how to use it.

    • #21176
      WCFM Forum
      Member

      Hi,

      Kindly use this code for the purpose –

      function wcfm_wcpvendors_settings_fields_store_manipulate( $setting_fields ) {
      	if( isset( $setting_fields['wcfm_logo'] ) ) {
      		$setting_fields['wcfm_logo']['class'] = 'wcfm_custom_hide';
      		$setting_fields['wcfm_logo']['label_class'] = 'wcfm_custom_hide';
      	}
      	if( isset( $setting_fields['shop_name'] ) ) {
      		$setting_fields['shop_name']['class'] = 'wcfm_custom_hide';
      		$setting_fields['shop_name']['label_class'] = 'wcfm_custom_hide';
      	}
      	if( isset( $setting_fields['shop_description'] ) ) {
      		$setting_fields['shop_description']['class'] = 'wcfm_custom_hide';
      		$setting_fields['shop_description']['label_class'] = 'wcfm_custom_hide';
      	}
      	return $setting_fields;
      }
      add_filter( 'wcfm_wcpvendors_settings_fields_store', 'wcfm_wcpvendors_settings_fields_store_manipulate' );

      Thank You

Viewing 10 reply threads
  • The topic ‘Hide Fields’ is closed to new replies.