Jump to content

Get Link Of Sub Category From The Product Enlisted In Parent Category


Recommended Posts




I know my question is stupid but I need to solve this problem.


I have a foreach loop that is showing products in a block. What I need to get is, the link to the sub categories (one by one in each iteration) of the parent category from that the product belongs to.


I mean, for the first iteration of this foreach loop, I will get the link to first sub-category and for second iteration I will grab the link to second sub-category and so on.


Can anybody tell me how I can do this?



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