Jump to content

get current product category id and display in a link


emiliob

Recommended Posts

I´m using Prestashop 1.7.

I´m not sure how to get the current product category id of the product i´m seeing in product.tpl and show a  link to the category of that product.

i´m trying to do something like this

$product=$id_category_default;;

<a href=$product>Go to Category</a>

 

Thanks for helping me out with my problem and keep it up

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