Extends custom product type from woocommerce

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 – Feature Request Extends custom product type from woocommerce

Viewing 4 reply threads
  • Author
    Posts
    • #81139
      jaliascv
      Participant

      Hi. is there any way the woocommerce custom product types are automatically loaded into wcfm ?

      thanks!

    • #81152
      jaliascv
      Participant

      hi i managed to add custom product type. but need to modify many files as the list array are mostly hardcoded. thanks!

    • #81713
      WCFM Forum
      Member

      Hi,

      No, you don not require to edit any core file.

      You may add new product type using this code snippet –

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

      Thank You

    • #89376
      rockprince7
      Participant
      This reply has been marked as private.
    • #91003
      WCFM Forum
      Member

      HI,

      Well, that code is only for adding new product type under WCFM Product manager.

      But before doing that you have to register a new product type for WooCommerce.

      You may check this for the purpose – https://webkul.com/blog/create-a-custom-product-type-in-woocommerce/

      Thank YOu

Viewing 4 reply threads
  • You must be logged in to reply to this topic.