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 8 reply threads
  • Author
    Posts
    • #22363
      omar masrur
      Guest

      Hello…I am using WCFMU with Dokan Pro.

      I have created a new woocommerce product type and am able to add new products of this type from back-end.

      How do I get this new product type to show in WCFMU front-end?

      tks

    • #22422
      omar
      Guest

      Hello…can I please get an answer to this.

      I read in some other forum posts that you will be able to help in this.

      tks!

    • #22429
      WCFM Forum
      Keymaster

      Hi,

      Sorry for a bit delayed response.

      You just have to add that product type in front-end using this filter – “wcfm_product_types”

      Thank You

    • #22430
      omar
      Guest

      No worries. You guys are extraordinarily responsive and helpful!

      May i ask

      1. the full filter code please.
      2. Should I add this to my child theme’s functions.php file?

      thanks again!

    • #22431
      Bingal
      Keymaster

      Hi,

      Can you know me your new product type name and slug, I will give you full code on the basis of that.

      Yeah, you may add this any where in the site.

      Thanks for your cooperation.

    • #22444
      Omar
      Guest

      New product type is “Tender” and slug is “tender”. Thank you.

    • #22453
      WCFM Forum
      Keymaster

      Hi,

      Here is the code for you –

      function tender_product_types( $pro_types ) {
      	$pro_types['tender'] = __( 'Tender', 'wc-tender' );
      	return $pro_types;
      }
      add_filter( 'wcfm_product_types', 'tender_product_types', 90 );

      Thank You

    • #22488
      omar
      Guest

      Fantastic. That worked beautifully!

      When this new product type is selected, i want to control which woocommerce fields are show since most are not relevant. For example, I dont want to show the inventory menu.

      Is it possible to control which menu items are displayed?

      tks

    • #22508
      Bingal
      Keymaster

      Taken care of this in mail, closing this here.

Viewing 8 reply threads
  • The topic ‘New Product Type’ is closed to new replies.