Is there a way to hide the 'virtual' checkbox from the simple product?

We're shifting our Forum based support to a more dedicated support system!

We'll be closing our Forum support from 10th June, 2020 and move to Email Support assistance.

  • If you are a WCFM premium add-ons user, contact us- here
  • Want to know more before buying our add-ons? Send Pre sale queries- here
  • If you are a WCFM free user, please open a support ticket at WordPress.org
  • For WCFM App related queries, reach us- here
From now the forum will be read-only!

Multi Vendor Marketplace Plugin | WCFM Marketplace Forums WCFM – Marketplace (WooCommerce Multivendor Marketplace) Is there a way to hide the 'virtual' checkbox from the simple product?

Viewing 3 reply threads
  • Author
    Posts
    • #91686
      sean.leonard
      Participant

      Not sure if this page is still relevant:
      https://wclovers.com/knowledgebase/wcfm-product-manager/

      It shows options related to restricting what product options vendors see. I cannot find these options. Is there a way to hide the ‘virtual’ option from the products?

    • #91768

      Hello,

      In admin WCFM dashboard – “Capability” tab you will find the option.

      Thanks.

      Attachments:
      You must be logged in to view attached files.
    • #91858
      sean.leonard
      Participant

      Am i missing something in the install? My capability tab looks different

      Attachments:
      You must be logged in to view attached files.
    • #91934
      WCFM Forum
      Keymaster

      Well, I think you are using only WCFM Free version. Those capability options comes with WCFM Ultimate.

      You may use this code to hide “virtual checkbox” –

      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_custom_hide';
      		$general_fields['is_virtual']['desc_class'] = 'wcfm_custom_hide';
      	}
      	return $general_fields;
      }, 50, 3 );

      Add this code to your child theme’s functions.php
      In case you do not have child theme then add code using this plugin – https://wordpress.org/plugins/code-snippets/

Viewing 3 reply threads
  • The topic ‘Is there a way to hide the 'virtual' checkbox from the simple product?’ is closed to new replies.