• Resolved fkarimi

    (@fkarimi)


    Hello,

    Am trying to uncheck the virtual and downloadable products options with the below code ;
    function disable_virtual_downloadable_support( $general_fields ) {
    if ( isset( $general_fields[‘is_virtual’] ) )
    unset( $general_fields[‘is_virtual’] );
    if ( isset( $general_fields[‘is_downloadable’] ) )
    unset( $general_fields[‘is_downloadable’] );
    return $general_fields;
    }

    add_filter( ‘wcfm_product_manage_fields_general’, ‘disable_virtual_downloadable_support’ );

    However, once I run it and try creating a new product it brings back the following errors;
    Name : This Field is required
    File : This Field is required

    Any fix on the above issue?

    Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Virtual & downloadable products option removal’ is closed to new replies.