could I do a new product type?

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!

Viewing 3 reply threads
  • Author
    Posts
    • #70071
      simiao jiang
      Participant

      when I use the option of ADVANCED CUSTOM FIELDS FOR PRODUCTS
      it is a cool option, but it’s an exlude option only for the product type.

      you know ,it is difficult to make a new product type.
      It must be very useful to let administrator to do that.

      1 add a new product name NEWPRODUCT.
      2 let NEWPRODUCT could be submit by vendors.
      3 add new custom fields to the NEWPRODUCT.

      like this

    • #70267
      WCFM Forum
      Keymaster

      HI,

      Yeah sure, for WCFM you require code like this –

      add_filter( 'wcfm_product_types', function( $pro_types ) {
        	$pro_types['new_product'] = __( 'New Product', 'woocommerce' );
        	return $pro_types;
       }, 50 );

      Thank You

    • #70894
      simiao jiang
      Participant

      thanks, it works.

    • #71003
      WCFM Forum
      Keymaster

      Great … you are welcome 🙂

Viewing 3 reply threads
  • The topic ‘could I do a new product type?’ is closed to new replies.