Multi Vendor Marketplace Plugin | WCFM Marketplace › Forums › WCFM – Feature Request › Extends custom product type from woocommerce
- This topic has 4 replies, 3 voices, and was last updated 5 years, 1 month ago by WCFM Forum.
Viewing 4 reply threads
- AuthorPosts
- September 11, 2019 at 9:49 am #81139jaliascvParticipant
Hi. is there any way the woocommerce custom product types are automatically loaded into wcfm ?
thanks!
- September 11, 2019 at 10:48 am #81152jaliascvParticipant
hi i managed to add custom product type. but need to modify many files as the list array are mostly hardcoded. thanks!
- September 15, 2019 at 1:02 am #81713WCFM ForumMember
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
- October 28, 2019 at 4:25 pm #89376rockprince7ParticipantThis reply has been marked as private.
- November 6, 2019 at 8:52 am #91003WCFM ForumMember
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
- AuthorPosts
Viewing 4 reply threads
- You must be logged in to reply to this topic.