wcfm-santa

A deal you can't resist! Get upto 35% Off on this entire cyber week.

CLAIM OFFER
00Day 03Hr 57Min 10Sec
wcfm-santa

Disable Brands field when vendor is adding new product

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 Disable Brands field when vendor is adding new product

Viewing 9 reply threads
  • Author
    Posts
    • #109246
      marcinzywy
      Participant

      Hello WC Lovers,

      I would like to disable ‘Brands’ field when vendor is adding a new product.

      I only managed to hide ‘Tags’ but I can not find any option to disable ‘Brands’.

      Thank you for your help!

    • #109780
      Molay Das
      Keymaster

      Hi,

      Which plugin are you using for product brands?

      Thanks,

    • #109874
      marcinzywy
      Participant

      Hi,

      I have:

      WCFM – WooCommerce Frontend Manager 6.4.4
      WCFM – WooCommerce Frontend Manager – Ultimate 6.4.4
      WCFM – WooCommerce Multivendor Marketplace 3.3.3
      WCFM – WooCommerce Multivendor Membership 2.8.1
      WooCommerce 3.9.2

      …and Martfury Theme version 2.2.2

    • #110083
      Molay Das
      Keymaster

      Hi,

      Please add the below given code to your child theme’s functions.php file. If you are not using any child theme then use “Code Snippets” ( https://wordpress.org/plugins/code-snippets/ ) plugin to add this code.

      add_filter( 'wcfm_is_allow_custom_taxonomy', 'cus_wcfm_is_allow_custom_taxonomy', 10, 2 );
      function cus_wcfm_is_allow_custom_taxonomy() {
      	if ( wcfm_is_vendor() ) {
      		return false;
      	}
      	else {
      		return true;
      	}
      }

      Thanks,

    • #110691
      marcinzywy
      Participant

      Hi, thank you for the code but this didn’t work.

      It made no difference and vendors still can see the filed ‘brands’ when adding new product.

    • #110934
      Molay Das
      Keymaster

      Hi,

      Its working fine for me here. Are you talking about the brand section under “Add Product” section? Please have a look at the red marked area in the attached screenshot below.

      Thanks,

      Attachments:
      You must be logged in to view attached files.
    • #112264
      marcinzywy
      Participant

      Hi Molay Das,

      I think it does not work as I use different view – dropdown instead of list.

      Please see the screenshot: https://ibb.co/8MGXQ6g

      Thank you for your help.

    • #112546
      Molay Das
      Keymaster

      Hi,

      Can you share your website login details with us, we will get back to you.

      Please share your website login credentials as private reply here.

      Thanks,

    • #113115
      marcinzywy
      Participant

      Hi,

      This is now solved – I think there was a problem with my child theme functions.php but now your code is working OK!

      Thank you for your help 🙂

    • #113159
      Molay Das
      Keymaster

      Hi,

      You’re most welcome. 🙂

      Let me know if there’s anything else we can help you with.
      Can we ask for a favor? Would you mind taking a few minutes to review our plugin at https://wordpress.org/support/plugin/wc-multivendor-marketplace/reviews/ and let others know about your 5 Star experience with WCFM Marketplace. Also, follow us on Twitter https://twitter.com/wcfmmp for more exciting news, important updates, and irresistible offers.

      Thanks,

Viewing 9 reply threads
  • You must be logged in to reply to this topic.