Multi Vendor Marketplace Plugin | WCFM Marketplace › Forums › WC Marketplace › Remove virtual & downloadable products selection?
- This topic has 4 replies, 3 voices, and was last updated 4 years, 10 months ago by WCFM Forum.
- AuthorPosts
- December 13, 2019 at 10:41 pm #97389voc.marcelloParticipant
How Remove virtual & downloadable products selection?
Thank you - December 15, 2019 at 1:12 pm #97532Sarmistha ChakrabortyMember
Hello,
Turn off the “virtual” and “downloadable” product capability from store-manager dashboard. (PFA)
Thanks.
Attachments:
You must be logged in to view attached files. - December 15, 2019 at 4:40 pm #97551voc.marcelloParticipant
I not have this in my store-manager dashboard.
- December 24, 2019 at 10:56 am #98892WCFM ForumMember
Hi,
You have this under WCFM Dashboard -> Capability Setting
If you are using only WCFM Free addon then add this code for the purpose-
add_filter( 'wcfm_product_manage_fields_general', function( $general_fields, $product_id, $product_type ) { if( isset( $general_fields['is_virtual'] ) ) { $general_fields['is_virtual']['class'] = 'wcfm_custom_hide'; $general_fields['is_virtual']['desc_class'] = 'wcfm_custom_hide'; } if( isset( $general_fields['is_downloadable'] ) ) { $general_fields['is_downloadable']['class'] = 'wcfm_custom_hide'; $general_fields['is_downloadable']['desc_class'] = 'wcfm_custom_hide'; } return $general_fields; }, 50, 3 );
Add this code to your child theme’s functions.php
In case you do not have child theme then add code using this plugin – https://wordpress.org/plugins/code-snippets/Thank You
- December 16, 2019 at 6:24 pm #97640Sarmistha ChakrabortyMember
Hello,
Setup the WCFM page from WCFM options (PFA).
Or can you share us the site admin details. Then we can check your settings.Thanks.
Attachments:
You must be logged in to view attached files.
- AuthorPosts
- The topic ‘Remove virtual & downloadable products selection?’ is closed to new replies.