Get_term_link by term id

First of all, I needed to work with the taxonomy term “product_cat” in order to call Woocommerce product categories. It checks to see if the id of the parent is greater than 0 or not.