<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="https://syndication.webwiz.net/rss_namespace/">
 <channel>
  <title>ProductCart Shopping Cart Software Forums : Search Results V3.12</title>
  <link>https://forum.productcart.com/</link>
  <description><![CDATA[This is an XML content feed of; ProductCart Shopping Cart Software Forums : Using ProductCart : Search Results V3.12]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sun, 12 Apr 2026 03:29:44 +0000</pubDate>
  <lastBuildDate>Fri, 25 Jul 2008 15:57:27 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 12.04</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>https://forum.productcart.com/RSS_post_feed.asp?TID=1782</WebWizForums:feedURL>
  <image>
   <title><![CDATA[ProductCart Shopping Cart Software Forums]]></title>
   <url>https://forum.productcart.com/forum_images/pc_logo_50.png</url>
   <link>https://forum.productcart.com/</link>
  </image>
  <item>
   <title><![CDATA[Search Results V3.12 : I actually have version 3.12 (small...]]></title>
   <link>https://forum.productcart.com/search-results-v3-12_topic1782_post6173.html#6173</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://forum.productcart.com/member_profile.asp?PF=1165">worldofrugs</a><br /><strong>Subject:</strong> 1782<br /><strong>Posted:</strong> 25-July-2008 at 3:57pm<br /><br />I actually have version 3.12 (small detail haha)<br><br>I will try what you have suggested over the weeked. Hopefully it works out!<br>I'll keep you posted&nbsp; <img src="https://forum.productcart.com/smileys/smiley2.gif" border="0" alt="Wink" /><br><br>Thanks for your help cmason!<br>]]>
   </description>
   <pubDate>Fri, 25 Jul 2008 15:57:27 +0000</pubDate>
   <guid isPermaLink="true">https://forum.productcart.com/search-results-v3-12_topic1782_post6173.html#6173</guid>
  </item> 
  <item>
   <title><![CDATA[Search Results V3.12 : Wow, I see what you mean.  Lots...]]></title>
   <link>https://forum.productcart.com/search-results-v3-12_topic1782_post6172.html#6172</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://forum.productcart.com/member_profile.asp?PF=1234">cmason</a><br /><strong>Subject:</strong> 1782<br /><strong>Posted:</strong> 25-July-2008 at 3:51pm<br /><br />Wow, I see what you mean.  Lots more "stuff" in yours.  I thought reading the search code in V3.12 was a mess but I don't have any of the tmp3/tmp4/tmp5, App-S, App-E stuff to cope with.<br /><br />This looks very peculiar to me <br />"<br />query=replace(query, " ORDER", tmp5 & " ORDER")"<br />"<br /><br />Looks like they're using " ORDER" as place holder in "query" and then sticking in the tmp5 string (which appears to do the selects) + " ORDER" using the replace.  Not sure why the select strings weren't built into the process of building the query.<br /><br />If I were you, I'd try changing, line 198?,<br />"<br />ORDER BY categories.categoryDesc<br />"<br />to<br />"<br />ORDER BY categories.idParentCategory, categories.idCategory, categories.categoryDesc<br />"<br /><br />And that would also mean changing below, line 185?, to add idParentCategory<br />"<br />strSQL= "SELECT "& pcv_strLimitPhrase &" COUNT(categories.idcategory) AS ProductCount, categories.idcategory, categories.categoryDesc <br />"<br />to<br />"<br />strSQL= "SELECT "& pcv_strLimitPhrase &" COUNT(categories.idcategory) AS ProductCount, categories.idcategory, categories.categoryDesc, categories.idParentCategory "<br />"<br /><br />Also don't forget to add the idParentCategory to the Group By, line 568?<br />"<br />tmp5=tmp5 & "GROUP BY categories.idcategory, categories.categoryDesc <br />"<br />to<br />"<br />tmp5=tmp5 & "GROUP BY categories.idParentCategory, categories.idcategory, categories.categoryDesc <br />"<br /><br />Sorry, I didn't know that my files were that much different than V3.11.  Maybe in the next version things will get even simpler? This is a bit intimidating to work with.<br /><br />Good luck]]>
   </description>
   <pubDate>Fri, 25 Jul 2008 15:51:06 +0000</pubDate>
   <guid isPermaLink="true">https://forum.productcart.com/search-results-v3-12_topic1782_post6172.html#6172</guid>
  </item> 
  <item>
   <title><![CDATA[Search Results V3.12 : cmason,Again thank you for your...]]></title>
   <link>https://forum.productcart.com/search-results-v3-12_topic1782_post6171.html#6171</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://forum.productcart.com/member_profile.asp?PF=1165">worldofrugs</a><br /><strong>Subject:</strong> 1782<br /><strong>Posted:</strong> 25-July-2008 at 2:25pm<br /><br />cmason,<br>Again thank you for your help so far...<br>However, I simply do not see it in my code....<br>I see a Group by section, but looking totally different... (I'm so confused!&nbsp; hahaha <img src="https://forum.productcart.com/smileys/smiley5.gif" border="0" alt="C&#111;nfused" /> )<br><br>This is my original inc_srcPRDQuery --&gt;<br><br>&lt;%<br>Session.LCID=1033<br><br>iPageSize=getUserInput(request("resultCnt"),10)<br>if iPageSize="" then<br>&nbsp;&nbsp;&nbsp; iPageSize=getUserInput(request("iPageSize"),0)<br>end if<br>if (iPageSize="") then<br>&nbsp;&nbsp;&nbsp; iPageSize=6<br>end if<br>if (not IsNumeric(iPageSize)) then<br>&nbsp;&nbsp;&nbsp; iPageSize=6<br>end if<br>if request("iPageCurrent")="" then<br>&nbsp;&nbsp;&nbsp; iPageCurrent=1 <br>else<br>&nbsp;&nbsp;&nbsp; iPageCurrent=server.HTMLEncode(request("iPageCurrent"))<br>end if<br><br>pSKU=getUserInput(request("SKU"),150)<br>pKeywords=getUserInput(request("keyWord"),100)<br>pCValues=getUserInput(request("SearchValues"),100)<br>tKeywords=pKeywords<br>tIncludeSKU=getUserInput(request("includeSKU"),10)<br>pPriceFrom=getUserInput(request("priceFrom"),20)<br>if NOT isNumeric(pPriceFrom) then<br>&nbsp;&nbsp;&nbsp; pPriceFrom=0<br>end if<br>if Instr(pPriceFrom,",")&gt;Instr(pPriceFrom,".") then<br>&nbsp;&nbsp;&nbsp; pPriceFrom=replace(pPriceFrom,",",".")<br>end if<br>pPriceUntil=getUserInput(request("priceUntil"),20)<br>if NOT isNumeric(pPriceUntil) then<br>&nbsp;&nbsp;&nbsp; pPriceUntil=9999999<br>end if<br>if Instr(pPriceUntil,",")&gt;Instr(pPriceUntil,".") then<br>&nbsp;&nbsp;&nbsp; pPriceUntil=replace(pPriceUntil,",",".")<br>end if<br>if src_ForCats="1" then<br>&nbsp;&nbsp;&nbsp; pIdCategory=0<br>&nbsp;&nbsp;&nbsp; else<br>&nbsp;&nbsp;&nbsp; pIdCategory=getUserInput(request("idCategory"),4)<br>&nbsp;&nbsp;&nbsp; if NOT validNum(pIdCategory) or trim(pIdCategory)="" then<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; pIdCategory=0<br>&nbsp;&nbsp;&nbsp; end if<br>end if<br>pIdSupplier=getUserInput(request("idSupplier"),4)<br>if NOT validNum(pIdSupplier) or trim(pIdSupplier)="" then<br>&nbsp;&nbsp;&nbsp; pIdSupplier=0<br>end if<br>pWithStock=getUserInput(request("withStock"),2)<br>pcustomfield=getUserInput(request("customfield"),150)<br>&nbsp;&nbsp;&nbsp; if pcustomfield = "" then<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; pcustomfield = 0<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; pCValues=""<br>&nbsp;&nbsp;&nbsp; end if<br>&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; if Not IsNumeric(pcustomfield) then<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; pcustomfield = 0<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; pCValues=""<br>&nbsp;&nbsp;&nbsp; end if<br>&nbsp;&nbsp;&nbsp; <br>if pcustomfield=0 then<br>&nbsp;&nbsp;&nbsp; pCValues=""<br>end if<br>&nbsp;&nbsp;&nbsp; <br>IDBrand=getUserInput(request("IDBrand"),20)<br>if NOT validNum(IDBrand) or trim(IDBrand)="" then<br>&nbsp;&nbsp;&nbsp; IDBrand=0<br>end if<br>strORD=getUserInput(request("order"),4)<br>if NOT validNum(strORD) or trim(strORD)="" then<br>&nbsp;&nbsp;&nbsp; strORD=3<br>end if<br><br>pInactive="0"<br><br>if strORD&lt;&gt;"" then<br>&nbsp;&nbsp;&nbsp; Select Case StrORD<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; Case "1": strORD1="A.idproduct ASC"<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; Case "2": strORD1="A.sku ASC"<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; Case "3": strORD1="A.sku DESC"<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; Case "4": strORD1="A.description ASC"<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; Case "5": strORD1="A.description DESC"<br>&nbsp;&nbsp;&nbsp; End Select<br>Else<br>&nbsp;&nbsp;&nbsp; strORD="1"<br>&nbsp;&nbsp;&nbsp; strORD1="A.idproduct ASC"<br>End If<br>&nbsp;&nbsp;&nbsp; <br>PrdTypeStr=""<br><br>PrdTypeStr=""<br><br>'src_IncNormal=getUserInput(request("src_IncNormal"),0)<br>src_IncNormal=1<br>'src_IncBTO=getUserInput(request("src_IncBTO"),0)<br>src_IncBTO=1<br>src_IncItem=getUserInput(request("src_IncItem"),0)<br>src_Special=getUserInput(request("src_Special"),0)<br>src_Featured=getUserInput(request("src_Featured"),0)<br><br>if src_IncNormal="" then<br>&nbsp;&nbsp;&nbsp; src_IncNormal="0"<br>end if<br><br>if src_IncBTO="" then<br>&nbsp;&nbsp;&nbsp; src_IncBTO="0"<br>end if<br><br>if src_IncItem="" then<br>&nbsp;&nbsp;&nbsp; src_IncItem="0"<br>end if<br><br>if src_Special="" then<br>&nbsp;&nbsp;&nbsp; src_Special="0"<br>end if<br><br>if src_Featured="" then<br>&nbsp;&nbsp;&nbsp; src_Featured="0"<br>end if<br><br>if (src_IncBTO="0") and (src_IncItem="0") then<br>&nbsp;&nbsp;&nbsp; src_IncNormal="1"<br>end if<br><br>if (src_IncBTO="1") and (src_IncItem="0") and (src_IncNormal="0") then<br>&nbsp;&nbsp;&nbsp; PrdTypeStr=" AND serviceSpec&lt;&gt;0 "<br>end if<br><br>if (src_IncBTO="0") and (src_IncItem="1") and (src_IncNormal="0") then<br>&nbsp;&nbsp;&nbsp; PrdTypeStr=" AND configOnly&lt;&gt;0 "<br>end if<br><br>if (src_IncBTO="1") and (src_IncItem="1") and (src_IncNormal="0") then<br>&nbsp;&nbsp;&nbsp; PrdTypeStr=" AND ((serviceSpec&lt;&gt;0) OR (configOnly&lt;&gt;0)) "<br>end if<br><br>if (src_IncBTO="0") and (src_IncItem="1") and (src_IncNormal="1") then<br>&nbsp;&nbsp;&nbsp; PrdTypeStr=" AND serviceSpec=0 "<br>end if<br><br>if (src_IncBTO="1") and (src_IncItem="0") and (src_IncNormal="1") then<br>&nbsp;&nbsp;&nbsp; PrdTypeStr=" AND configOnly=0 "<br>end if<br><br>if (src_IncBTO="0") and (src_IncItem="0") and (src_IncNormal="1") then<br>&nbsp;&nbsp;&nbsp; PrdTypeStr=" AND ((serviceSpec=0) AND (configOnly=0)) "<br>end if<br><br>&nbsp;&nbsp;&nbsp; <br>' create sql statement<br>strSQL=""<br>tmpSQL=""<br>tmpSQL2=""<br><br>tmpSQL1=",categories_products,categories "<br><br>tmp_StrQuery=""<br>if session("customerCategory")="" or session("customerCategory")=0 then<br>&nbsp;&nbsp;&nbsp; If session("customerType")=1 then<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; tmp_StrQuery="(A.serviceSpec&lt;&gt;0 AND A.pcProd_BTODefaultWPrice&gt;="&amp;pPriceFrom&amp;" And A.pcProd_BTODefaultWPrice&lt;=" &amp;pPriceUntil&amp;")"<br>&nbsp;&nbsp;&nbsp; else<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; tmp_StrQuery="(A.serviceSpec&lt;&gt;0 AND A.pcProd_BTODefaultPrice&gt;="&amp;pPriceFrom&amp;" And A.pcProd_BTODefaultPrice&lt;=" &amp;pPriceUntil&amp;")"<br>&nbsp;&nbsp;&nbsp; end if<br>else<br>&nbsp;&nbsp;&nbsp; tmp_StrQuery="(A.serviceSpec&lt;&gt;0 AND A.idproduct IN (SELECT idproduct FROM pcBTODefaultPriceCats WHERE pcBTODefaultPriceCats.idCustomerCategory=" &amp; session("customerCategory") &amp; " AND pcBTODefaultPriceCats.pcBDPC_Price&gt;="&amp;pPriceFrom&amp;" AND pcBTODefaultPriceCats.pcBDPC_Price&lt;=" &amp;pPriceUntil&amp;"))"<br>end if<br><br>pcv_strMaxResults=SRCH_MAX<br>If pcv_strMaxResults&gt;"0" Then<br>&nbsp;&nbsp;&nbsp; pcv_strLimitPhrase="TOP " &amp; pcv_strMaxResults<br>Else<br>&nbsp;&nbsp;&nbsp; pcv_strLimitPhrase=""<br>End If<br><br><br>'APP-S<br>tmpCatquery=""<br>tmpCatquery1=""<br>'APP-E<br><br>if src_ForCats="1" then&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; '// Category Search<br>&nbsp;&nbsp;&nbsp; strSQL= "SELECT "&amp; pcv_strLimitPhrase &amp;" COUNT(categories.idcategory) AS ProductCount, categories.idcategory, categories.categoryDesc " <br>&nbsp;&nbsp;&nbsp; strSQL=strSQL&amp; "FROM "<br>&nbsp;&nbsp;&nbsp; strSQL=strSQL&amp; "(categories_products INNER JOIN categories ON categories_products.idcategory=categories.idcategory) "<br>&nbsp;&nbsp;&nbsp; strSQL=strSQL&amp; "LEFT OUTER JOIN products as A "<br>&nbsp;&nbsp;&nbsp; strSQL=strSQL&amp; "ON A.idProduct=categories_products.idProduct "<br>&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; session("srcprd_from")=""<br>&nbsp;&nbsp;&nbsp; session("srcprd_where")=""<br>&nbsp;&nbsp;&nbsp; if session("customerType")&lt;&gt;"1" then<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; session("srcprd_where")=" AND categories.pccats_RetailHide=0 "<br>&nbsp;&nbsp;&nbsp; end if&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; 'APP-S<br>&nbsp;&nbsp;&nbsp; session("srcprd_where")=session("srcprd_where") &amp; " AND categories_products.idproduct=A.idproduct AND categories.idcategory=categories_products.idcategory&nbsp; AND categories.iBTOhide=0) ORDER BY categories.categoryDesc"<br>&nbsp;&nbsp;&nbsp; tmpCatquery1=" AND categories_products.idproduct=A.idproduct AND categories.idcategory=categories_products.idcategory&nbsp; AND categories.iBTOhide=0"<br>&nbsp;&nbsp;&nbsp; 'APP-E&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; 'APP-S<br>&nbsp;&nbsp;&nbsp; strSQL=strSQL &amp; "WHERE "<br>&nbsp;&nbsp;&nbsp; strSQL=strSQL &amp; "( " '// App Only<br>&nbsp;&nbsp;&nbsp; strSQL=strSQL &amp; "((" &amp; tmp_StrQuery &amp; " OR (A.serviceSpec=0 AND A.price&gt;="&amp;pPriceFrom&amp;" And A.price&lt;=" &amp;pPriceUntil&amp;")) AND A.removed=0"<br>&nbsp;&nbsp;&nbsp; 'APP-E<br>&nbsp;&nbsp;&nbsp; <br>else<br><br>&nbsp;&nbsp;&nbsp; '// Product Search<br>&nbsp;&nbsp;&nbsp; 'APP-S&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; strSQL= "SELECT "&amp; pcv_strLimitPhrase &amp;" A.idProduct, A.description, A.active, A.sku, A.serviceSpec, A.configonly " <br>&nbsp;&nbsp;&nbsp; strSQL=strSQL&amp; "FROM products A " <br>&nbsp;&nbsp;&nbsp; strSQL=strSQL&amp; " WHERE idProduct IN ( SELECT "&amp; pcv_strLimitPhrase &amp;" idProduct FROM categories_products, categories WHERE idProduct = A.idProduct"<br>&nbsp;&nbsp;&nbsp; strSQL=strSQL&amp; " AND (A.price&gt;="&amp;pPriceFrom&amp;" And A.price&lt;=" &amp;pPriceUntil&amp;" AND A.removed=0" <br>&nbsp;&nbsp;&nbsp; 'APP-E<br>&nbsp;&nbsp;&nbsp; <br>end if<br><br><br><br>if len(pSKU)&gt;0 then<br>&nbsp;&nbsp;&nbsp; strSQL=strSQL &amp; " AND A.sku like '%"&amp;pSKU&amp;"%'"<br>end if<br><br>if pIdCategory&lt;&gt;"0" then<br>&nbsp;&nbsp;&nbsp; strSQL=strSQL &amp; " AND A.idProduct=categories_products.idProduct AND categories_products.idCategory=" &amp;pIdCategory<br>&nbsp;&nbsp;&nbsp; 'APP-S<br>&nbsp;&nbsp;&nbsp; tmpCatquery=tmpCatquery &amp; " AND A.idProduct=categories_products.idProduct AND categories_products.idCategory=" &amp;pIdCategory<br>&nbsp;&nbsp;&nbsp; 'APP-E<br>else<br>&nbsp;&nbsp;&nbsp; strSQL=strSQL &amp; " AND categories_products.idProduct=A.idProduct"<br>&nbsp;&nbsp;&nbsp; 'APP-S<br>&nbsp;&nbsp;&nbsp; tmpCatquery=tmpCatquery &amp; " AND categories_products.idProduct=A.idProduct"<br>&nbsp;&nbsp;&nbsp; 'APP-E<br>end if<br><br>strSQL=strSQL &amp; " AND categories.idCategory=categories_products.idCategory AND categories.iBTOhide=0"<br>'APP-S<br>tmpCatquery=tmpCatquery &amp; " AND categories.idCategory=categories_products.idCategory AND categories.iBTOhide=0"<br>'APP-E<br>if session("CustomerType")&lt;&gt;"1" then<br>&nbsp;&nbsp;&nbsp; strSQL=strSQL &amp; " AND categories.pccats_RetailHide=0"<br>&nbsp;&nbsp;&nbsp; 'APP-S<br>&nbsp;&nbsp;&nbsp; tmpCatquery=tmpCatquery &amp; " AND categories.pccats_RetailHide=0"<br>&nbsp;&nbsp;&nbsp; 'APP-E<br>end if<br><br>if (pIdSupplier&lt;&gt;"0") and (pIdSupplier&lt;&gt;"10") then<br>&nbsp;&nbsp;&nbsp; strSQL=strSQL &amp; " AND A.idSupplier=" &amp;pIdSupplier<br>end if<br><br>if pWithStock="-1" then<br>&nbsp;&nbsp;&nbsp; strSQL=strSQL &amp; " AND (stock&gt;0 OR noStock&lt;&gt;0)" <br>end if<br><br>if (IDBrand&amp;""&lt;&gt;"") and (IDBrand&amp;""&lt;&gt;"0") then<br>&nbsp;&nbsp;&nbsp; strSQL=strSQL &amp; " AND IDBrand=" &amp; IDBrand<br>end if<br><br>if pInactive="-1" then<br>else<br>&nbsp;&nbsp; strSQL=strSQL &amp; " AND A.active=-1" <br>end if<br><br>if src_Special="1" then<br>&nbsp;&nbsp; strSQL=strSQL &amp; " AND A.hotdeal&lt;&gt;0" <br>end if<br><br>if src_Special="2" then<br>&nbsp;&nbsp; strSQL=strSQL &amp; " AND A.hotdeal=0" <br>end if<br><br>if src_Featured="1" then<br>&nbsp;&nbsp; strSQL=strSQL &amp; " AND A.showInHome&lt;&gt;0" <br>end if<br><br>if src_Featured="2" then<br>&nbsp;&nbsp; strSQL=strSQL &amp; " AND A.showInHome=0" <br>end if<br><br>TestWord=""<br>if request("exact")&lt;&gt;"1" then<br>&nbsp;&nbsp;&nbsp; if Instr(pKeywords," AND ")&gt;0 then<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; keywordArray=split(pKeywords," AND ")<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; TestWord=" AND "<br>&nbsp;&nbsp;&nbsp; else<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if Instr(pKeywords," and ")&gt;0 then<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; keywordArray=split(pKeywords," and ")<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; TestWord=" AND "<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; else<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if Instr(pKeywords,",")&gt;0 then<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; keywordArray=split(pKeywords,",")<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; TestWord=" OR "<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; else<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if (Instr(pKeywords," OR ")&gt;0) then<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; keywordArray=split(pKeywords," OR ")<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; TestWord=" OR "<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; else<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if (Instr(pKeywords," or ")&gt;0) then<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; keywordArray=split(pKeywords," or ")<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; TestWord=" OR "<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; else<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if (Instr(pKeywords," ")&gt;0) then<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; keywordArray=split(pKeywords," ")<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; TestWord=" AND "<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; else<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; keywordArray=split(pKeywords,"***")&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; TestWord=" OR "<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; end if<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; end if<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; end if<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; end if<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; end if<br>&nbsp;&nbsp;&nbsp; end if<br>else<br>&nbsp;&nbsp;&nbsp; pKeywords=trim(pKeywords)<br>&nbsp;&nbsp;&nbsp; if pKeywords&lt;&gt;"" then<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if scDB="SQL" then<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; pKeywords="'" &amp; pKeywords &amp; "'***'%&#091;^a-zA-z0-9&#093;" &amp; pKeywords &amp; "&#091;^a-zA-z0-9&#093;%'***'" &amp; pKeywords &amp; "&#091;^a-zA-z0-9&#093;%'***'%&#091;^a-zA-z0-9&#093;" &amp; pKeywords &amp; "'"<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; else<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; pKeywords="'" &amp; pKeywords &amp; "'***'%&#091;!a-zA-z0-9&#093;" &amp; pKeywords &amp; "&#091;!a-zA-z0-9&#093;%'***'" &amp; pKeywords &amp; "&#091;!a-zA-z0-9&#093;%'***'%&#091;!a-zA-z0-9&#093;" &amp; pKeywords &amp; "'"<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; end if<br>&nbsp;&nbsp;&nbsp; end if<br>&nbsp;&nbsp;&nbsp; keywordArray=split(pKeywords,"***")&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; TestWord=" OR "<br>end if<br><br>if pcustomfield&lt;&gt;"0" AND pCValues&lt;&gt;"" then<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; strCnt=0<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; strSQL=strSQL &amp; " AND (("<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; strSQL=strSQL &amp; "(custom1="&amp;pcustomfield&amp;" AND content1 LIKE '%"&amp;trim(pCValues)&amp;"%') OR (custom2="&amp;pcustomfield&amp;" AND content2 LIKE '%"&amp;trim(pCValues)&amp;"%') OR (custom3="&amp;pcustomfield&amp;" AND content3 LIKE '%"&amp;trim(pCValues)&amp;"%')"<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; strSQL=strSQL &amp; ")"<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if pKeywords="" then<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; strSQL=strSQL &amp; ")"<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; end if<br>end if<br><br>IF request("exact")&lt;&gt;"1" THEN<br><br>if pcustomfield&lt;&gt;"0" AND pKeywords&lt;&gt;"" then<br>&nbsp;&nbsp;&nbsp; if pCValues="" then<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; strCnt=0<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; strSQL=strSQL &amp; " AND (("<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; for L=0 to UBound(keywordArray)<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; strCnt=strCnt+1<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; strSQL=strSQL &amp; "((custom1="&amp;pcustomfield&amp;" AND content1 LIKE '%"&amp;trim(keywordArray(L))&amp;"%') OR (custom2="&amp;pcustomfield&amp;" AND content2 LIKE '%"&amp;trim(keywordArray(L))&amp;"%') OR (custom3="&amp;pcustomfield&amp;" AND content3 LIKE '%"&amp;trim(keywordArray(L))&amp;"%'))"<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if strCnt&lt;&gt;(UBound(keywordArray)+1) then<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; strSQL=strSQL&amp;TestWord<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; end if<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; next<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; strSQL=strSQL &amp; ")"<br>&nbsp;&nbsp;&nbsp; end if<br>else<br>&nbsp;&nbsp;&nbsp; if pKeywords&lt;&gt;"" AND pCValues="" then<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; strCnt=0<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; strSQL=strSQL &amp; " AND (("<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; for L=0 to UBound(keywordArray)<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; strCnt=strCnt+1<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; strSQL=strSQL &amp; "((content1 LIKE '%"&amp;trim(keywordArray(L))&amp;"%') OR (content2 LIKE '%"&amp;trim(keywordArray(L))&amp;"%') OR (content3 LIKE '%"&amp;trim(keywordArray(L))&amp;"%'))"<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if strCnt&lt;&gt;(UBound(keywordArray)+1) then<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; strSQL=strSQL&amp;TestWord<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; end if<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; next<br>&nbsp;&nbsp;&nbsp; strSQL=strSQL&amp;")"&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; end if<br>&nbsp;&nbsp;&nbsp; if pcustomfield&lt;&gt;"0" AND pKeywords="" AND pCValues="" then<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; strCnt=0<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; strSQL=strSQL &amp; " AND ("<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; strSQL=strSQL &amp; "(custom1="&amp;pcustomfield&amp;") OR (custom2="&amp;pcustomfield&amp;") OR (custom3="&amp;pcustomfield&amp;")"<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; strSQL=strSQL &amp; ")"<br>&nbsp;&nbsp;&nbsp; end if<br>end if<br><br>if pKeywords&lt;&gt;"" then<br>&nbsp;&nbsp;&nbsp; if pcustomfield&lt;&gt;"0" AND pCValues&lt;&gt;"" then<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; strSQl=strSql &amp; " AND ("<br>&nbsp;&nbsp;&nbsp; else<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; strSQl=strSql &amp; " OR ("<br>&nbsp;&nbsp;&nbsp; end if<br>&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; tmpSQL="(A.details LIKE "<br>&nbsp;&nbsp;&nbsp; tmpSQL2="(A.description LIKE "<br>&nbsp;&nbsp;&nbsp; tmpSQL3="(A.sDesc LIKE "<br>&nbsp;&nbsp;&nbsp; if tIncludeSKU="true" then<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; tmpSQL4="(SKU LIKE "<br>&nbsp;&nbsp;&nbsp; end if<br>&nbsp;&nbsp;&nbsp; Pos=0<br>&nbsp;&nbsp;&nbsp; For L=LBound(keywordArray) to UBound(keywordArray)<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if trim(keywordArray(L))&lt;&gt;"" then<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; Pos=Pos+1<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if Pos&gt;1 Then<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; tmpSQL=tmpSQL&nbsp; &amp; TestWord &amp; " A.details LIKE "<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; tmpSQL2=tmpSQL2 &amp; TestWord &amp; " A.description LIKE "<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; tmpSQL3=tmpSQL3 &amp; TestWord &amp; " A.sDesc LIKE "<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if tIncludeSKU="true" then<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; tmpSQL4=tmpSQL4 &amp; TestWord &amp; " SKU LIKE "<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; end if<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; end if<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; tmpSQL=tmpSQL&nbsp; &amp; "'%" &amp; trim(keywordArray(L)) &amp; "%'"<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; tmpSQL2=tmpSQL2 &amp; "'%" &amp; trim(keywordArray(L)) &amp; "%'"<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; tmpSQL3=tmpSQL3 &amp; "'%" &amp; trim(keywordArray(L)) &amp; "%'"<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if tIncludeSKU="true" then<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; tmpSQL4=tmpSQL4 &amp; "'%" &amp; trim(keywordArray(L)) &amp; "%'"<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; end if<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; end if<br>&nbsp;&nbsp;&nbsp; Next<br>&nbsp;&nbsp;&nbsp; tmpSQL=tmpSQL &amp; ")"<br>&nbsp;&nbsp;&nbsp; tmpSQL2=tmpSQL2 &amp; ")"<br>&nbsp;&nbsp;&nbsp; tmpSQL3=tmpSQL3 &amp; ")"<br>&nbsp;&nbsp;&nbsp; if tIncludeSKU="true" then<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; tmpSQL4=tmpSQL4 &amp; ")"<br>&nbsp;&nbsp;&nbsp; end if<br>&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; strSQL=strSQL &amp; tmpSQL<br>&nbsp;&nbsp;&nbsp; strSQL=strSQL &amp; " OR " &amp; tmpSQL2<br>&nbsp;&nbsp;&nbsp; if tIncludeSKU="true" then<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; strSQL=strSQL &amp; " OR " &amp; tmpSQL3<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; strSQL=strSQL &amp; " OR " &amp; tmpSQL4 &amp; "))"<br>&nbsp;&nbsp;&nbsp; else&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; strSQL=strSQL &amp; " OR " &amp; tmpSQL3 &amp; "))"<br>&nbsp;&nbsp;&nbsp; end if<br>&nbsp;&nbsp;&nbsp; query=strSQL &amp; PrdTypeStr &amp; session("srcprd_where")&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; if src_ForCats&lt;&gt;"1" then<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; query=query &amp; ") "<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 'APP-S<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; query=query &amp; ") ORDER BY " &amp; strORD1<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 'APP-E<br>&nbsp;&nbsp;&nbsp; end if<br>else<br>&nbsp;&nbsp;&nbsp; query=strSQL &amp; PrdTypeStr &amp; session("srcprd_where")<br>&nbsp;&nbsp;&nbsp; if src_ForCats&lt;&gt;"1" then<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; query=query &amp; ") "<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 'APP-S<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; query=query &amp; ") ORDER BY " &amp; strORD1<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 'APP-E<br>&nbsp;&nbsp;&nbsp; end if<br>end if<br><br>ELSE 'Exact=1<br><br>if pcustomfield&lt;&gt;"0" AND pKeywords&lt;&gt;"" then<br>&nbsp;&nbsp;&nbsp; if pCValues="" then<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; strCnt=0<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; strSQL=strSQL &amp; " AND (("<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; for L=0 to UBound(keywordArray)<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; strCnt=strCnt+1<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; strSQL=strSQL &amp; "((custom1="&amp;pcustomfield&amp;" AND content1 LIKE "&amp;trim(keywordArray(L))&amp;") OR (custom2="&amp;pcustomfield&amp;" AND content2 LIKE "&amp;trim(keywordArray(L))&amp;") OR (custom3="&amp;pcustomfield&amp;" AND content3 LIKE "&amp;trim(keywordArray(L))&amp;"))"<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if strCnt&lt;&gt;(UBound(keywordArray)+1) then<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; strSQL=strSQL&amp;TestWord<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; end if<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; next<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; strSQL=strSQL &amp; ")"<br>&nbsp;&nbsp;&nbsp; end if<br>else<br>&nbsp;&nbsp;&nbsp; if pKeywords&lt;&gt;"" AND pCValues="" then<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; strCnt=0<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; strSQL=strSQL &amp; " AND (("<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; for L=0 to UBound(keywordArray)<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; strCnt=strCnt+1<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; strSQL=strSQL &amp; "((content1 LIKE "&amp;trim(keywordArray(L))&amp;") OR (content2 LIKE "&amp;trim(keywordArray(L))&amp;") OR (content3 LIKE "&amp;trim(keywordArray(L))&amp;"))"<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if strCnt&lt;&gt;(UBound(keywordArray)+1) then<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; strSQL=strSQL&amp;TestWord<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; end if<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; next<br>&nbsp;&nbsp;&nbsp; strSQL=strSQL&amp;")"&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; end if<br>&nbsp;&nbsp;&nbsp; if pcustomfield&lt;&gt;"0" AND pKeywords="" AND pCValues="" then<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; strCnt=0<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; strSQL=strSQL &amp; " AND ("<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; strSQL=strSQL &amp; "(custom1="&amp;pcustomfield&amp;") OR (custom2="&amp;pcustomfield&amp;") OR (custom3="&amp;pcustomfield&amp;")"<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; strSQL=strSQL &amp; ")"<br>&nbsp;&nbsp;&nbsp; end if<br>end if<br><br>if pKeywords&lt;&gt;"" then<br>&nbsp;&nbsp;&nbsp; if pcustomfield&lt;&gt;"0" AND pCValues&lt;&gt;"" then<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; strSQl=strSql &amp; " AND ("<br>&nbsp;&nbsp;&nbsp; else<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; strSQl=strSql &amp; " OR ("<br>&nbsp;&nbsp;&nbsp; end if<br>&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; tmpSQL="(A.details LIKE "<br>&nbsp;&nbsp;&nbsp; tmpSQL2="(A.description LIKE "<br>&nbsp;&nbsp;&nbsp; tmpSQL3="(A.sDesc LIKE "<br>&nbsp;&nbsp;&nbsp; if tIncludeSKU="true" then<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; tmpSQL4="(SKU LIKE "<br>&nbsp;&nbsp;&nbsp; end if<br>&nbsp;&nbsp;&nbsp; Pos=0<br>&nbsp;&nbsp;&nbsp; For L=LBound(keywordArray) to UBound(keywordArray)<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if trim(keywordArray(L))&lt;&gt;"" then<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; Pos=Pos+1<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if Pos&gt;1 Then<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; tmpSQL=tmpSQL&nbsp; &amp; TestWord &amp; " A.details LIKE "<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; tmpSQL2=tmpSQL2 &amp; TestWord &amp; " A.description LIKE "<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; tmpSQL3=tmpSQL3 &amp; TestWord &amp; " A.sDesc LIKE "<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if tIncludeSKU="true" then<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; tmpSQL4=tmpSQL4 &amp; TestWord &amp; " SKU LIKE "<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; end if<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; end if<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; tmpSQL=tmpSQL &amp; trim(keywordArray(L))<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; tmpSQL2=tmpSQL2 &amp; trim(keywordArray(L))<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; tmpSQL3=tmpSQL3 &amp; trim(keywordArray(L))<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if tIncludeSKU="true" then<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; tmpSQL4=tmpSQL4 &amp; trim(keywordArray(L))<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; end if<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; end if<br>&nbsp;&nbsp;&nbsp; Next<br>&nbsp;&nbsp;&nbsp; tmpSQL=tmpSQL &amp; ")"<br>&nbsp;&nbsp;&nbsp; tmpSQL2=tmpSQL2 &amp; ")"<br>&nbsp;&nbsp;&nbsp; tmpSQL3=tmpSQL3 &amp; ")"<br>&nbsp;&nbsp;&nbsp; if tIncludeSKU="true" then<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; tmpSQL4=tmpSQL4 &amp; ")"<br>&nbsp;&nbsp;&nbsp; end if<br>&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; strSQL=strSQL &amp; tmpSQL<br>&nbsp;&nbsp;&nbsp; strSQL=strSQL &amp; " OR " &amp; tmpSQL2<br>&nbsp;&nbsp;&nbsp; if tIncludeSKU="true" then<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; strSQL=strSQL &amp; " OR " &amp; tmpSQL3<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; strSQL=strSQL &amp; " OR " &amp; tmpSQL4 &amp; "))"<br>&nbsp;&nbsp;&nbsp; else&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; strSQL=strSQL &amp; " OR " &amp; tmpSQL3 &amp; "))"<br>&nbsp;&nbsp;&nbsp; end if<br>&nbsp;&nbsp;&nbsp; query=strSQL &amp; PrdTypeStr &amp; session("srcprd_where") <br>&nbsp;&nbsp;&nbsp; if src_ForCats&lt;&gt;"1" then<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; query=query &amp; ") "<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 'APP-S<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; query=query &amp; ") ORDER BY " &amp; strORD1<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 'APP-E<br>&nbsp;&nbsp;&nbsp; end if<br>else<br>&nbsp;&nbsp;&nbsp; query=strSQL &amp; PrdTypeStr &amp; session("srcprd_where")<br>&nbsp;&nbsp;&nbsp; if src_ForCats&lt;&gt;"1" then<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; query=query &amp; ") "<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 'APP-S<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; query=query &amp; ") ORDER BY " &amp; strORD1<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 'APP-E<br>&nbsp;&nbsp;&nbsp; end if<br>end if<br><br>END IF 'Exact<br><br>if src_ForCats="1" then<br>&nbsp;&nbsp;&nbsp; session("srcprd_from")=""<br>&nbsp;&nbsp;&nbsp; session("srcprd_where")=""<br>&nbsp;&nbsp;&nbsp; pIdCategory=getUserInput(request("idCategory"),4)<br>&nbsp;&nbsp;&nbsp; if NOT validNum(pIdCategory) then<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; pIdCategory=0<br>&nbsp;&nbsp;&nbsp; end if<br>end if<br><br>'APP-S<br>If src_ForCats="1" then<br><br>&nbsp;&nbsp;&nbsp; tmpSQL1="A.idProduct=categories_products.idProduct WHERE ("<br>&nbsp;&nbsp;&nbsp; tmp1=split(query,tmpSQL1)<br>&nbsp;&nbsp;&nbsp; tmp2=split(tmp1(1),") ORDER BY")<br>&nbsp;&nbsp;&nbsp; tmp3=replace(tmp2(0)," AND A.active=-1"," AND A.active=0 AND A.pcProd_SPInActive=0 AND A.pcProd_ParentPrd&gt;0")<br>&nbsp;&nbsp;&nbsp; tmp3a=split(tmp3," OR (A.serviceSpec=0")<br>&nbsp;&nbsp;&nbsp; tmp3="((A.serviceSpec=0" &amp; tmp3a(1)<br>&nbsp;&nbsp;&nbsp; tmp3=replace(tmp3,tmpCatquery,"")<br>&nbsp;&nbsp;&nbsp; tmp3=replace(tmp3,"A.","B.")<br>&nbsp;&nbsp;&nbsp; tmp3b=split(tmp3,"AND categories.pccats_RetailHide=0")<br>&nbsp;&nbsp;&nbsp; tmp3=tmp3b(0)&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; tmp4 = "SELECT B.pcProd_ParentPrd FROM products B WHERE pcProd_ParentPrd = A.idProduct AND " &amp; tmp3<br>&nbsp;&nbsp;&nbsp; tmp5=" ) OR ( A.idProduct IN ( "&amp; tmp4 &amp;" )"<br>&nbsp;&nbsp;&nbsp; tmp5=tmp5 &amp; ") "<br>&nbsp;&nbsp;&nbsp; tmp5=tmp5 &amp; "GROUP BY categories.idcategory, categories.categoryDesc "<br>&nbsp;&nbsp;&nbsp; query=replace(query, " ORDER", tmp5 &amp; " ORDER")<br>&nbsp;&nbsp;&nbsp; <br>Else<br>&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; tmpSQL1="idProduct = A.idProduct AND"&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; tmp1=split(query,tmpSQL1)<br>&nbsp;&nbsp;&nbsp; tmp2=split(tmp1(1),") ORDER BY")<br>&nbsp;&nbsp;&nbsp; tmp3=replace(tmp2(0)," AND A.active=-1"," AND A.active=0 AND A.pcProd_SPInActive=0 AND A.pcProd_ParentPrd&gt;0")<br>&nbsp;&nbsp;&nbsp; tmp3=replace(tmp3,tmpCatquery,"")<br>&nbsp;&nbsp;&nbsp; tmp4 = "SELECT B.pcProd_ParentPrd FROM products B WHERE pcProd_ParentPrd = A.idProduct AND " &amp; replace(tmp3,"A.","B.")<br>&nbsp;&nbsp;&nbsp; tmp5=" OR idProduct IN ( "&amp; tmp4 &amp;" )"<br>&nbsp;&nbsp;&nbsp; query=replace(query, " ORDER", tmp5 &amp; " ORDER")<br>&nbsp;&nbsp;&nbsp; <br>End if<br>'APP-E<br><br>%&gt;<br>]]>
   </description>
   <pubDate>Fri, 25 Jul 2008 14:25:54 +0000</pubDate>
   <guid isPermaLink="true">https://forum.productcart.com/search-results-v3-12_topic1782_post6171.html#6171</guid>
  </item> 
  <item>
   <title><![CDATA[Search Results V3.12 : In inc_srcPrdQuery.asp  I left...]]></title>
   <link>https://forum.productcart.com/search-results-v3-12_topic1782_post6170.html#6170</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://forum.productcart.com/member_profile.asp?PF=1234">cmason</a><br /><strong>Subject:</strong> 1782<br /><strong>Posted:</strong> 25-July-2008 at 2:15pm<br /><br />In inc_srcPrdQuery.asp  I left that Order By alone.  <br /><br />If you look further down the page there's a Group By and Order By, which is where I made my changes<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;pIdCategory=getUserInput(request("idCategory"),4)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if NOT validNum(pIdCategory) then<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;pIdCategory=0<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;end if<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;query=query& "GROUP BY categories.idcategory, categories.categoryDesc,categories.idParentCategory "<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;query=query& "ORDER BY categories.idParentCategory,categories.categoryDesc; "<br />End If<br /><br /><br /><br />]]>
   </description>
   <pubDate>Fri, 25 Jul 2008 14:15:07 +0000</pubDate>
   <guid isPermaLink="true">https://forum.productcart.com/search-results-v3-12_topic1782_post6170.html#6170</guid>
  </item> 
  <item>
   <title><![CDATA[Search Results V3.12 : cmasin, if you have some time....According...]]></title>
   <link>https://forum.productcart.com/search-results-v3-12_topic1782_post6169.html#6169</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://forum.productcart.com/member_profile.asp?PF=1165">worldofrugs</a><br /><strong>Subject:</strong> 1782<br /><strong>Posted:</strong> 25-July-2008 at 1:29pm<br /><br />cmasin, if you have some time....<br>According to your documentation, I have to set the order in inc_srcPrdQuery.asp...<br>You mention to change a line&nbsp; to <br>query=query&amp; "ORDER BY categories.id<span ="highlight">Parent</span><span ="highlight">Category</span>,categories.<span ="highlight">category</span>Desc; "<br><br>The thing is, in PC 3.11 it shows query=query &amp; ") ORDER BY " &amp; strORD1<br><br>Looking at strOrd i see:<br>if strORD&lt;&gt;"" then<br>&nbsp;&nbsp;&nbsp; Select Case StrORD<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; Case "1": strORD1="A.idproduct ASC"<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; Case "2": strORD1="A.sku ASC"<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; Case "3": strORD1="A.sku DESC"<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; Case "4": strORD1="A.description ASC"<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; Case "5": strORD1="A.description DESC"<br>&nbsp;&nbsp;&nbsp; End Select<br>Else<br>&nbsp;&nbsp;&nbsp; strORD="1"<br>&nbsp;&nbsp;&nbsp; strORD1="A.idproduct ASC"<br>End If<br><br>How do I implement the categories.idParentCategory into this?<br>Any ideas?<br><span ="highlight"></span><br><br><br> ]]>
   </description>
   <pubDate>Fri, 25 Jul 2008 13:29:54 +0000</pubDate>
   <guid isPermaLink="true">https://forum.productcart.com/search-results-v3-12_topic1782_post6169.html#6169</guid>
  </item> 
  <item>
   <title><![CDATA[Search Results V3.12 : ok you conviced me cmason, going...]]></title>
   <link>https://forum.productcart.com/search-results-v3-12_topic1782_post6168.html#6168</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://forum.productcart.com/member_profile.asp?PF=1165">worldofrugs</a><br /><strong>Subject:</strong> 1782<br /><strong>Posted:</strong> 25-July-2008 at 1:06pm<br /><br />ok you conviced me cmason, going to implement this...<img src="https://forum.productcart.com/smileys/smiley32.gif" border="0" alt="Clap" /><br><br>At first I had an error, but forgot to edit inc_srcPrdQuery.asp so I got an error...<br>Going to modify it now and let you know if your code also worked for me!<br>Thanks for the help / info so far cmason!<br>]]>
   </description>
   <pubDate>Fri, 25 Jul 2008 13:06:17 +0000</pubDate>
   <guid isPermaLink="true">https://forum.productcart.com/search-results-v3-12_topic1782_post6168.html#6168</guid>
  </item> 
  <item>
   <title><![CDATA[Search Results V3.12 : I really like displaying the categories,...]]></title>
   <link>https://forum.productcart.com/search-results-v3-12_topic1782_post6166.html#6166</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://forum.productcart.com/member_profile.asp?PF=1234">cmason</a><br /><strong>Subject:</strong> 1782<br /><strong>Posted:</strong> 25-July-2008 at 11:59am<br /><br />I really like displaying the categories, I'd even added a custom page to do that when we used V2.76.  http://www.constructionlifters.com It's still a work in progress but I'm off on vacation and we decided to go live with what we had.<br /><br />The code that I posted about adding a parent category appears to be here http://www.earlyimpact.com/forum/forum_posts.asp?TID=1690&KW=parent+category&PID=6060#6060<br />]]>
   </description>
   <pubDate>Fri, 25 Jul 2008 11:59:43 +0000</pubDate>
   <guid isPermaLink="true">https://forum.productcart.com/search-results-v3-12_topic1782_post6166.html#6166</guid>
  </item> 
  <item>
   <title><![CDATA[Search Results V3.12 : Thanks cmason,Actually I did something...]]></title>
   <link>https://forum.productcart.com/search-results-v3-12_topic1782_post6165.html#6165</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://forum.productcart.com/member_profile.asp?PF=1165">worldofrugs</a><br /><strong>Subject:</strong> 1782<br /><strong>Posted:</strong> 25-July-2008 at 11:50am<br /><br />Thanks cmason,<br>Actually I did something similar... I took the complete category section out, as I found it very messy looking and do not see (yet) any benefit on having it...<br>What's your website? I like to see how yours turned out....<br><br><br>]]>
   </description>
   <pubDate>Fri, 25 Jul 2008 11:50:43 +0000</pubDate>
   <guid isPermaLink="true">https://forum.productcart.com/search-results-v3-12_topic1782_post6165.html#6165</guid>
  </item> 
  <item>
   <title><![CDATA[Search Results V3.12 : I ended up just removing the entire...]]></title>
   <link>https://forum.productcart.com/search-results-v3-12_topic1782_post6164.html#6164</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://forum.productcart.com/member_profile.asp?PF=1234">cmason</a><br /><strong>Subject:</strong> 1782<br /><strong>Posted:</strong> 25-July-2008 at 11:32am<br /><br />I ended up just removing the entire JS from inc_srcPrdsCAT.asp.  I found it a kludge to use and figured other users would have the same reaction.<br /><br />This is what that file looks like after I added a query to display the parent category, I also made a full posting about adding a parent somewhere else in the forum.<br /><br />&lt;%src_ForCats="1"%&gt;<br />&lt;!--#include file="inc_srcPrdQuery.asp"--&gt;<br />&lt;%<br />Set rsCAT=Server.CreateObject("ADODB.Recordset")<br />Set rsCAT=connTemp.execute(query)<br /><br />if not rsCAT.eof then<br />form_idcategory=getUserInput(request("idcategory"),0)<br />form_customfield=getUserInput(request("customfield"),0)<br />form_SearchValues=getUserInput(request("SearchValues"),0)<br />form_priceFrom=getUserInput(request("priceFrom"),0)<br />form_priceUntil=getUserInput(request("priceUntil"),0)<br />form_withstock=getUserInput(request("withstock"),0)<br />form_sku=getUserInput(request("sku"),0)<br />form_IDBrand=getUserInput(request("IDBrand"),0)<br />form_keyWord=getUserInput(request("keyWord"),0)<br />form_exact=getUserInput(request("exact"),0)<br />form_resultCnt=getUserInput(request("resultCnt"),0)<br />form_order=getUserInput(request("order"),0)<br />form_pageStyle=getUserInput(request("pageStyle"),0)%&gt;<br /><br />&lt;form name="ajaxSearch"&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;input type="hidden" name="idcategory" value="&lt;%=form_idcategory%&gt;"&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;input type="hidden" name="customfield" value="&lt;%=form_customfield%&gt;"&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;input type="hidden" name="SearchValues" value="&lt;%=form_SearchValues%&gt;"&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;input type="hidden" name="priceFrom" value="&lt;%=form_priceFrom%&gt;"&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;input type="hidden" name="priceUntil" value="&lt;%=form_priceUntil%&gt;"&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;input type="hidden" name="withstock" value="&lt;%=form_withstock%&gt;"&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;input type="hidden" name="sku" value="&lt;%=form_sku%&gt;"&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;input type="hidden" name="IDBrand" value="&lt;%=form_IDBrand%&gt;"&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;input type="hidden" name="keyWord" value="&lt;%=form_keyWord%&gt;"&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;input type="hidden" name="exact" value="&lt;%=form_exact%&gt;"&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;input type="hidden" name="resultCnt" value="&lt;%=form_resultCnt%&gt;"&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;input type="hidden" name="order" value="&lt;%=form_order%&gt;"&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;input type="hidden" name="iPageCurrent" value="1"&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;input type="hidden" name="pageStyle" value="&lt;%=form_pageStyle%&gt;"&gt;<br />&lt;/form&gt;<br />&lt;table&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;tr&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;td align="left"  class="pcCatSearchResults"&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;!--CW - removed scrolling js due to height and usability issues added query to show parent of duplicate categories--&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;ul&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;%Do while not rsCAT.eof<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;tmp_CatCount=rsCAT("ProductCount")<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;tmp_CatID=rsCAT("idcategory")<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;tmp_CatName=rsCAT("categoryDesc")<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;cw_ParentID = rsCat("idParentCategory")&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;cwSQL="SELECT categoryDesc FROM  categories WHERE idCategory = " & cw_ParentID<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;set rsParent=conntemp.execute(cwSQL)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;cw_ParentDesc = rsParent("categoryDesc")<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if tmp_CatCount &gt; 1 then<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;tmp_CatCountMessage = dictLanguage.Item(Session("language")&"_ShowSearch_6")<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;else<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;tmp_CatCountMessage = dictLanguage.Item(Session("language")&"_ShowSearch_7")<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;end if<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'CW added display of parent category<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if tmp_CatCount&gt;0 then%&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li&gt;&lt;a href="javascript:document.ajaxSearch.idcategory.value='&lt;%=tmp_CatID%&gt;';document.ajaxSearch.submit();" &lt;%if scStoreUseToolTip="1" then%&gt;onmouseover="javascript:document.ajaxSearch.idcategory.value='&lt;%=tmp_CatID%&gt;'; sav_callxml='1'; runXML('cat_&lt;%=tmp_CatID%&gt;');" onmouseout="javascript: sav_callxml=''; hidetip();"&lt;%end if%&gt;&gt;&lt;%=cw_ParentDesc%&gt; &gt; &lt;span class="allCaps&gt;&lt;%=tmp_CatName%&gt;&lt;/span&gt;&lt;/a&gt; (&lt;%=tmp_CatCount & tmp_CatCountMessage%&gt;)&lt;/li&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;%<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;end if<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;rsCat.MoveNext<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;loop<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;%&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/ul&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/td&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/tr&gt;<br />&lt;/table&gt;<br />&lt;%<br />end if<br />'CW added<br />set rsParent=nothing<br />set rsCAT=nothing%&gt;<br /><br />]]>
   </description>
   <pubDate>Fri, 25 Jul 2008 11:32:00 +0000</pubDate>
   <guid isPermaLink="true">https://forum.productcart.com/search-results-v3-12_topic1782_post6164.html#6164</guid>
  </item> 
  <item>
   <title><![CDATA[Search Results V3.12 :  Cmason,Thanks for your post...]]></title>
   <link>https://forum.productcart.com/search-results-v3-12_topic1782_post6163.html#6163</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://forum.productcart.com/member_profile.asp?PF=1165">worldofrugs</a><br /><strong>Subject:</strong> 1782<br /><strong>Posted:</strong> 25-July-2008 at 10:59am<br /><br />Cmason,<br>Thanks for your post as it did help me out partly...<br>At least the huge box is a little smaller now.<br>Have you ever figure out how to hide those arrows when they're not needed?<br>In IE they disappear once I click on it (while they were not needed), but showing on initial view.<br>In FF they remain there...<br><br>If you do not have the answer, perhaps some one else played around with this?<br><span style="font-size:10px"><br /><br />Edited by worldofrugs - 25-July-2008 at 11:13am</span>]]>
   </description>
   <pubDate>Fri, 25 Jul 2008 10:59:38 +0000</pubDate>
   <guid isPermaLink="true">https://forum.productcart.com/search-results-v3-12_topic1782_post6163.html#6163</guid>
  </item> 
 </channel>
</rss>