Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author WC Lovers

    (@wclovers)

    i have filled the product name field here you can see
    https://jmp.sh/XMMCfsn

    Where is “downloadable” and “virtual” checkboxes? https://ibb.co/sbbzWdF

    Somehow this check box is enabled so it’s asking for downloadable file name and url, which you have under “Downloadable” tab – https://ibb.co/vw53XP8

    Thread Starter Ameer hamza

    (@ameer-hamza)

    Hi thanks for message
    i deleted them using this code snippet from your website

    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' )

    this is making issue after remove this snippet all is working. Do we need to update this snippet if so kindly do it.
    regards,
    Ameer

    Plugin Author WC Lovers

    (@wclovers)

    This snippet is not right. Use this one –

    add_filter( 'wcfm_product_manage_fields_general', function( $general_fields, $product_id, $product_type ) {
    	$general_fields = wcfm_hide_field( 'is_virtual', $general_fields );
    	$general_fields = wcfm_hide_field( 'is_downloadable', $general_fields );
    return $general_fields;
    }, 50, 3 );
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Product creation showing issues’ is closed to new replies.