Multi Vendor Marketplace Plugin | WCFM Marketplace › Forums › WCFM – Ultimate › Custom Product Type, capabilities
- This topic has 9 replies, 2 voices, and was last updated 5 years, 5 months ago by
WCFM Forum.
- AuthorPosts
- August 26, 2019 at 2:30 pm #78399
dominicanstrading
ParticipantDear support, I created a new WCFM Product type “Ticket” and i want limit capabilities by membership, but the new Product Type not shown in the capabilities option like others.
what to do? thanks.
Henry - August 29, 2019 at 3:53 pm #78999
WCFM Forum
MemberHi,
How you have added custom product types under WCFM product manager?
Thank You
- August 29, 2019 at 4:05 pm #79004
dominicanstrading
ParticipantThank you for answer,
I used this code in other post here:add_filter( ‘wcfm_product_types’, function( $pro_types ) {
$pro_types[‘new_product’] = __( ‘New Product’, ‘woocommerce’ );
return $pro_types;
}, 50 );Best Regards
- August 30, 2019 at 8:24 am #79195
WCFM Forum
MemberGreat, you will require this code for capability controller –
add_filter( 'wcfm_capability_settings_fields_product_types', function( $pro_types, $capability_handler, $capability_manager_options ) { $new_product = ( isset( $capability_manager_options['new_product'] ) ) ? $capability_manager_options['new_product'] : 'no'; $pro_types['new_product'] = array('label' => __('New Product', 'wc-frontend-manager') , 'name' => $capability_handler.'[new_product]','type' => 'checkboxoffon', 'class' => 'wcfm-checkbox wcfm_ele', 'value' => 'yes', 'label_class' => 'wcfm_title checkbox_title', 'dfvalue' => $new_product); return $pro_types; }, 50, 3 );
Thank You
- August 30, 2019 at 3:30 pm #79244
dominicanstrading
ParticipantThank you very much, work perfect!
But, how i combine this [New Product] type to be in the classic woocommerce add product back end? and the product created in wcfm match the [New Product] in the classic woocommerce add product panel and vice-versa like others product type?The situation is, my theme select the product type to show in certain row, but he find the classic wc product types list and this new created product type not show in the list because is created in wcfm only.
Help please, I hope you understand.
Thank you again for your effort.
- September 2, 2019 at 12:37 pm #79612
WCFM Forum
MemberYou are welcome 🙂
Please check this – https://webkul.com/blog/create-a-custom-product-type-in-woocommerce/
Thank You
- September 7, 2019 at 4:10 am #80519
dominicanstrading
ParticipantDear support, thank you very much. everything work perfect, I created 3 new product types with capabilites, is really great! but now i want to achieve this: I want limit product by product type by membership.
Ex: I created Ticket/Event product type, then i want Bronze Membership can only create 1 product in this product type, Silver Membership 3 products in this ticket/event product type, etc.. same with other product type. i haven’t this option in product limits.that’s all i need to complete my work, thank you very mucho for your great support!
- September 9, 2019 at 12:38 pm #80810
WCFM Forum
MemberHi,
You are always welcome 🙂
Are you restricting vendors to add only this type of product?
Or, they also allowed to other product types, like simple, variable etc … ?
Thank You
- September 9, 2019 at 6:31 pm #80880
dominicanstrading
ParticipantDear support,
Yes, vendors allowed to submited all type of products, also Rentals, Subscriptions, Bookings, Appointments, etc.Thank you & Best regards
Henry. - September 14, 2019 at 9:59 pm #81621
WCFM Forum
MemberHI,
OK, then there is a special Product type wise limit capability setting will require.
Well, this will be a custom development. We can do this for you. May reach us here for this – https://wclovers.com/woocommerce-multivendor-customization/
Thank You
- AuthorPosts
- You must be logged in to reply to this topic.