Announcement

Collapse
No announcement yet.

Price range search on home page

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

    Price range search on home page

    Hi There,

    I would like to be able to add the option to search for price on the home page and I have taken the script from the search template and stuck it in one of fragments and its not working.

    Please can someone look at the script below and tell me what im doing wrong?

    ---------------------------
    <form method="get" action="http://www.christopherpiperwines.co.uk/cgi-bin/ss000001.pl">
    <A NAME="top">
    <INPUT TYPE=HIDDEN NAME=RANDOM VALUE="NETQUOTEVAR:RANDOM">
    </A>
    <Actinic:NOWSERVING/>
    <Actinic:CURRACCOUNT/>
    <Actinic:LOGOUT_SIMPLE/>
    <span class="actxsmall"></span>
    <link href="actinic.css" rel="stylesheet" type="text/css">
    <input type=HIDDEN name="PAGE" value="SEARCH">
    <table width="300" border="0" cellspacing="0" cellpadding="0">
    <tr>
    <td rowspan="3"><img src="vertical_dotline.jpg" width="1" height="160"></td>
    <td width="299" height="21" bgcolor="#AA9CB2" class="white12pt"><strong><img src="shim.gif" width="5" height="5"></strong>Quick Search<span class="white11pt"> (Please select at least one option) </span></td>
    </tr>
    <tr>
    <td valign="top" bgcolor="#DDD8E0"><table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#DDD8E0">
    <tr>
    <td valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
    <tr>
    <td width="5" rowspan="2">&nbsp;</td>
    <td height="16" class="purple11pt">County/Region
    <Actinic:RETAIL_ONLY_SEARCH/></td>
    </tr>
    <tr>
    <td><span class="darkpurple12pt">
    <select name="S_Region1_0" size="1" class="purple11pt">
    <option value="" selected="selected">Any</option>
    <option value="Argentina">Argentina </option>
    </select>
    </span></td>
    </tr>
    </table>
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
    <tr>
    <td width="5" rowspan="2">&nbsp;</td>
    <td height="16" class="purple11pt">Type</td>
    <td rowspan="4" class="purple11pt"><a href="index.html"><img src="view_full_list.jpg" alt="View full wine list" width="133" height="57" border="0" /></a></td>
    </tr>
    <tr>
    <td><span class="darkpurple12pt">
    <select name="S_Type1_4" size="1" class="purple11pt">
    <option value="" selected="selected">Any</option>
    <option value="Fortified">Fortified </option>
    </select>
    </span></td>
    </tr>
    <tr>
    <td>&nbsp;</td>
    <td><span class="purple11pt">Price Range </span></td>
    </tr>
    <tr>
    <td>&nbsp;</td>
    <td><table width="95%" border="0" cellpadding="0" cellspacing="0">
    <tr>
    <td><a name="top" id="top">
    <input name="RANDOM" value="NETQUOTEVAR:RANDOM" type="hidden" />
    </a>
    <select name="PR" size="1">
    <option value="-1">Any</option>
    <option value="0">&pound;0.00 - &pound;10.00 </option>
    <option value="1">&pound;10.01 - &pound;20.00 </option>
    <option value="2">&pound;20.01 - &pound;40.00 </option>
    <option value="3">&pound;40.01 - &pound;100.00 </option>
    <option value="4">&pound;100.01+ </option>
    </select>
    </td>
    <input name="PAGE" value="SEARCH" type="hidden" />
    <input name="GB" value="A" type="hidden" />
    <input type="hidden" name="PR" value="-1" />
    <input type="hidden" name="TB" value="A" />
    <input type="hidden" name="SHOP" value="" />
    <td><div align="right">
    <input name="ACTION" type="submit" class="focusedbutton" value="Go" />
    </div></td>
    </tr>
    </table></td>
    </tr>
    </table></td>
    </tr>
    </table></td>
    </tr>
    <tr>
    <td valign="top" bgcolor="#E6E4E8"><table width="100%" border="0" cellspacing="0" cellpadding="0">
    <tr bgcolor="#AA9CB2">
    <td height="25" bgcolor="#E6E4E8"><a href="search.html"><img src="advancedsearch_b.gif" width="149" height="25" border="0" /></a></td>
    </tr>
    </table></td>
    </tr>
    </table>
    </form>
    -------------------------------

    Big thanks in advance.

    Angi
    christopherpiperwines.co.uk
    skatewarehouse.co.uk
    progrow.co.uk
    cheeksandcherries.co.uk

    #2
    Hi Angi,

    What error message do you get when you try to search? It is possible that when there are nested form tags which are causing the problem. If this is the case, then best thing you could do is at the beginning of the fragment, put in '</form>' right at the top.

    Kind Regards
    Nadeem Rasool
    SellerDeck Development

    Comment

    Working...
    X