Jump to content

How can i get catecory name and link inside the products list?


Recommended Posts

Hi. 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 

Quote

{$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:
 

Quote

<a href="{$product.category_name}">{$product.category_name}</a>

but this code generate the url:

Quote


instead of:

Quote

Does anyone knows how can i make it work using only smarty code ?
Thanks in advance
Ευχαριστώ πολύ!

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...