wcfm-santa

A deal you can't resist! Get upto 35% Off on this entire cyber week.

CLAIM OFFER
02Day 11Hr 25Min 43Sec
wcfm-santa

Diable downloadable products and set virtual as default

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 WC Marketplace Diable downloadable products and set virtual as default

Viewing 1 reply thread
  • Author
    Posts
    • #121153
      ZK
      Participant

      Hi

      Is there a way to disable “Downloadable” products and set “Virtual” products as default. I have been able to do this in woocommerce but seems it doesn’t effect the WCMP plugin.

      b/w

    • #121268
      Sushobhan
      Keymaster

      Hello,
      Thanks for getting in touch with us.
      To disable “Downloadable” products go to Capabilities menu from your WCFM Dashboard. From there uncheck “Downloadable” under Types. Refer to this- https://imgur.com/hn4eenB
      Now to set Virtual as default use the following snippt-

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

      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/
      Let me know how it goes.
      Thanks!

Viewing 1 reply thread
  • You must be logged in to reply to this topic.