Multi Vendor Marketplace Plugin | WCFM Marketplace › Forums › WCFM › Take off downloadable and virtual options for bookable product
- This topic has 1 reply, 2 voices, and was last updated 5 years, 3 months ago by WCFM Forum.
Viewing 1 reply thread
- AuthorPosts
- January 14, 2019 at 5:16 pm #43519Katherine ReynoldsGuest
Hi
How can I remove the downloadable and virtual tick box options for bookable products (wc bookings)? - January 15, 2019 at 6:29 am #43579WCFM ForumKeymaster
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
- AuthorPosts
Viewing 1 reply thread
- The topic ‘Take off downloadable and virtual options for bookable product’ is closed to new replies.