Multi Vendor Marketplace Plugin | WCFM Marketplace › Forums › WCFM › Remove Product Types and Virtual Product checkbox
- This topic has 2 replies, 2 voices, and was last updated 6 years, 4 months ago by WCFM Forum.
- AuthorPosts
- November 30, 2017 at 4:21 pm #16341MaxGuest
Hi,
I was wondering how to remove Product types for Vendors in the WCFM.
Through the functions.php file in my child theme I have removed the products being visible in Woocommerce and it works site wide, apart from in the WCFM, so I guess I need to change something there too.
Also I want to remove the virtual product checkbox and I guess I can do that via the child theme too, but I am stuck since when I try and edit the wc_frontend_manager.php to add:
add_filter( ‘product_type_selector’, ‘remove_product_types’ );
function remove_product_types( $types ){
unset( $types[‘grouped’] );
unset( $types[‘external’] );
unset( $types[‘variable’] );
unset( $types[‘simple’] );return $types;
}It results in my site showing an error 500
Do you have any suggestions?
Kind regards,
Max - November 30, 2017 at 8:02 pm #16344WCFM ForumKeymaster
Hi,
Kindly use WCFM Capability Controller for this.
Please check this for better reference – https://wclovers.com/knowledgebase/wcfm-capability-controller/
Thank You
Simha - December 2, 2017 at 6:12 am #16422WCFM ForumKeymaster
HI,
This issue already resolved for you.
Feel free to reach us for any assistance.
Thank You
- AuthorPosts
- The topic ‘Remove Product Types and Virtual Product checkbox’ is closed to new replies.