Product category is just a regular wordpress taxonomy. You can get the link like this:
echo esc_url( get_term_link( 6, 'product_cat' ) );
You can use slugs too:
echo esc_url( get_term_link( 'category-slug', 'product_cat' ) );
Product category is just a regular wordpress taxonomy. You can get the link like this:
echo esc_url( get_term_link( 6, 'product_cat' ) );
You can use slugs too:
echo esc_url( get_term_link( 'category-slug', 'product_cat' ) );