How to set Bookable Product as Default selected Product for Vendors

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) How to set Bookable Product as Default selected Product for Vendors

Viewing 3 reply threads
  • Author
    Posts
    • #61981
      mshafiqtahir.macit
      Participant

      I want to set the Bookable Product(Product Type) as default selected product for vendors.

    • #62232
      mshafiqtahir.macit
      Participant

      Is there anyone who knows this.

    • #62307
      Maru
      Guest

      I am currently creating a rental marketplace. I want to set the Bookable Product(Product Type) as default selected product for vendors, so that way the calendar will show for each product. Is this possible? Thanks!

    • #62411
      WCFM Forum
      Keymaster

      Hi,

      Please add this code to your child theme’s functions.php for the purpose –

      
      add_filter( 'wcfm_product_manage_fields_general', function( $general_fields, $product_id, $product_type ) {
      	if( !$product_id && isset( $general_fields['product_type'] ) ) {
      		$general_fields['product_type']['value'] = 'booking';
      	}
      	return $general_fields;
      }, 150, 3 );

      Well, you may disable other product types for your vendors from WCFM Capability section.

      Thank You

Viewing 3 reply threads
  • The topic ‘How to set Bookable Product as Default selected Product for Vendors’ is closed to new replies.