Multi Vendor Marketplace Plugin | WCFM Marketplace › Forums › WCFM – Ultimate › About "Check this to exclude this product from all Global Addons"
Tagged: WooCommerce addons
- This topic has 5 replies, 2 voices, and was last updated 6 years, 2 months ago by WCFM Forum.
Viewing 5 reply threads
- AuthorPosts
- September 13, 2018 at 7:09 am #31552
- September 13, 2018 at 8:22 am #31562WCFM ForumMember
Hi,
Yeah right, “Global Addon” is possible to create inly from wp-admin area, WCFM has no place for this yet.
Thank You
- September 13, 2018 at 8:25 am #31563MOHOParticipant
Got it!
How could i hide “Global Addon Exclusion” option for all products?My Shop manager no need to see this option, thanks.
- September 13, 2018 at 8:35 am #31564WCFM ForumMember
Hi,
Please add this code snippet for the purpose –
add_filter( 'wcfm_product_manage_fields_wcaddons', function( $global_addon_fields ) { if( isset( $global_addon_fields['_product_addons_exclude_global'] ) ) { $global_addon_fields['_product_addons_exclude_global']['label_class'] = 'wcfm_custom_hide'; $global_addon_fields['_product_addons_exclude_global']['class'] = 'wcfm_custom_hide'; } return $global_addon_fields; });
Thank You
- September 13, 2018 at 8:46 am #31565MOHOParticipant
Thanks it work now.
Please close it.
- September 13, 2018 at 10:59 am #31585WCFM ForumMember
Great, you are welcome 🙂
- AuthorPosts
Viewing 5 reply threads
- The topic ‘About "Check this to exclude this product from all Global Addons"’ is closed to new replies.