Support » Plugin: WooCommerce » Remove virtual & downloadable products selection

  • Resolved indrabhusanroy

    (@indrabhusanroy)


    Hi, can you please help me to remove virtual & downloadable products selection under simple products when somebody tries to add a simple product.

    Regards
    Indra

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Elvira K

    (@treibalen)

    Hi @indrabhusanroy,

    I just tested adding this snippet with the Code Snippet plugin, and now the Virtual and Downloadable checkboxes are no longer visible in the Product Data block:

    function my_remove_product_type_options( $options ) {
    	if ( isset( $options['virtual'] ) ) {
    		unset( $options['virtual'] );
    	}
    	if ( isset( $options['downloadable'] ) ) {
    		unset( $options['downloadable'] );
    	}
    	return $options;
    }
    add_filter( 'product_type_options', 'my_remove_product_type_options' );

    Please let me know if that’s what you’ve been looking for!

    Cheers!

    • This reply was modified 10 months, 2 weeks ago by  Elvira K.
    • This reply was modified 10 months, 2 weeks ago by  Elvira K.

    Hi, thanks. The code is working perfectly for woocommerce but I am using multivendor plugin: WooCommerce Multivendor Marketplace by wc lovers where this code is not working. can you help to integrate it.

    Also I don’t want shipping as I will give the option of Takeout to my customers via another plugin. So what is the best way to disable shipping for simple products. I have disabled shipping & calculations via woocommerce settings page. Will this help or Should I post my products as virtual items?

    Regards

    Plugin Support Hannah S.

    (@fernashes)

    Automattic Happiness Engineer

    The code is working perfectly for woocommerce but I am using multivendor plugin: WooCommerce Multivendor Marketplace by wc lovers where this code is not working. can you help to integrate it.

    As we aren’t the developers of that plugin, I’m afraid I don’t have insight into how to do that. Have you reached out to the Multivendor Marketplace team?

    > Also I don’t want shipping as I will give the option of Takeout to my customers via another plugin. So what is the best way to disable shipping for simple products. I have disabled shipping & calculations via woocommerce settings page.

    Disabling the page won’t actually help you here. You can disable shipping entirely via WooCommerce > Settings:

    Disable shipping
    Link to image: http://cld.wthms.co/Yi9kub

    You may need to re-enable it, depending on how your takeout plugin works.

    djks74

    (@djks74)

    This code not working! please give a tip.
    trying also wc remove tabs and fileds plugin and not working. I look into the php code the plugin also same ‘product_type_options’ which might be outdated?

    please help…. Thanks

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Remove virtual & downloadable products selection’ is closed to new replies.