Custom Taxonomy

1: Create Custom Taxonomy

Go to: BRW >> Custom Taxonomy >> Add Taxonomy

  • Firstly, Add Name, Label, slug for a custom taxonomy

  • Then, tick the checkbox: "Show In Listing": if you want to show a taxonomy in listing of product (Archive Template)

  • Finally, add Values ( term ) for a taxonomy

Go to: Products >> Custom Taxonomy, a listing of Taxonomies will be showed. If you want to add value for a taxonomy, you click the folder icon of that Taxonomy

2: Add Custom Taxonomy in Products

In global settings, we support 2 options in showing Custom Taxonomy for products:

  • Based on each category: If you choose "Based on each category" option, in product settings ( Products >> Add New Product ) , it only display custom taxonomies that match the specific product category. For example, if a product belongs to the 'Car' category, only the taxonomies related to 'Car' will be shown

  • All: in product settings ( Products >> Add New Product ), it will show all custom taxonomies

1: Settings in Backend

Step 1: Set in Global Settings

Go to WooCommerce >> Settings >> Booking & Rental >> General >> Show Custom Taxonomy for products dropdown: choose "Based on each category" option

Step 2: Select Custom Taxonomies for a category

go to: Product >> Categories

Example:

You want to add custom taxonomies for "Car" category

There are 3 custom taxonomies: Year, Color, Vehicle Status

You only choose "Year" custom taxonomy for "Car" category

Step 3: Set Custom Taxonomies for a product

  • Go to: Products >> Add New

  • Choose Category: All Custom Taxonomies of that category will be shown

  • Set value for each Custom Taxonomy

Suppose that you choose "Car" category, "Year" custom taxonomy of it will be shown

2: Display in Frontend

2.1: Shown In Shop/Category Page

  • When you create a new custom taxonomy, you have to choose "Show in Listing" option.

  • You have to allow to show Taxonomy in Card Setting. Read here

2.2: In Detail Product Page

You have to allow to show Product Meta setting in Product Details Setting. Read here

3: Display Custom taxonomies in search form

Go to: WooCommerce >> Settings >> Booking & Rental >> Search Settings

  • Hide/ Show Taxonomy in Search Settings

  • Hide Taxonomy List (slug): Insert Slug of Custom Taxonomy to hide Custom Taxonomy in Drop-down

  • Require Taxonomy List (slug): Insert Slug to make Taxonomy List, and require customers to select taxonomy for searching.

Last updated