Virtual 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!

Tagged: 

Viewing 1 reply thread
  • Author
    Posts
    • #23135
      dale
      Participant

      When a vendor adds a new product Virtual is ticked by default. The majority of the products are not virtual so how do I change it so it’s not ticked by default? Also, just before Virtual it stays Catalog. What is this tick box for?

    • #23136
      WCFM Forum
      Keymaster

      Hi Dale,

      I understand your concern and thanks for get in touch with us for assistance.

      Actually, WC by default set “Virtual” option checked for add product page, so we just follow the same.
      But this can be altered, you just have to add this code to your site –

      function wcfm_product_manage_fields_general_custom_virtual( $general_fields, $product_id, $product_type ) {
      	if( isset( $general_fields['is_virtual'] ) && $product_id ) {
      		$general_fields['is_virtual']['dfvalue'] = '';
      	}
      	return $general_fields;
      }
      add_filter( 'wcfm_product_manage_fields_general', 'wcfm_product_manage_fields_general_custom_virtual', 10, 3 );

      Catalog mode- you may get the idea from here https://wclovers.com/knowledgebase/wcfm-catalog-mode/

      If you still have any queries or require any assistance feel free to reach us anytime.

      Thank You
      Simha

Viewing 1 reply thread
  • The topic ‘Virtual product’ is closed to new replies.