Is anyone using this? I bought it some time ago and never got it to work right. We are on Miva 10 and have a modified Levels theme if that helps but with the default values it just doesn't work. I reached out to Scot and he said most people implement it themselves and he doesn't really know what it could be. I have been using the Alternate Display pages with a redirect which works but it's clunky to manually set up all those redirects.
I assume the problem must be here in the sub cat listing
The default values in catsplus are
Category Tree Array Field Name
Defaults to l.settings:cattree_categories if left blank.
Sub-Category Array Field Name Sub-Categories on CTGY page.
Defaults to l.settings:subcats if left blank.
Any help appreciated.
I assume the problem must be here in the sub cat listing
Code:
<mvt:foreach array="cattree_categories" iterator="cattree_category"> <mvt:if expr="l.settings:cattree_category:parent_id EQ l.settings:category:id"> <mvt:assign name="l.null" value="miva_array_insert(l.settings:subcats, l.settings:cattree_category, -1)" /> </mvt:if> </mvt:foreach> <mvt:assign name="l.settings:subcat_count" value="miva_array_elements(l.settings:subcats)" /> <mvt:if expr="l.settings:subcats GT 0"> <div class="row bg-white main-content-row sub-category-layout"> <mvt:foreach iterator="sub_category" array="subcats"> <mvt:item name="customfields" param="Read_Category_Code(l.settings:sub_category: code, 'displayImage', l.settings:sub_category:cust_image)" /> <mvt:item name="customfields" param="Read_Category_Code(l.settings:sub_category: code, 'ctgy_quickview_on', l.settings:sub_category:ctgy_quickview_on)" /> <mvt:item name="customfields" param="Read_Category_Code(l.settings:sub_category: code, 'ctgy_quickview_lbl', l.settings:sub_category:ctgy_quickview_lbl)" /> <mvt:if expr="l.settings:sub_category:image"> <div class="column half medium-one-third sub-category"> <mvt:item name="customfields" param="Read_Category_ID(l.settings:category:id, 'category_description', l.settings:category:cf:category_description)" /> <a href="&mvt:sub_category:link;" title="&mvt:sub_category:name;" class="s-ctgy-img_link"> <img src="&mvt:sub_category:image;" title="Click to Browse: &mvt:sub_category:name;" /> &mvt:sub_category:name; </a> <mvt:if expr="l.settings:sub_category:ctgy_quickview_on EQ '1'"> <button type="button" class="button button-square bg-gray white uppercase js-quick-view" data-product-link="&mvte:urls:CTGY:auto_sep;category_code=&mvte :sub_category:code;&show=quickview"> <span class="quick-view-icon icon-eye"><i class="fas fa-info" aria-hidden="true" style="margin: 0px 0px 4px 5px; padding: 0px; font-size: 14px"></i></span> <span class="quick-view-label"> <mvt:if expr="NOT ISNULL l.settings:sub_category:ctgy_quickview_lbl"> &mvt:sub_category:ctgy_quickview_lbl; <mvt:else> <mvt:comment>info</mvt:comment> </mvt:if> </span> </button> </mvt:if> </div> <mvt:elseif expr="l.settings:sub_category:cust_image"> <div id="testme" class="column half medium-one-third sub-category"> <a href="&mvt:sub_category:link;" title="&mvt:sub_category:name;" class="bold"> <img src="&mvt:sub_category:cust_image;" alt="&mvt:sub_category:name;" title="&mvt:sub_category:name;" /> &mvt:sub_category:name; </a> <mvt:if expr="l.settings:sub_category:ctgy_quickview_on EQ 'yes' OR l.settings:sub_category:ctgy_quickview_on EQ '1'"> <button type="button" class="button button-square bg-gray white uppercase js-quick-view" data-product-link="&mvte:urls:CTGY:auto_sep;category_code=&mvte :sub_category:code;&show=quickview"> <span class="quick-view-icon levels-icon-eye"></span> <span class="quick-view-label"> <mvt:if expr="NOT ISNULL l.settings:sub_category:ctgy_quickview_lbl"> &mvt:sub_category:ctgy_quickview_lbl; <mvt:else> <mvt:comment>info</mvt:comment> </mvt:if> </span> </button> </mvt:if> </div> <mvt:else> <div id="testme" class="column half medium-one-third sub-category"> <a href="&mvt:sub_category:link;" title="&mvt:sub_category:name;" class="bold"> <img src="https://placehold.it/271x271" /> &mvt:sub_category:name; </a> OR <mvt:if expr="l.settings:sub_category:ctgy_quickview_on EQ 'yes' OR l.settings:sub_category:ctgy_quickview_on EQ '1'"> <button type="button" class="button button-square bg-gray white uppercase js-quick-view" data-product-link="&mvte:urls:CTGY:auto_sep;category_code=&mvte :sub_category:code;&show=quickview"> <span class="quick-view-icon levels-icon-eye"></span> <span class="quick-view-label"> <mvt:if expr="NOT ISNULL l.settings:sub_category:ctgy_quickview_lbl"> &mvt:sub_category:ctgy_quickview_lbl; <mvt:else> <mvt:comment>info</mvt:comment> </mvt:if> </span> </button> </mvt:if> </div> </mvt:if> </mvt:foreach> </div> <!-- end sub-category listings --> </mvt:if>
Category Tree Array Field Name
Defaults to l.settings:cattree_categories if left blank.
Sub-Category Array Field Name Sub-Categories on CTGY page.
Defaults to l.settings:subcats if left blank.
Any help appreciated.