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
    • #81139

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


    • #81152

      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


      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
      This reply has been marked as private.
    • #91003
      WCFM Forum


      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.