Announcement

Collapse
No announcement yet.

Sort by broken

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

  • Sort by broken

    I thought this had come up before but a search of the forum (and a Google search) didn't help me find it. Store is using the Levels ReadyTheme. On the CTGY page, the Items per Page and Sort By are not working. I'm getting a 404 Not Found error because it's producing a link like this http://www.domain.com/CTGY.html&Category_Code=catcode

    The template sort method is set to Default.

    These two functions are working correctly on the PLST and SRCH pages.
    Leslie Kirk
    Miva Merchant 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

  • Hi Leslie,

    Are you using URI Management and is that item assigned to the category page?

    Here is the default code for the sort section to compare with what you are using:
    Code:
    <div class="column half medium-one-fifth large-one-fifth sorting np">
        <mvt:if expr="l.settings:category_listing:products_on_page_count GT 1">
            <form method="post" action="&mvte:urls:_self:auto;" class="nm">
                <input type="hidden" name="Search" value="&mvte:global:Search;">
                <input type="hidden" name="Per_Page" value="&mvte:global:Per_Page;">
                <!-- <label for="l-sort-by" class="medium uppercase">Sort By</label> -->
                <select name="Sort_By" id="l-sort-by" class="input-medium" onChange="this.form.submit();">
                    <mvt:if expr="ISNULL g.Sort_By">
                        <option value="disp_order" selected="selected">Sort By&hellip;</option>
                    <mvt:else>
                        <option value="disp_order">Sort By&hellip;</option>
                    </mvt:if>
                    <mvt:if expr="g.Sort_By EQ 'newest'">
                        <option value="newest" selected="selected">Newest</option>
                    <mvt:else>
                        <option value="newest">Newest</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 'name_asc'">
                        <option value="name_asc" selected="selected">Name Ascending</option>
                    <mvt:else>
                        <option value="name_asc">Name Ascending</option>
                    </mvt:if>
                    <mvt:if expr="g.Sort_By EQ 'name_desc'">
                        <option value="name_desc" selected="selected">Name Descending</option>
                    <mvt:else>
                        <option value="name_desc">Name Descending</option>
                    </mvt:if>
                </select>
                <noscript><button>Go</button></noscript>
            </form>
            <!-- end sorting -->
        </mvt:if>
    </div>
    Matt Zimmermann
    Director of UI/UX Standards and Theme Development
    / Miva, Inc.

    Comment


    • Yes, the store is using the URI Management - what is the actual code for the item that needs to be assigned? Is it "urls" or "cssui_links"?


      Code:
      <div class="row filter-items-container">
      <nav class="column half medium-one-fifth large-one-fifth per-page np">
          <mvt:if expr="l.settings:category_listing:products_on_page_count GT 1">
              <form method="post" action="&mvte:urls:_self:auto;" class="nm">
                  <input type="hidden" name="Search" value="&mvte:global:Search;">
                  <input type="hidden" name="Sort_By" value="&mvte:global:Sort_By;">
                  <!-- <label for="l-per-page" class="medium uppercase">Per Page</label> -->
                  <select name="Per_Page" id="l-per-page" class="input-medium" onChange="this.form.submit();">
                      <option <mvt:if expr="g.Per_Page EQ 16">selected</mvt:if> value="16">16 items/page</option>
                      <option <mvt:if expr="g.Per_Page EQ 32">selected</mvt:if> value="32">32 items/page</option>
                      <option <mvt:if expr="g.Per_Page EQ -1">selected</mvt:if> value="-1">View All</option>
                  </select>
                  <noscript><button>Go</button></noscript>
              </form>
              <!-- end per-page -->
          </mvt:if>
      </nav>
      <div class="column half medium-one-fifth large-one-fifth sorting np">
          <mvt:if expr="l.settings:category_listing:products_on_page_count GT 1">
              <form method="post" action="&mvte:urls:_self:auto;" class="nm">
                  <input type="hidden" name="Search" value="&mvte:global:Search;">
                  <input type="hidden" name="Per_Page" value="&mvte:global:Per_Page;">
                  <!-- <label for="l-sort-by" class="medium uppercase">Sort By</label> -->
                  <select name="Sort_By" id="l-sort-by" class="input-medium" onChange="this.form.submit();">
                      <mvt:if expr="ISNULL g.Sort_By">
                          <option value="disp_order" selected="selected">Sort By&hellip;</option>
                      <mvt:else>
                          <option value="disp_order">Sort By&hellip;</option>
                      </mvt:if>
                      <mvt:if expr="g.Sort_By EQ 'newest'">
                          <option value="newest" selected="selected">Newest</option>
                      <mvt:else>
                          <option value="newest">Newest</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 'name_asc'">
                          <option value="name_asc" selected="selected">Name Ascending</option>
                      <mvt:else>
                          <option value="name_asc">Name Ascending</option>
                      </mvt:if>
                      <mvt:if expr="g.Sort_By EQ 'name_desc'">
                          <option value="name_desc" selected="selected">Name Descending</option>
                      <mvt:else>
                          <option value="name_desc">Name Descending</option>
                      </mvt:if>
                  </select>
                  <noscript><button>Go</button></noscript>
              </form>
              <!-- end sorting -->
          </mvt:if>
      </div>
      You code looks pretty much like what this site has.
      Leslie Kirk
      Miva Merchant 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


      • Hi Leslie,

        The URLS item
        Matt Zimmermann
        Director of UI/UX Standards and Theme Development
        / Miva, Inc.

        Comment


        • Originally posted by Matt Zimmermann View Post
          Hi Leslie,

          The URLS item
          It's assigned
          Leslie Kirk
          Miva Merchant 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

          This website uses cookies to identify visitors, track visitors to our website, store login session information and to remember your user preferences. By continuing to use this site you agree to our use of cookies. Learn More.

          This website uses cookies. By continuing to use this site you agree to our use of cookies. Learn More.

          Accept