Remove Product Types and Virtual Product checkbox

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 Remove Product Types and Virtual Product checkbox

Viewing 2 reply threads
  • Author
    Posts
    • #16341
      Max
      Guest

      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

    • #16344
      WCFM Forum
      Keymaster

      Hi,

      Kindly use WCFM Capability Controller for this.

      Please check this for better reference – https://wclovers.com/knowledgebase/wcfm-capability-controller/

      Thank You
      Simha

    • #16422
      WCFM Forum
      Keymaster

      HI,

      This issue already resolved for you.

      Feel free to reach us for any assistance.

      Thank You

Viewing 2 reply threads
  • The topic ‘Remove Product Types and Virtual Product checkbox’ is closed to new replies.