Creating Custom Taxonomy for Vendors

Hi, would like to know if it is possible to create a new custom taxonomy (Account Type) for vendors which would be similar to the category but with only two options (Individual and Company). With this I want when a user selects either Individual or Company as account type, corresponding fields for that account type are shown in the vendor registration form

Hi,

This is how it works by default, if you create a custom select attribute, for example, HivePress will automatically register the taxonomy for the attribute, and you can make it searchable, filterable, etc. Also, please check this doc How to add vendor profile fields - HivePress Help Center

I believe this will be useful to you.

Sorry, not really want I’m looking for. Instead of a select or checkbox attribute, I want to create a new taxonomy (Account Type) that has a meta box and can be assigned attributes in the add attributes screen similar to the vendor categories.

Hi,

Please note that this is the option you need. Regardless of what type of attribute you choose, the main thing is that it is selectable, and then taxonomy will be registered automatically. But, if you mean to make other attributes dependent on this select attribute, then unfortunately, there is no such possibility, it will require a custom implementation. Alternatively, as a workaround, we recommend using the vendor category as an account type and using what you are currently using as a category as an attribute.

Alright thanks. One more thing can you help on how to add a table head with elements such as Title, Category, Created Date, Status and Actions in the “listings_edit_page” listing edit block?

Hi,

There are two ways to add this:

  1. Using PHP snippets (How to add custom code snippets - HivePress Help Center): https://gist.github.com/search?q=user%3Ahivepress+template&ref=searchresults

  2. Overwrite template parts using a child theme - How to override template parts - HivePress Help Center

​I hope this is helpful to you.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.