Announcement

Collapse
No announcement yet.

More simplistic search

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

    More simplistic search

    How do I remove everything on our simple search bar except for the search window and "Go" button? http://www.uniformcorner.com/~unifor...singshoes.html

    When I have gone in and deleted the other cells manually in our Act_Primary template, it no longer functions. I realize that it is because I'm picking vital pieces out of the code.

    What is the easy way to do this?

    #2
    If you go into the template manager and search tab, you will find the template for the simplesearch in there...

    To take it out of the tables, just remove all of the entries for <TABLE> start and stops, <TD>s <TR>s etc and leave all of the other code, for the forms, inputs submit buttons etc...

    Comment


      #3
      Hmm...that didn't work right for me. Can you check my code out and see what I'm missing? http://www.uniformcorner.com/newsite.htm

      That's a test page.

      Christy

      Comment


        #4
        Probably the minimum you can cut Act_SimpleSearch.html down to is something like this:
        Code:
          <form name=simplesearch action="NETQUOTEVAR:SEARCHCGIURL" METHOD="NETQUOTEVAR:CGIMETHOD">
            <input type="TEXT" name="SS" size="15" maxsize="125" value="NETQUOTEVAR:QUICKSEARCHLABEL" onFocus="this.value='';this.style.background='#FFFFFF'">
            <input name="ACTION" type="image" id="ACTION" src="quicksearch.gif" width="49" height="19" border="0" alt="NETQUOTEVAR:QUICKSEARCHBUTTONTEXT"> 
            <input type=HIDDEN name="PR" value="-1">
            <input type=HIDDEN name="TB" value="A"> 
            <input type=HIDDEN name="SHOP" value="NETQUOTEVAR:SHOPID">
          </form>

        Comment


          #5
          Chris,

          Thanks very much! Though unfortunately I am still a bit lost in how to make this code work. Isn't there some javascript I need? I'm not sure how to name the variables.

          Sorry for needing a hand holding! ack...

          Comment


            #6
            Search

            Hello Cristy

            You don't necessarily need any javascript unless you wish to perform some special function like error checking or to make the textbox value clear itself once you focus on it.

            You can see the javascript part that begins with "OnFocus" - that will clear the text box when you focus with the cursor to the textbox.

            In a live version, the form action might be "http://www.uniformsite.com/cgi-bin/ss000001.cgi" and because you use "GET" in the method of that form, all the things you have as "HIDDEN" will be tacked on the end like ss000001.cgi?SS=(what you search for)&TB=A&PR=-1&SHOP=(some value).

            But Actinic inserts the values for you if you set it up correctly in the Actinic 'Network Setup'.

            As far as I can see your form is set up correctly although the NETQUOTEVARs have obviously yet to be filled in by Actinic. Sometimes forms can do odd things like add extra spacings around boxes and buttons.

            If you need a hand, please give me a yell, I'd be happy to assist.

            DavyT.
            http://www.johnsons-seeds.com - Actinic plugins, remote add to cart and custom CMS
            http://www.dtbrownseeds.co.uk - More seeds and plants....
            http://www.mr-fothergills.co.uk - Well it used to be Actinic...

            Comment


              #7
              Dave,

              I see what you mean. I really need to get a search on our introduction page which isn't within our acatalog directory however, as you can see. Will that be possible or can it only appear in the inner catalog pages?

              Thanks!

              Christy

              Comment


                #8
                Simple search

                Hi Christy

                Yes this is possible.

                What I have found you need to do is ensure that you include all those parameters mentioned (?SS=(search)&TB=A&PR=-1&SHOP=) and also include "&ACTINIC_REFERRER=http://www.uniformsite.com/acatalog" as another hidden parameter:

                The full html might be:

                <form action="http://www.uniformsite.com/cgi-bin/ss000001.cgi" method="get">
                <input type="text" name="SS" value="" />
                <input type="hidden" name="TB" value="A" />
                <input type="hidden" name="PR" value="-1" />
                <input type="hidden" name="SHOP" value="" />
                <input type="hidden" name="ACTINIC_REFERRER" value="http://www.uniformsite.com/acatalog" />
                </form>

                Sometimes the page can get 'lost' if you don't include the referrer so that it ends up looking for images in the cgi-bin folder. But this should sort it out.

                Hope this helps explain things.

                DaveT.
                http://www.johnsons-seeds.com - Actinic plugins, remote add to cart and custom CMS
                http://www.dtbrownseeds.co.uk - More seeds and plants....
                http://www.mr-fothergills.co.uk - Well it used to be Actinic...

                Comment


                  #9
                  Dave,

                  It worked out great, thanks so much for being specific. I realize I could have gone to a tutorial but I appreciate the direct help.

                  http://www.uniformcorner.com/newsite.htm

                  Comment


                    #10
                    Hi Christy

                    Hey it looks very nice! Good job.

                    Glad I was able to help.

                    While you are tweaking, you have a line in there "<input name="SS" type="text" height>", that height part is not gonna work, might trip up in some browsers.

                    Just a thought.

                    Dave.
                    http://www.johnsons-seeds.com - Actinic plugins, remote add to cart and custom CMS
                    http://www.dtbrownseeds.co.uk - More seeds and plants....
                    http://www.mr-fothergills.co.uk - Well it used to be Actinic...

                    Comment

                    Working...
                    X