I have a Magento based website.
In my product page I need to show related categories regarding the category the product fall into.
For example suppose the category structure
A- has three child categories B,C and D. Where C has a product than on this product page i need to show B and D as a related category.
Is there is any way to achieve this.
Thanks in advance.
Best Answer
Let's say that you already have the current category in the variable $category. This piece of code should give you all the (active) category siblings.
Now you can loop through the siblings and list them: