Announcement

Collapse
No announcement yet.

Site Search problems

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

    Site Search problems

    Hello

    Does anyone know if you can set actinic to search the product reference number in addition to the short and long descriptions that it currently does. If so how would i do this

    Thanks

    John

    #2
    I have set up a search box using a drop-down menu to achieve this. Set to the Search, the search is carried out as normal. Set to ID search, the form simply fires a javascript function that inserts the ID into a URL string, and sets the window.location property to the string value. If you want to see the code just let me know.

    There may be a way to include the ID in the search, but I wanted the user to be taken directly to their required product.
    Last edited by Kermy; 04-Aug-2005, 03:08 PM. Reason: make accurate
    www.gbradley.co.uk
    Web Development, Actinic Patches, Scripts & more

    Comment


      #3
      Hi There

      If i could see the code it would be great, I am not that advanced at HTML please can you let me see the code to see if it makes sense.

      John

      Comment


        #4
        To make it a little simpler, this is code that will insert another box underneath the main search form instead of using a drop-down.

        Open Act_SearchTemplate.html and find the lines near the end of the file which say:

        <tr>
        <td valign="TOP">NETQUOTEVAR:SPLASHTEXTBODY NETQUOTEVAR:INFOLINES </td>
        </tr>
        Directly above these lines, insert the following:
        <tr>
        <td><p>To search for a specific item, enter the item reference below.</p><br/></td>
        </tr>
        <tr>
        <td>
        <input type="text" size="3" id="idSearch" />
        <input type="button" value="Go To Item" onclick="window.location='http://<WEBSITE_URL>/cgi-bin/ss000001.pl?PRODREF='+getElementById('idSearch').value+'&NOLOGIN=1';" />
        </td>
        </tr>
        You will need to replace <WEBSITE_URL> in the above code with your website address. Upload the page and try it out.
        www.gbradley.co.uk
        Web Development, Actinic Patches, Scripts & more

        Comment

        Working...
        X