Woocommerce - Hide empty categories that dont have children with products.

This project received 28 bids from talented freelancers with an average bid price of $183 USD.

Get free quotes for a project like this
Employer working
Skills Required
Project Budget
$30 - $250 USD
Total Bids
Project Description

Woocommerce has a category widget that lets you check
Show hierarchy and
Only show children for the current category.

Now the problem is the navigation shows empty categories. We only want to show empty parent categories that have child categories with products. People should not be able to drill down through levels of empty categories and end up on an empty category.

So please provide me a script that will hide empty categories in the woocommerce category widget that do not contain child categories with products.

Looking to make some money?

  • Set your budget and the timeframe
  • Outline your proposal
  • Get paid for your work

Hire Freelancers who also bid on this project

    • Forbes
    • The New York Times
    • Time
    • Wall Street Journal
    • Times Online