Announcement

Collapse
No announcement yet.

Basic Ready Theme - subcategories

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

    Basic Ready Theme - subcategories

    How can I turn off the subcategory images and just have the subcategory names show up on the parent page?

    Or is there a way for the subcategory section not to even show up on the page and just show up in the category tree?

    #2
    Which ReadyTheme are you using?
    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
      Basic Ready Theme

      Comment


        #4
        In the Base ReadyTheme, on the CTGY page Details section, either comment out or remove this section:
        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="g.subcat_count" value="miva_array_elements(l.settings:subcats)" />
        <mvt:if expr="g.subcat_count GT 0">
            <mvt:item name="subcategory_listing" />
        </mvt:if>
        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


          #5
          Thank! How do you "comment out"? Maybe I will just have to remove it.

          Comment


            #6
            To comment out template language like that, apply opening an closing Miva comment tags around it:
            Code:
            <mvt:comment>
            ... content to comment out...
            </mvt:comment>
            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


              #7
              I am not seeing that exact code. Here is the code from the CTGY page in the Details section. Which part of this exact code to put the comment tags around?

              <mvt:item name="html_profile" />
              <head>
              <mvt:if expr="NOT ISNULL l.settings:category:page_title">
              <title>&mvt:category:page_title;</title>
              <mvt:elseif expr="NOT ISNULL l.settings:page:title">
              <title>&mvt:page:title;</title>
              <mvt:else>
              <title>&mvt:store:name;: &mvt:category:name;</title>
              </mvt:if>

              <base href="&mvt:global:basehref;" />
              <link rel="canonical" href="&mvte:category:link;" />
              <mvt:item name="head" param="css_list" />
              <mvt:item name="head" param="head_tag" />
              </head>
              <body id="JS_&mvt:page:code;" class="&mvt:page:code;">
              <mvt:item name="hdft" param="global_header" />
              <mvt:item name="navbar" />
              <mvt:item name="hdft" param="header" />
              <div class="items">
              <div class="content">
              <div class="container">
              <div class="row">
              <div class="col-md-3 col-sm-3 hidden-xs">
              <mvt:item name="category_tree" />
              </div>
              <div class="col-md-9 col-sm-9">
              <div class="row">
              <mvt:item name="breadcrumbs" />
              </div>
              <h1>&mvte:category:name;</h1>
              <mvt:item name="prod_ctgy_hdft" param="ctgy_header" />

              <mvt:assign name="g.subcat_count" value="miva_array_elements(l.settings:subcats)" />
              <mvt:if expr="g.subcat_count GT 0">
              <mvt:item name="subcategory_listing" />
              </mvt:if>

              <hr />
              <mvt:if expr="l.settings:category_listing:products_on_page _count GT 1">
              <div class="form-group pull-right">
              <form method="post" action="&mvte:urls:_self:auto;">
              <input type="hidden" name="Store_Code" value="&mvte:global:Store_Code;" />
              <input type="hidden" name="Search" value="&mvte:global:Search;" />
              <input type="hidden" name="Per_Page" value="&mvte:global:Per_Page;" />
              <select name="Sort_By" onchange="this.form.submit();" class="form-control">
              <mvt:if expr="ISNULL g.Sort_By">
              <option value="disp_order" selected="selected">Sort By</option>
              <mvt:else>
              <option value="disp_order">Sort By</option>
              </mvt:if>
              <mvt:if expr="g.Sort_By EQ 'name_asc'">
              <option value="name_asc" selected="selected">Name (A-Z)</option>
              <mvt:else>
              <option value="name_asc">Name (A-Z)</option>
              </mvt:if>
              <mvt:if expr="g.Sort_By EQ 'name_desc'">
              <option value="name_desc" selected="selected">Name (Z-A)</option>
              <mvt:else>
              <option value="name_desc">Name (Z-A)</option>
              </mvt:if>
              <mvt:if expr="g.Sort_By EQ 'bestsellers'">
              <option value="bestsellers" selected="selected">Best Selling</option>
              <mvt:else>
              <option value="bestsellers">Best Selling</option>
              </mvt:if>
              <mvt:if expr="g.Sort_By EQ 'price_asc'">
              <option value="price_asc" selected="selected">Lowest Price</option>
              <mvt:else>
              <option value="price_asc">Lowest Price</option>
              </mvt:if>
              <mvt:if expr="g.Sort_By EQ 'price_desc'">
              <option value="price_desc" selected="selected">Highest Price</option>
              <mvt:else>
              <option value="price_desc">Highest Price</option>
              </mvt:if>
              <mvt:if expr="g.Sort_By EQ 'newest'">
              <option value="newest" selected="selected">Newest Items</option>
              <mvt:else>
              <option value="newest">Newest Items</option>
              </mvt:if>
              </select>
              <noscript><input type="submit" value="go"></noscript>
              </form>
              </div>
              </mvt:if>
              <div class="clearfix"></div>
              <div class="row">
              <mvt:item name="category_listing" />
              <mvt:if expr="l.settings:category_listing:page_links:last_ page GT 1">
              <div class="col-md-9 col-sm-9">
              <div class="paging">
              <mvt:if expr="NOT l.settings:category_listing:page_links:contains_fi rst">
              <a href="&mvte:category_listing:page_links:first_link ;">1</a><span class="dots">&hellip;</span>
              </mvt:if>
              <mvt:foreach iterator="pages" array="category_listing:page_links:pages">
              <mvt:if expr="l.settings:category_listing:page_links:curre nt_page EQ l.settings:pages:page_num">
              <span class="current">&mvte:pages:page_num;</span>
              <mvt:else>
              <a href="&mvte:pages:link;">&mvte:pages:page_num;</a>
              </mvt:if>
              </mvt:foreach>
              <mvt:if expr="NOT l.settings:category_listing:page_links:contains_la st">
              <span class="dots">&hellip;</span><a href="&mvte:category_listing:page_links:last_link; ">&mvte:category_listing:page_links:last_page; </a>
              </mvt:if>
              </div>
              </div>
              </mvt:if>
              </div>
              <mvt:item name="prod_ctgy_hdft" param="ctgy_footer" />
              </div>
              </div>
              </div>
              </div>
              </div>
              <mvt:item name="hdft" param="footer" />
              <mvt:item name="hdft" param="global_footer" />
              </body>
              </html>

              Comment


                #8
                You will need to comment out this section:
                Code:
                <mvt:assign name="g.subcat_count" value="miva_array_elements(l.settings:subcats)" />
                <mvt:if expr="g.subcat_count GT 0">
                <mvt:item name="subcategory_listing" />
                </mvt:if>
                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


                  #9
                  Thank you! That worked!

                  Comment

                  Working...
                  X