Take off downloadable and virtual options for bookable product

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 Take off downloadable and virtual options for bookable product

Viewing 1 reply thread
  • Author
    Posts
    • #43519
      Katherine Reynolds
      Guest

      Hi
      How can I remove the downloadable and virtual tick box options for bookable products (wc bookings)?

    • #43579
      WCFM Forum
      Keymaster

      HI,

      Kindly add this code to your child theme’s functions.php –

      add_filter( 'wcfm_product_manage_fields_general', function( $general_fields, $product_id, $product_type ) {
      	if( isset( $general_fields['is_virtual'] ) ) {
      		$general_fields['is_virtual']['class'] = 'wcfm-checkbox wcfm_ele wcfm_half_ele_checkbox simple non-variable-subscription non-job_package non-resume_package non-redq_rental non-accommodation-booking';
      		$general_fields['is_virtual']['desc_class'] = 'wcfm_title wcfm_ele virtual_ele_title checkbox_title simple non-variable-subscription non-job_package non-resume_package non-redq_rental non-accommodation-booking';
      	}
      	if( isset( $general_fields['is_downloadable'] ) ) {
      		$general_fields['is_downloadable']['class'] = 'wcfm-checkbox wcfm_ele wcfm_half_ele_checkbox simple non-variable-subscription non-job_package non-resume_package non-redq_rental non-accommodation-booking';
      		$general_fields['is_downloadable']['desc_class'] = 'wcfm_title wcfm_ele downloadable_ele_title checkbox_title simple appointment non-variable-subscription non-job_package non-resume_package non-redq_rental non-accommodation-booking';
      	}
      	return $general_fields;
      }, 50, 3 );

      Thank You

Viewing 1 reply thread
  • The topic ‘Take off downloadable and virtual options for bookable product’ is closed to new replies.