• Resolved DimaW

    (@dimaw)


    Hello,

    is there a option to only allow downloadable products for vendors? So all unnecessary fields during the product creation process will be unvisible?

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

    (@wclovers)

    Hi,

    Thanks for get in touch with us.

    Well, first please go to WCFM Capability Setting as Admin login and disable other product types, except “Simple” – https://ibb.co/wgQrzfd

    Now, you will see no product type drop-down at product manager.

    Thank You

    Thread Starter DimaW

    (@dimaw)

    Hi,

    thanks for the answer. Ich found that Option. Bitte there are still fields Like “unit” andere Themen vendor have time check the boxes for “virtual” and “downloadable”.
    Ist ist possible top pre Check this boxes with one of your settings?

    Plugin Author WC Lovers

    (@wclovers)

    Hi,

    Ist ist possible top pre Check this boxes with one of your settings?

    Well, there is no setting for this, but you may add this code snippet to child theme’s functions.php and hence those will be always checked by default –

    add_filter( 'wcfm_product_manage_fields_general', function( $general_fields, $product_id, $product_type ) {
    	if( isset( $general_fields['is_virtual'] ) ) {
    		$general_fields['is_virtual']['dfvalue'] = 'enable';
    	}
    	if( isset( $general_fields['is_downloadable'] ) ) {
    		$general_fields['is_downloadable']['dfvalue'] = 'enable';
    	}
    	return $general_fields;
    }, 50, 3 );

    Thank You

    Thread Starter DimaW

    (@dimaw)

    Thanks, thats great 🙂 Very usefull filters.

    Plugin Author WC Lovers

    (@wclovers)

    Welcome 🙂

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Make only downloadable products available?’ is closed to new replies.