Get the sub category of the current product category page. This code is applied if you are viewing the product archive page. The codes below and a sample category hierarchy list. Example: Category Parent Category 1 Category 2 Category 3 Category 4 Category 1.1 Category 2.1 Category 3.1 Category 4.1 Here’s a code: