Multi Vendor Marketplace Plugin | WCFM Marketplace › Forums › WCFM – Ultimate › New Product Type
- This topic has 8 replies, 3 voices, and was last updated 6 years, 7 months ago by Bingal.
- AuthorPosts
- April 25, 2018 at 7:35 pm #22363omar masrurGuest
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
- April 27, 2018 at 8:20 am #22422omarGuest
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!
- April 27, 2018 at 8:54 am #22429WCFM ForumMember
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
- April 27, 2018 at 9:26 am #22430omarGuest
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!
- April 27, 2018 at 9:35 am #22431BingalMember
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.
- April 27, 2018 at 3:26 pm #22444OmarGuest
New product type is “Tender” and slug is “tender”. Thank you.
- April 27, 2018 at 8:17 pm #22453WCFM ForumMember
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
- April 28, 2018 at 5:16 pm #22488omarGuest
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
- April 29, 2018 at 8:28 am #22508BingalMember
Taken care of this in mail, closing this here.
- AuthorPosts
- The topic ‘New Product Type’ is closed to new replies.