Jump to content

Parent category id and category id in tpl page


raynox

Recommended Posts

Hello guys, sorry for the question but i have searched the forum and some answers i found didn't quite solve my issues...

 

Im trying to get both category and parent category ids while in tpl (main website page at this point)Someone mentioned using cookiesor use the product to find these ids, but the problem is at this stage im trying to retrieve those ids without any product selected.

 

Im new to Prestashop and Im stuck with this for days now, so please bare with me on this one..

Thanks in advance!

 

Best regards.

Link to comment
Share on other sites

hi raynox,

 

From what i got,

if you have the objects of the categories, then there is a field id_parent, use it.

And if you dont have the objects, assign the id_parent to smarty where other category features are assigned.

 

hope it helps

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