How do I prevent the CLST page from displaying inactive categories? It looks like these are inactive Parent categories that are being displayed. Here's the code CategoryList code from the page:
Code:
<div id="js-product-list" class="row bg-white category-product-layout"> <mvt:do name="l.result" file="g.Module_Library_DB" value="CategoryList_Load_Parent('', l.settings:parent_categories)" /> <mvt:foreach iterator="parent" array="parent_categories"> <mvt:assign name="l.settings:category_tree" value="''" /> <mvt:do name="l.result" file="g.Module_Library_DB" value="Category_Load_Code(l.settings:parent:code, l.settings:category)" /> <mvt:do name="l.module_loaded" file="g.Module_Library_DB" value="Module_Load_Code('cmp-cssui-cattree', l.module)" /> <mvt:if expr="l.module_loaded"> <mvt:do name="l.result" file="g.Module_Root $ l.module:module" value="CSSUI_CatTree_Load(l.settings:category:id, l.settings:category_tree)" /> </mvt:if> <mvt:do file="g.Module_Feature_URI_UT" name="l.settings:category:uri" value="Store_Category_URL(l.settings:category, NULL)" /> <div class="column half medium-one-third large-one-fourth category-product"> <a class="mm-card-grid-item__image" href="&mvt:category:uri;" title=""><img src="&mvte:category_tree:image;" alt="&mvt:category:name;" title="&mvt:category:name;" /></a> <a class="mm-card-grid-item__content font--uppercase button button--block button--large button--square bg--white color--black font--medium h-nb" href="&mvt:category:uri;" title="&mvt:category:name;">&mvt:category:name;</a> </div> </mvt:foreach> </div> <!-- end category-product listings -->
Comment