URI Management Tab

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dts169
    Mini Mivite

    • Mar 2012
    • 24

    #1

    URI Management Tab

    We are in the process of moving from our current cart to Miva. I am going to be redirecting our 500+ products to their new respective homes on Miva when we make the switch. Would I be able to do this through the URI management tab?
  • rajnishsi
    Mivite

    • May 2015
    • 176

    #2
    Re: URI Management Tab

    Assuming you are doing this on a same domain, you can surely keep your old URL structure in new Miva site using URI Management. If you are looking for re-direction of type "/abc.html" -> "/xyz.html", that's gonna create problems, and you might have to do this on a per-product basis via htaccess file.
    Rajnish Sinha
    ---------------------
    https://twitter.com/rajnishsi

    Comment

    • Rick Wilson
      Uber Mivite











      • Aug 2007
      • 10120

      #3
      Re: URI Management Tab

      You can import those as well via flat file and the new URI system.
      Thanks,

      Rick Wilson
      CEO
      Miva, Inc.
      [email protected]
      https://www.miva.com

      Comment

      • Brennan
        Super Moderator









        • Jun 2009
        • 3481

        #4
        Re: URI Management Tab

        Here is a tutorial on how to migrate to the new URI system:

        http://docs.miva.com/docs/how-to-mig...ement-features
        Brennan Heyde
        VP Product
        Miva, Inc.
        [email protected]
        https://www.miva.com

        Comment

        • Viscott
          Mivite


          • Mar 2006
          • 239

          #5
          Re: URI Management Tab

          When URI management is set as the active structure for the site all of my product and category code links are working correctly throughout the site. However the Mega Menu in Iron & Wool is using the old link structure. Do I need to replace some code in the ready theme?

          Old Link in Mega Menu:


          New Link in Category Tree:
          Jon

          Viscott Limited
          www.viscott.com

          Comment

          • Brennan
            Super Moderator









            • Jun 2009
            • 3481

            #6
            Re: URI Management Tab

            No there is a bug in readythemes that is preventing it from outputting the correct URI Management links. We plan on fixing it shortly.

            As a stop gap you can use the template code found on this page to manually lookup the Canonical URI and output it:

            http://www.miva.com/videos/articles/...ement-examples
            Brennan Heyde
            VP Product
            Miva, Inc.
            [email protected]
            https://www.miva.com

            Comment

            • Viscott
              Mivite


              • Mar 2006
              • 239

              #7
              Re: URI Management Tab

              Originally posted by Brennan View Post
              No there is a bug in readythemes that is preventing it from outputting the correct URI Management links. We plan on fixing it shortly.

              As a stop gap you can use the template code found on this page to manually lookup the Canonical URI and output it:

              http://www.miva.com/videos/articles/...ement-examples

              Hopefully it will be a simple find and replace code fix?
              Jon

              Viscott Limited
              www.viscott.com

              Comment

              • Brennan
                Super Moderator









                • Jun 2009
                • 3481

                #8
                Re: URI Management Tab

                You will need to add the code into your navigation set template. Let me see if I can get you an example.
                Brennan Heyde
                VP Product
                Miva, Inc.
                [email protected]
                https://www.miva.com

                Comment

                • Viscott
                  Mivite


                  • Mar 2006
                  • 239

                  #9
                  Re: URI Management Tab

                  It's the same issue in the Suivant ReadyTheme. I am working on 2 different sites.
                  Jon

                  Viscott Limited
                  www.viscott.com

                  Comment

                  • lesliekirk
                    Super Moderator











                    • Aug 2008
                    • 9296

                    #10
                    Re: URI Management Tab

                    Originally posted by Brennan View Post
                    You will need to add the code into your navigation set template. Let me see if I can get you an example.
                    Yes please. I've got a number of sites with "broken" menus.
                    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: X | Facebook | Pinterest

                    Comment

                    • Brennan
                      Super Moderator









                      • Jun 2009
                      • 3481

                      #11
                      Re: URI Management Tab

                      Here is some example code (from Suivant). Any new code is highlighted in Red. One limitation to this code is it assumes that each navigation set item is a link and links to a category.

                      Code:
                      [COLOR=#ff0000]<mvt:assign name="l.uri:store_id" value="g.Store:id" />[/COLOR]
                      [COLOR=#ff0000]<mvt:assign name="l.uri:screen" value="''" />[/COLOR]
                      [COLOR=#ff0000]<mvt:assign name="l.uri:page_id" value="0" />[/COLOR]
                      [COLOR=#ff0000]<mvt:assign name="l.uri:product_id" value="0" />[/COLOR]
                      
                      
                      <nav id="js-navigation-bar" class="navigation-bar &mvte:readytheme:code;">
                          <div class="row all-hidden medium-all-shown large-all-hidden mobile-navigation-bar">
                              <div class="column one-eighth align-left toggle-slide-left"><span data-icon="&#x61;"> Shop</span></div>
                              <div id="js-open-global-search--tablet" class="column one-twelfth float-right open-global-search--tablet"><span data-rt-icon="&#x6a;"></span></div>
                          </div>
                          <ul id="js-navigation-set" class="navigation-set &mvte:readytheme:layout;">
                              <mvt:foreach iterator="navigationitem" array="readytheme:navigationitems">
                              
                                  <li class="level-1">
                      
                      
                                      [COLOR=#ff0000]<mvt:do name="l.result" file="g.Module_Library_DB" value="Category_Load_Code( l.settings:navigationitem:link_dest, l.settings:category )" />[/COLOR]
                      [COLOR=#ff0000]                <mvt:assign name="l.uri:cat_id" value="l.settings:category:id" />[/COLOR]
                      [COLOR=#ff0000]                <mvt:do file="g.Module_Feature_URI_DB" name="l.have_uri" value="URI_Load_Item_Canonical( l.uri, l.settings:canonical_uri )" />[/COLOR]
                                      
                                      
                                      [COLOR=#ff0000]<span><a href="&mvt:canonical_uri:uri;">&mvt:navigationitem:name;</a></span>[/COLOR]
                                      <mvt:if expr="NOT ISNULL l.settings:navigationitem:items">
                                          <ul>
                                              <mvt:foreach iterator="navigationitem_level2" array="navigationitem:items">
                                                  <li class="level-2">
                      
                      
                                                      [COLOR=#ff0000]<mvt:do name="l.result" file="g.Module_Library_DB" value="Category_Load_Code( l.settings:navigationitem_level2:link_dest, l.settings:category )" />[/COLOR]
                      [COLOR=#ff0000]                                <mvt:assign name="l.uri:cat_id" value="l.settings:category:id" />[/COLOR]
                      [COLOR=#ff0000]                                <mvt:do file="g.Module_Feature_URI_DB" name="l.have_uri" value="URI_Load_Item_Canonical( l.uri, l.settings:canonical_uri )" />[/COLOR]
                      
                      
                                                      [COLOR=#ff0000]<span> <a href="&mvt:canonical_uri:uri;">&mvt:navigationitem_level2:name;</a></span>[/COLOR]
                                                      <mvt:if expr="NOT ISNULL l.settings:navigationitem_level2:items">
                                                          <ul>
                                                              <mvt:foreach iterator="navigationitem_level3" array="navigationitem_level2:items">
                      
                      
                                                                  [COLOR=#ff0000]<mvt:do name="l.result" file="g.Module_Library_DB" value="Category_Load_Code( l.settings:navigationitem_level3:link_dest, l.settings:category )" />[/COLOR]
                      [COLOR=#ff0000]                                            <mvt:assign name="l.uri:cat_id" value="l.settings:category:id" />[/COLOR]
                      [COLOR=#ff0000]                                            <mvt:do file="g.Module_Feature_URI_DB" name="l.have_uri" value="URI_Load_Item_Canonical( l.uri, l.settings:canonical_uri )" />[/COLOR]
                      
                      
                                                                  <li class="level-3">[COLOR=#ff0000]<span><a href="&mvt:canonical_uri:uri;">&mvt:navigationitem_level3:name;</a></span>[/COLOR]</li>
                                                              </mvt:foreach>
                                                          </ul>
                                                      </mvt:if>
                                                  </li>
                                              </mvt:foreach>
                                          </ul>
                                      </mvt:if>
                                  </li>
                              </mvt:foreach>
                              <li id="js-open-global-search" class="level-1 open-global-search"><a href="&mvt:global:sessionurl;Screen=SRCH" data-rt-icon="&#x6a;"></a></li>
                          </ul>
                          <div class="row wrap">
                              <form action="&mvt:global:protocol_relative_url;Screen=SRCH" method="post" id="js-global-search" class="column whole large-half bg-white nrp global-search hide">
                                  <input type="hidden" name="Store_Code" value="&mvte:store:code;" />
                                  <input type="search" name="Search" value="" placeholder="Search&hellip;" class="bg-transparent nb input-large-font" />
                                  <button type="submit" class="button button-square bg-transparent nb np button-large-font" data-rt-icon="&#x64;"></button>
                              </form>
                          </div>
                      
                      
                          <mvt:if expr="l.settings:page:code EQ 'ORDL' OR l.settings:page:code EQ 'OCST' OR l.settings:page:code EQ 'OUS1' OR l.settings:page:code EQ 'OUSM' OR l.settings:page:code EQ 'UATM' OR l.settings:page:code EQ 'UATR' OR l.settings:page:code EQ 'OSEL' OR l.settings:page:code EQ 'OPAY' OR l.settings:page:code EQ 'INVC'">
                              <div class="row checkout-headers">
                                  <mvt:if expr="l.settings:page:code EQ 'ORDL' OR l.settings:page:code EQ 'OCST' OR l.settings:page:code EQ 'OUS1' OR l.settings:page:code EQ 'OUSM' OR l.settings:page:code EQ 'UATM' OR l.settings:page:code EQ 'UATR'">
                                      <div class="column one-fourth current-step"><span data-icon="&#xe107;"></span><strong class="hide medium-show">CUSTOMER INFORMATION</strong><strong class="medium-hide">STEP 1</strong></div>
                                  <mvt:else>
                                      <div class="column one-fourth"><span data-icon="&#xe107;"></span><strong class="hide medium-show">CUSTOMER INFORMATION</strong><strong class="medium-hide">STEP 1</strong></div>
                                  </mvt:if>
                                  <mvt:if expr="l.settings:page:code EQ 'OSEL'">
                                      <div class="column one-fourth current-step"><span data-icon="&#xe01f;"></span><strong class="hide medium-show">SHIPPING OPTIONS</strong><strong class="medium-hide">STEP 2</strong></div>
                                  <mvt:else>
                                      <div class="column one-fourth"><span data-icon="&#xe01f;"></span><strong class="hide medium-show">SHIPPING OPTIONS</strong><strong class="medium-hide">STEP 2</strong></div>
                                  </mvt:if>
                                  <mvt:if expr="l.settings:page:code EQ 'OPAY'">
                                      <div class="column one-fourth current-step"><span data-icon="&#xe014;"></span><strong class="hide medium-show">PAYMENT INFORMATION</strong><strong class="medium-hide">STEP 3</strong></div>
                                  <mvt:else>
                                      <div class="column one-fourth"><span data-icon="&#xe014;"></span><strong class="hide medium-show">PAYMENT INFORMATION</strong><strong class="medium-hide">STEP 3</strong></div>
                                  </mvt:if>
                                  <mvt:if expr="l.settings:page:code EQ 'INVC'">
                                      <div class="column one-fourth current-step"><span data-icon="&#xe0e6;"></span><strong class="hide medium-show">ORDER CONFIRMATION</strong><strong class="medium-hide">STEP 4</strong></div>
                                  <mvt:else>
                                      <div class="column one-fourth"><span data-icon="&#xe0e6;"></span><strong class="hide medium-show">ORDER CONFIRMATION</strong><strong class="medium-hide">STEP 4</strong></div>
                                  </mvt:if>
                      
                      
                              </div>
                          </mvt:if>
                      </nav>
                      Last edited by Brennan; 08-25-15, 08:03 AM.
                      Brennan Heyde
                      VP Product
                      Miva, Inc.
                      [email protected]
                      https://www.miva.com

                      Comment

                      • lesliekirk
                        Super Moderator











                        • Aug 2008
                        • 9296

                        #12
                        Re: URI Management Tab

                        So is this a work around or the permanent fix?
                        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: X | Facebook | Pinterest

                        Comment

                        • Brennan
                          Super Moderator









                          • Jun 2009
                          • 3481

                          #13
                          Re: URI Management Tab

                          That is the temporary work around. The issue will be permantely fixed in readytheme in the next bugfix
                          Brennan Heyde
                          VP Product
                          Miva, Inc.
                          [email protected]
                          https://www.miva.com

                          Comment

                          • Viscott
                            Mivite


                            • Mar 2006
                            • 239

                            #14
                            Re: URI Management Tab

                            This fix for the URI links works however it breaks the search form.

                            Search passes incorrectly to here: /mm5/Screen=SRCH

                            Instead of here: /product-search.html
                            Last edited by Viscott; 08-27-15, 08:28 AM.
                            Jon

                            Viscott Limited
                            www.viscott.com

                            Comment

                            • Brennan
                              Super Moderator









                              • Jun 2009
                              • 3481

                              #15
                              Re: URI Management Tab

                              thats interesting. They should not be related. What variable are you using for the search form?

                              &mvt:urls:srch:auto;
                              Brennan Heyde
                              VP Product
                              Miva, Inc.
                              [email protected]
                              https://www.miva.com

                              Comment

                              Working...
                              X