I am trying to use Tool Kit to get the parent category of a product
but it seems to go too far up the tree. So if I have this
SFNT
--CTGY 1
---Sub Ctgy 1
----Sub Sub Ctgy 1
-----Prod1
--CTGY 2
It does not see the immediate parent of Prod1, rather it is returning CTGY1's name. I need the immediate parent if possible.
Code:
<mvt:item name="toolkit" param="childof|parentfound|g.Category_Code" /> <mvt:if expr="g.parentfound"> <div style="font-size: 1em; font-weight: normal; padding: 4px;background: #5D5D5D; color: #fff;">&mvt:childof:name;...</div> </mvt:if>
SFNT
--CTGY 1
---Sub Ctgy 1
----Sub Sub Ctgy 1
-----Prod1
--CTGY 2
It does not see the immediate parent of Prod1, rather it is returning CTGY1's name. I need the immediate parent if possible.
Comment