I need to find a way to include the category code in the Related Product link. Without it, it seems that a custom category tree built with the Toolkit disappears when going to the product page. I know one of the issues is that the product could be in more than one category - if I could get the link to at least have one category in it.
In the back of my mind - I'm also wondering if I need to change the cat tree. It does exactly what I need - EXCEPT it disappears when a Related Product link is clicked.
In the back of my mind - I'm also wondering if I need to change the cat tree. It does exactly what I need - EXCEPT it disappears when a Related Product link is clicked.
Code:
<div id="sidebar"> <mvt:item name="toolkit" param="childof|parentfound|g.Category_Code" /> <mvt:if expr="g.parentfound"> <h2>&mvt:childof:name;</h2> <mvt:else> <h2>&mvt:category:name;</h2> </mvt:if> <ul> <mvt:item name="toolkit" param="subcat|ccount|g.Category_Code" /> <mvt:if expr="ccount GT 0"> <mvt:foreach iterator="sub_category" array="sub_categories"> <mvt:if expr="g.Category_Code EQ l.settings:sub_category:code"> <li class="active"><a href="&mvt:global:sessionurl;Screen=CTGY&Store_Code=&mvta:global:Store_Code;&Category_Code=&mvt:sub_category:code;">&mvt:sub_category:name;</a></li> <mvt:else> <li><a href="&mvt:global:sessionurl;Screen=CTGY&Store_Code=&mvta:global:Store_Code;&Category_Code=&mvt:sub_category:code;">&mvt:sub_category:name;</a></li> </mvt:if> </mvt:foreach> </mvt:if> <mvt:item name="toolkit" param="sibling|scount|g.Category_Code" /> <mvt:if expr="scount GT 0"> <mvt:foreach iterator="sibling" array="siblings"> <mvt:if expr="g.Category_Code EQ l.settings:sibling:code"> <li class="active"><a href="&mvt:global:sessionurl;Screen=CTGY&Store_Code=&mvta:global:Store_Code;&Category_Code=&mvt:sibling:code;">&mvt:sibling:name;</a> </li> <mvt:else> <li><a href="&mvt:global:sessionurl;Screen=CTGY&Store_Code=&mvta:global:Store_Code;&Category_Code=&mvt:sibling:code;">&mvt:sibling:name;</a></li> </mvt:if> </mvt:foreach> </mvt:if> </ul> </div>
Comment