Vendor Shop | Banner

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 2 reply threads
  • Author
    Posts
    • #33215
      wwsAdmin
      Participant

      Hi team,

      In vendor account store settings,store banner type should be fixed to static.

      I tried but no setting is there ?

      can u help me
      thanks

    • #33281
      WCFM Forum
      Member

      HI,

      Hope you want to restrict this to “Static Image”, right?

      There is no setting for restrict this, add this code for disabling that option –

      function wcfm_marketplace_settings_fields_0410_general( $general_fields, $vendor_id ) {
      	if( isset( $general_fields['banner_type'] ) ) {
      		$general_fields['banner_type']['options'] = array( 'single_img' => 'single_img' );
      		$general_fields['banner_type']['value'] = 'single_img';
      		$general_fields['banner_type']['class'] = 'wcfm_custom_hide';
      		$general_fields['banner_type']['label_class'] = 'wcfm_custom_hide';
      	}
      	return $general_fields;
      }
      add_filter('wcfm_marketplace_settings_fields_general', 'wcfm_marketplace_settings_fields_0410_general', 50, 2 );

      Thank You

    • #33298
      wwsAdmin
      Participant

      Hi yes

      You got it right thankssssss
      🙂

Viewing 2 reply threads
  • The topic ‘Vendor Shop | Banner’ is closed to new replies.