Announcement

Collapse
No announcement yet.

CLST is displaying inactive categories

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    CLST is displaying inactive categories

    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 -->




    Leslie Kirk
    Miva Certified Developer
    Miva Merchant Specialist since 1997
    Previously of Webs Your Way
    (aka Leslie Nord leslienord)

    Email me: [email protected]
    www.lesliekirk.com

    Follow me: Twitter | Facebook | FourSquare | Pinterest | Flickr

    #2
    Hi Leslie,

    Change the first MVT:DO to this:
    Code:
    <mvt:do name="l.result" file="g.Module_Library_DB" value="Runtime_CategoryList_Load_Parent('', l.settings:parent_categories)" />
    Matt Zimmermann

    Miva Web Developer
    Alchemy Web Development
    https://www.alchemywebdev.com
    Site Development - Maintenance - Consultation

    Miva Certified Developer
    Miva Professional Developer

    https://www.dev4web.net | Twitter

    Comment


      #3
      Use "Runtime_CategoryList_Load_Parent"

      If it doesn't say "runtime" it's probably not filtering for inactive/price/avail group exclusions.
      Bruce Golub
      Phosphor Media - "Your Success is our Business"

      Improve Your Customer Service | Get MORE Customers | Edit CSS/Javascript/HTML Easily | Make Your Site Faster | Get Indexed by Google | Free Modules | Follow Us on Facebook
      phosphormedia.com

      Comment


        #4
        That got it. Thanks!
        Leslie Kirk
        Miva Certified Developer
        Miva Merchant Specialist since 1997
        Previously of Webs Your Way
        (aka Leslie Nord leslienord)

        Email me: [email protected]
        www.lesliekirk.com

        Follow me: Twitter | Facebook | FourSquare | Pinterest | Flickr

        Comment

        Working...
        X