Announcement

Collapse
No announcement yet.

9.7 cssui.css for Search and

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

    9.7 cssui.css for Search and

    I have updated my Search as stated at https://www.miva.com/mm9.7_template_changes.html. I added code to cssui.css as instructed. My search results come as one column with no format.. I really do not see any difference after updating CSS.. http://www.cigarrummet.com/miva/merc...vc?Screen=SRCH and Cohiba as search word. Though it looks nice on mobile devices - I wonder if I missed something here?
    Thanksome for help...

    André aka Protos
    Last edited by Protos; 03-10-18, 12:34 AM.

    #2
    The search instructions for 9.7 are for the search preview, not for the search page product layout.
    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
      Thanks Matt for pointing me in right direction. I found the document https://docs.miva.com/how-to-guides/...mproved-search. I believe we call it "smart search" in Sweden. Now I get it :-) .
      Day 2: Yes, now I implemented it on SRCH and on some huge categories. It is a lot of fun! Hope our customers thin likewise.
      Last edited by Protos; 03-13-18, 12:01 PM.

      Comment


        #4
        Hello again Matt. This feature was a lot of fun and I use it on categories with many subcategories and on some other information pages and on SRCH again page. . Do I dare to implement it on the main global search on the main navbar?
        <input type="search" name="Search" value="" placeholder="Sök…" class="bg-transparent nb input-large-font"> What is your opinion?
        //ANdré

        Comment


          #5
          Hi André,

          I would actually recommend using it in the main global search instead of only on the search results page.
          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


            #6
            Hello Matt,
            I have a line in my global header
            <form action="&mvt:global:protocol_relative_url;Screen=S RCH" method="post" class="row mobile-navigation-search">

            and I am trying to substitute it with <form method="post" action="&mvte:urls:SRCH:rr;"> and may be add class. But it doesn´t do preview at all..

            Do I need to change anything else in
            <form action="&mvt:global:protocol_relative_url;Screen=S RCH" method="post" class="row mobile-navigation-search">
            <input type="hidden" name="Store_Code" value="&mvte:store:code;" />
            <mvt:item name="searchfield" />
            <button type="submit" class="button button-square column one-fifth bg-transparent"><span data-icon="&#x55;"></span></button>
            </form>

            Sorry to bother you. But I am stuck here

            André

            PS Checking SFNT gives me right script:
            <script type="text/javascript">
            var MivaVM_API = "Redirect";
            var MivaVM_Version = "5.31";
            var json_url = "http:\/\/dev.cigarrummet.com\/miva\/json.mvc\u003F";
            var json_nosessionurl = "http:\/\/dev.cigarrummet.com\/miva\/json.mvc\u003F";
            var Store_Code = "C";
            </script>
            <script src="http://dev.cigarrummet.com/miva/clientside.mvc?T=238d28e2&amp;Filename=ajax.js"></script>
            <script src="http://dev.cigarrummet.com/miva/clientside.mvc?T=238d28e2&amp;Filename=runtime.js"></script>
            <script type="text/javascript">
            var MMSearchField_Search_URL_sep = "http:\/\/dev.cigarrummet.com\/SRCH.html\u003FSearch=";
            </script>
            Last edited by Protos; 03-20-18, 12:42 PM.

            Comment


              #7
              Hi André,

              Make sure you have assigned the `searchfield` item to all pages and try replacing your form code with this...it may require some modification.

              Code:
              <form id="js-global-search" class="column whole large-half bg-white nrp global-search hide" action="&mvt:global:protocol_relative_url;Screen=SRCH" method="post">
                  <input name="Store_Code" value="&mvte:store:code;" type="hidden">
                  <input class="bg-transparent nb input-large-font" data-mm_searchfield="Yes" data-mm_searchfield_id="global-search-preview" type="search" name="Search" value="&mvte:global:Search;" placeholder="Sök…">
                  <button class="button button-square bg-transparent nb np button-large-font" data-rt-icon="&#x55;" type="submit"></button>
                  <span class="global-search-preview" data-mm_searchfield_menu="Yes" data-mm_searchfield_id="global-search-preview"></span>
              </form>
              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


                #8
                Thanks a lot! I see that you have even got my Swedish translation Sök. Very kind of you!

                Comment

                Working...
                X