Need Help with woocommerce setting

Hi,
We have woocommerce installed on our store page. I am unable to get the categories to show up in the category widget unless a product is actually listed in the category. I would prefer to have the categories show up in the widget regardless of whether there are products listed. I found a fix online at https://gist.github.com/renegadesk/3926139 but I have no experience modifying the code and don't really want to possibly mess this up. Does anyone have any experience with woocommerce or how to install this fix so the categories show up?

If yes, please let me know and I can give you admin access to our store page.

Thanks,
Barry Diamond