Announcement

Collapse
No announcement yet.

Clauculating shipping

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

    #16
    &mvte:urls:SERT:auto; is generating an ampersand instead of a ? in my CTGY paging form action like this:
    Code:
    https://www.mydomain.com/Merchant2/category-display.html&Category_Code=mycatcode
    is that because there is a hidden screen input in the form?

    I just want to make sure before I remove it and break my live store.
    It's weird because the paging links are working (just not on the very last page).

    Comment


      #17
      Where are you placing &mvte:urls:SERT:auto; on the category page? The form action you show does not correlate to the the token.
      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


        #18
        this is the output in the display source. CTGY: Category Product List Layout
        Code:
        <div class="row filter-items-container">
        <nav class="column half medium-one-fifth large-one-fifth per-page np">
        <form method="post" action="https://www.mydomain.com/Merchant2/category-display.html&Category_Code=mycatcode" class="nm">
        <input type="hidden" name="Search" value="">
        <input type="hidden" name="Sort_By" value="price_desc">
        <!-- <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 value="12">12 items/page</option>
        <option value="24">24 items/page</option>
        <option value="-1">View All</option>
        </select>
        <noscript><button>Go</button></noscript>
        </form>
        <!-- end per-page -->
        </nav>
        <div class="column half medium-one-fifth large-one-fifth sorting np">
        <form method="post" action="https://www.mydomain.com/Merchant2/category-display.html&Category_Code=mycatcode" class="nm">
        <input type="hidden" name="Search" value="">
        <input type="hidden" name="Per_Page" value="50">
        <!-- <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();">
        <option value="disp_order">Sort By&hellip;</option>
        <option value="newest">Newest</option>
        <option value="bestsellers">Best Selling</option>
        <option value="price_asc">Lowest Price</option>
        <option value="price_desc" selected="selected">Highest Price</option>
        <option value="name_asc">Name Ascending</option>
        <option value="name_desc">Name Descending</option>
        </select>
        <noscript><button>Go</button></noscript>
        </form>
        <!-- end sorting -->
        </div>
        this is the code that is generating that
        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 12">selected</mvt:if> value="12">12 items/page</option>
                        <option <mvt:if expr="g.Per_Page EQ 24">selected</mvt:if> value="24">24 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>

        Comment


          #19
          umm my bad... self vs SERT very different... I didn't mean to hijack the thread. can these be moved to a new topic?

          Comment


            #20
            That looks like the default Levels code. Do you have URIs generated for the category pages?
            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


              #21
              yes, it is the default levels code.

              I checked in uri management to verify this particular category I keep looking at as an example.
              I have a canonical and also old urls with 301's to the canonical.

              like so:
              canonical /mycatcode.html
              301 redirect to canonical /category/mycatcode.html

              is
              &mvte:urls:_self:auto; the correct miva variable to be using?

              Comment


                #22
                I went back to the default levels code.. trying to see if it would fix this. but now the facets aren't sticking when changing paging. arghh!

                Comment


                  #23
                  When using facets, there are other fields you will need to pass. Take a look at the CSSUI: SRCH: Search Results Layout example here https://www.miva.com/mm9.7_template_changes.html
                  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


                    #24
                    Thank you for the clue Matt. I went back and reintegrated the 9.7 template changes. I really need to put those in git.

                    Comment

                    Working...
                    X