Hey all,
I am trying to pull subcategories for a given product on the PROD page. I've tried using the Tool Belt Category_children function using the following code:
But it isn't working. From all of the research I've done today, I am starting to think that the g.Category_Code isn't set on PROD pages. It returns nothing and warns me to use the l.all_settings in the code.
Have any of you solved the subcategory issue on the PROD page? We want to have a left-navigation section on each product page with the subcategories for the products category.
I am trying to pull subcategories for a given product on the PROD page. I've tried using the Tool Belt Category_children function using the following code:
Code:
<mvt:item name="ry_toolbelt" param="category_children|g.Category_Code" />
<mvt:item name="ry_toolbelt" param="category_children|l.all_settings:category:code" />
Example: Display subcategory images with links
<mvt:if expr="l.settings:category_children">
<mvt:foreach iterator="subcat" array="category_children">
<div>
<a href="&mvt:subcat:href">
<img src="&mvt:subcat:image_tree;" border="0"><br>&mvte:subcat:name;
</a>
</div>
</mvt:foreach>
</mvt:if>
View Returned Values:
<mvt:item name="ry_toolbelt" param="eval|varlist('l', 'category_children', l.all_settings)" />
Have any of you solved the subcategory issue on the PROD page? We want to have a left-navigation section on each product page with the subcategories for the products category.
Comment