Easy to add Vendor category on WCFM Dashboard – Show on store page

Easy to add Vendor category on WCFM Dashboard – Show on store page

All data or code collected from WCFM official support team. Also, code tested.

The code worked fine and now the vendor “categories” are stored in the database in the user meta.

We’ve added a custom field so that the vendors can choose their category but it’s not quite what we are looking for, as we can’t use this field as a search filter.
For example, we want to have vendor categories such as electronics, clothes, accessories, etc (if our vendors sell products) or specialties (like dentists, pathologists, photographers, etc) if they offer services. From that categories we want them to make their choice during the membership steps, so we can later query our vendors by their category.
We’ve tried with the Vendors Group but it is not what we want, because we can only assign one group to our subscription plans, but we need more than one group per plan.

1st method:

Please try this code –

Implementation

Add code on your child theme function.php file. 

or add via the plugin

  1. Copy the code:
  2. Add new Code snippet in the Code Snippets plugin
  3. Paste the code snippet.
  4. Activate it.

 

2nd method:

 

Enable these features via plugin :

Download Plugin: here

 

“making it searchable with the sidebar in store listing Page”
– WCFM Marketplace already has this feature. You have to add this widget to the store list page sidebar – https://ibb.co/dPyV097

 

 

Another post: 

 

 

Check out our categories: Android Update, Elementor, flutter, Guide, Game, Plugin, Theme, webmaster, SEO, Woocommerce, WCFM

 

Leave a Reply

Your email address will not be published. Required fields are marked *

Total
0
Share