Multi Vendor Marketplace Plugin | WCFM Marketplace › Forums › WC Marketplace › Remove the virtual and downloadable product check boxes
Tagged: downloadable, virtual, Woocommerce
- This topic has 3 replies, 3 voices, and was last updated 4 years, 8 months ago by Sushobhan.
- AuthorPosts
- March 4, 2020 at 9:11 am #109819SheilaParticipant
Hi, everybody, I’m Sheila.
I hope you’re all right. I was wondering if someone could please help me with the snippet code to hide the two check boxes I marked in the attached picture.
The one in Virtual and Downloadable.
Because it creates a lot of confusion in the users of the web.
Thanks in advance.
Attachments:
You must be logged in to view attached files. - March 4, 2020 at 1:07 pm #109843SushobhanKeymaster
Hello,
You can disable these two checkboxes(virtual, downloadable) from Admin dashboard >> Capability under Types disable Virtual and Downloadable option.
Ref – https://ibb.co/wJzC6Gz
Thanks! - March 6, 2020 at 5:38 am #110193claire-0118Participant
Hi Sushobhan,
I was also looking to disable these checkboxes however, those options do not show in my install. I have the latest FREE plugin version, is this function only available on the paid version?
Cheers,
Claire - March 6, 2020 at 12:25 pm #110220SushobhanKeymaster
Hi Claire,
Yes, its a part of our Ultimate plugin. Sorry I forget to mention that earlier. But, if you want to only hide virtual and downloadable options, you won’t need the ultimate plugin, use the following snippet for that-function disable_virtual_downloadable_support( $general_fields ) { if ( isset( $general_fields['is_virtual'] ) ) unset( $general_fields['is_virtual'] ); if ( isset( $general_fields['is_downloadable'] ) ) unset( $general_fields['is_downloadable'] ); return $general_fields; } add_filter( 'wcfm_product_manage_fields_general', 'disable_virtual_downloadable_support' );
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/
- AuthorPosts
- You must be logged in to reply to this topic.