About "Check this to exclude this product from all Global Addons"

We're shifting our Forum based support to a more dedicated support system!

We'll be closing our Forum support from 10th June, 2020 and move to Email Support assistance.

  • If you are a WCFM premium add-ons user, contact us- here
  • Want to know more before buying our add-ons? Send Pre sale queries- here
  • If you are a WCFM free user, please open a support ticket at WordPress.org
  • For WCFM App related queries, reach us- here
From now the forum will be read-only!

Multi Vendor Marketplace Plugin | WCFM Marketplace Forums WCFM – Ultimate About "Check this to exclude this product from all Global Addons"

Viewing 5 reply threads
  • Author
    Posts
    • #31552
      MOHO
      Participant

      I use WooCommerce addons plugin

      Shop manager will see this “Global Addon Exclusion” option.

      But only Admin could add “Global Addon” at backend, right?

      Attachments:
      You must be logged in to view attached files.
    • #31562
      WCFM Forum
      Member

      Hi,

      Yeah right, “Global Addon” is possible to create inly from wp-admin area, WCFM has no place for this yet.

      Thank You

    • #31563
      MOHO
      Participant

      Got it!
      How could i hide “Global Addon Exclusion” option for all products?

      My Shop manager no need to see this option, thanks.

    • #31564
      WCFM Forum
      Member

      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

    • #31565
      MOHO
      Participant

      Thanks it work now.

      Please close it.

    • #31585
      WCFM Forum
      Member

      Great, you are welcome 🙂

Viewing 5 reply threads
  • The topic ‘About "Check this to exclude this product from all Global Addons"’ is closed to new replies.