Announcement

Collapse
No announcement yet.

Search to show sections.

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

    Search to show sections.

    Currently when a search for a product is carried out on my site a very long list of products can be generated. I would prefer if the result of a search to only showe the section, it would be cleaner and the results more managable.

    Is it possible to have the site search show only sections on the results page?

    Thank you for any help Actinic might give.

    Regards

    #2
    Hi Chris,

    You could do that by editing the search results template on the design tab. Go to the 'Design' tab and from the 'Select Page type' drop down select 'Search Results'...

    You should see the following code ...
    Code:
    <!-- Results HTML begin -->
    <!-- Add Results Page header HTML here -->
    
    
    <TABLE BORDER=0 CELLSPACING=0 CELLPADDING=10 WIDTH="CUSTOMVAR:ACTSTDWIDTH" ALIGN="CENTER">
        <TR>
            <TD ALIGN=LEFT>
              <B><Actinic:S_SUMMARY/></B><BR><Actinic:S_CONTINUE/>
            </TD>
        </TR>
        <TR>
            <TD ALIGN=LEFT>
              <Actinic:SEARCH_RESULTS>
              <Actinic:S_ITEM/>.
              <Actinic:XMLTEMPLATE NAME="ImageLine">
                  <IMG SRC="NETQUOTEVAR:THUMBNAIL" NETQUOTEVAR:THUMBNAILSIZE>
              </Actinic:XMLTEMPLATE>
              <Actinic:S_LINK/><Actinic:S_PRODREF/><B><Actinic:S_PNAME/></B></A> <Actinic:S_SNAME/> <Actinic:S_PRICE/> <BR>
              <Actinic:S_DESCR/><BR>
              <Actinic:S_PROP/><P>
              </Actinic:SEARCH_RESULTS>
            </TD>
        </TR>
        <TR>
            <TD ALIGN=LEFT>
              <B><Actinic:S_SUMMARY/></B><BR><Actinic:S_CONTINUE/>
            </TD>
        </TR>
    </TABLE>
    <HR SIZE="1" ALIGN="CENTER" WIDTH="CUSTOMVAR:ACTSTDWIDTH">
    NETQUOTEVAR:SEARCHBLOCK
    
    <!-- Add Results Page footer HTML here -->
    <!-- Results HTML end -->
    You will have to comment out a few bits so that it looks like this..
    Code:
    <!-- Results HTML begin -->
    <!-- Add Results Page header HTML here -->
    
    
    <TABLE BORDER=0 CELLSPACING=0 CELLPADDING=10 WIDTH="CUSTOMVAR:ACTSTDWIDTH" ALIGN="CENTER">
        <TR>
            <TD ALIGN=LEFT>
              <B><Actinic:S_SUMMARY/></B><BR><Actinic:S_CONTINUE/>
            </TD>
        </TR>
        <TR>
            <TD ALIGN=LEFT>
              <Actinic:SEARCH_RESULTS>
              <Actinic:S_ITEM/>.
              <Actinic:XMLTEMPLATE NAME="ImageLine">
              <!--  <IMG SRC="NETQUOTEVAR:THUMBNAIL" NETQUOTEVAR:THUMBNAILSIZE> -->
              </Actinic:XMLTEMPLATE>
              <Actinic:S_LINK/><!--<Actinic:S_PRODREF/><B><Actinic:S_PNAME/></B>--> <Actinic:S_SNAME/> </A> <!--<Actinic:S_PRICE/> <BR>
              <Actinic:S_DESCR/><BR>-->
              <Actinic:S_PROP/><P>
              </Actinic:SEARCH_RESULTS>
            </TD>
        </TR>
        <TR>
            <TD ALIGN=LEFT>
              <B><Actinic:S_SUMMARY/></B><BR><Actinic:S_CONTINUE/>
            </TD>
        </TR>
    </TABLE>
    <HR SIZE="1" ALIGN="CENTER" WIDTH="CUSTOMVAR:ACTSTDWIDTH">
    NETQUOTEVAR:SEARCHBLOCK
    
    <!-- Add Results Page footer HTML here -->
    <!-- Results HTML end -->
    You can copy and paste the second set to replce the code you have. This will being up a list index of only the sections that contain the products searched for.

    Kind regards,
    Last edited by Bruce; 04-Oct-2007, 08:23 AM. Reason: Replaced v8 code for v7 code ... doh !
    Bruce King
    SellerDeck

    Comment


      #3
      good to know its not just "us" who forget to look which forum we're in

      Bruce is in V8 mode, Chris!
      Tracey

      Comment


        #4
        yes, what he meant to say first was:

        'upgrade to V8 then...'

        doh!

        in fact, i dont know if this is possible in V7?

        Comment


          #5
          LOL , I was in v8 mode indeed.. Sorry for that. Above post now edited to contain correct code.

          Regards,
          Bruce King
          SellerDeck

          Comment


            #6
            Thank you for your help.

            Regards

            Chris

            Comment


              #7
              Thank you for your efforts Bruce, but the code does not work I'm afraid.

              Commenting out the line

              <Actinic:XMLTEMPLATE NAME="ImageLine">

              actually stops anything being displayed and gives an error to the effect that the imageline is missing. I have tried moving the leading "comment out" to sections of code below the imageline which allows the search results page to appear, but the results are variable including products as well as sections appearing.

              I have spent some hours playing around with the code without progress, if you are able to look at the code code again I would be grateful.

              Thank you

              Chris

              Comment


                #8
                Rechecking now...
                Bruce King
                SellerDeck

                Comment


                  #9
                  Try the second bit of code now, it works for me.

                  Kind regards,
                  Bruce King
                  SellerDeck

                  Comment


                    #10
                    good recovery bruce

                    Comment


                      #11
                      Thank you for your help Bruce. The search is working but not quite how I wanted.

                      What I am trying to achieve is for just the section heads to show on the results page.

                      For example I have a section which we will call “A Large” and under this section head may be say six products. I have a further section which will we call “A Medium” and under this section we will have say eight products.

                      Altogether we might have 60 item “A” products under four sections. What I want to achieve is for only the section headings for “A” to show in the results the result page, hopefully showing on the results page as something like

                      A Large
                      A Small
                      A Medium
                      A Extra Large etc.

                      Using the modified template you kindly provided the search results show the section heads but the head is repeated for the number of products in the section. So we might have “A large” repeated six times. For one product there are eight sections but the search results show 95 items, which is unwieldy and not really helpful.

                      If you can suggest how I might achieve the results I am looking for either by modifying one of the templates or altering the way I list I would be very grateful.

                      Regards

                      Chris

                      Comment


                        #12
                        Chris,

                        Am running this past development to see if they can come up with some suggestions on how to acheive this result, perhaps a script hack or something. I think it will be labelled as a wish-list item as it may be beyond v7's capability. Will keep you posted.

                        Kind regards,
                        Bruce King
                        SellerDeck

                        Comment


                          #13
                          Thanks for your efforts Bruce.

                          Is this something that would be available in Actinic v8?

                          Regards

                          Comment


                            #14
                            This will have to be labelled 'Wish-List' and I will add it in for you. v8 will work in very much the same way v7 does.

                            Kind regards,
                            Bruce King
                            SellerDeck

                            Comment


                              #15
                              Hi,

                              I'm on V8 and must say that I too am having trouble making my search results more manageable.

                              Product lists do not give enough information (and I have hidden products that I have also hidden from the search results so that unregistered customers cannot add to cart)

                              Fragment list option in search results leads to too many - much too confusing!

                              Ideally would like a list of sub-sections in which product is held. This would also enable me to show the INFORMATION on the hidden products without showing the add to cart option.

                              Looking at the code above it is obviously for V7. You mention that the results would also be the same for V8.

                              Is there a way of having a set of information that the search results can be limited to?

                              Looked at the thread on using 'extended info', but was wanting to use that tab for something else.

                              Is there a workaround that someone knows about?
                              Sam
                              http://www.originaltouch.co.uk
                              http://www.spcb.co.uk

                              If you spend your whole life waiting for the storm, you’ll never enjoy the sunshine.

                              Failure is the tuition you pay for success.

                              Comment

                              Working...
                              X