Jump to content

Prestashop - How To Get A Specific Sub Category Using Parent Category Id


cm_a93

Recommended Posts

Hi,


I am new to PrestaShop. I am trying to get an array of sub-categories using parent category id, so I can refer to the different sub-category in different circumstances.


Actually, I want to place an if statement in a foreach loop and check if its the first iteration of the loop then grab the link of 1st sub-category enlisted and if it's 2nd iteration then grab the link of 2nd sub-category and so on. Can anybody help me?


Thanks in advance! and sorry for my bad English.


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