About the hidden fields of store setting

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 4 reply threads
  • Author
    Posts
    • #36895
      MOHO
      Participant

      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.
    • #36967
      WCFM Forum
      Keymaster

      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

    • #37126
      MOHO
      Participant

      Your code work

      and thanks for your checking “Slider Hyperlink” only admin could set about my requirement.

    • #37195
      WCFM Forum
      Keymaster

      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

    • #37242
      MOHO
      Participant

      Thanks it work now.

      Please close it.

Viewing 4 reply threads
  • The topic ‘About the hidden fields of store setting’ is closed to new replies.