I am building a new theme and i am looking for a way to display the category name and the category link inside each product item in product lists. I am using the smarty code
{$product.category_name}
so i can get the category name of the product that belongs to that category but i really can't find a way (using smarty code) so i can get the url that links to that category. I already tried:
<a href="{$product.category_name}">{$product.category_name}</a>
but this code generate the url:
http://mysite/home-accessories
instead of:
Quote
http://mysite/8-home-accessories
Does anyone knows how can i make it work using only smarty code ?
{$product.id}-$product.category_name}