<?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 : Problem with Expand/Collapse Sub Category</title>
  <link>https://forum.productcart.com/</link>
  <description><![CDATA[This is an XML content feed of; ProductCart Shopping Cart Software Forums : Customizing ProductCart : Problem with Expand/Collapse Sub Category]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sun, 12 Apr 2026 11:51:04 +0000</pubDate>
  <lastBuildDate>Mon, 05 May 2008 16:02:32 +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=1288</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[Problem with Expand/Collapse Sub Category : I just don&amp;#039;t see where I...]]></title>
   <link>https://forum.productcart.com/problem-with-expand-collapse-sub-category_topic1288_post4916.html#4916</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://forum.productcart.com/member_profile.asp?PF=1117">inetbizo</a><br /><strong>Subject:</strong> 1288<br /><strong>Posted:</strong> 05-May-2008 at 4:02pm<br /><br />I just don't see where I controll the btn_collapse.gif]]>
   </description>
   <pubDate>Mon, 05 May 2008 16:02:32 +0000</pubDate>
   <guid isPermaLink="true">https://forum.productcart.com/problem-with-expand-collapse-sub-category_topic1288_post4916.html#4916</guid>
  </item> 
  <item>
   <title><![CDATA[Problem with Expand/Collapse Sub Category : I dabbled with this function,...]]></title>
   <link>https://forum.productcart.com/problem-with-expand-collapse-sub-category_topic1288_post4915.html#4915</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://forum.productcart.com/member_profile.asp?PF=1117">inetbizo</a><br /><strong>Subject:</strong> 1288<br /><strong>Posted:</strong> 05-May-2008 at 4:01pm<br /><br />I dabbled with this function, but it really messed up. \_01adminstore\genCatNavigation.asp<DIV><table width="99%"><tr><td><pre class="BBcode">Function genCatInfor(tmp_IDCAT,tmp_CatName)<BR>Dim tmp_showIcon,k,pcv_first,pcv_prdcount,pcv_back,pcv_end,tsT,tmp_query,pcv_CatName,pcv_prds1,tmp1,tmp2<BR>&nbsp;tmp1=0<BR>&nbsp;tmp2=0<BR>&nbsp;tmp_showIcon=0<BR>&nbsp;pcv_first=0<BR>&nbsp;pcv_prdcount=0<BR>&nbsp;maxProNameL = 22<BR>&nbsp;pcv_CatName=ClearHTMLTags2(tmp_CatName,0)<BR>&nbsp;If maxProNameL&lt;len(pcv_CatName) then<BR>&nbsp;&nbsp;pcv_CatName=trim(left(pcv_CatName,maxProNameL)) &amp; "..."<BR>&nbsp;End If<BR>&nbsp;if (pcv_exportType="0" or pcv_exportType="2") then<BR>&nbsp;&nbsp;pcv_end=intCount<BR>&nbsp;&nbsp;tmp1=0<BR>&nbsp;&nbsp;For k=0 to intCount<BR>&nbsp;&nbsp;&nbsp;pcv_back=pcv_end-k<BR>&nbsp;&nbsp;&nbsp;if cint(pcv_cats1(2,k))=tmp_IDCAT then<BR>&nbsp;&nbsp;&nbsp;&nbsp;tmp1=1<BR>&nbsp;&nbsp;&nbsp;&nbsp;exit for<BR>&nbsp;&nbsp;&nbsp;end if<BR>&nbsp;&nbsp;&nbsp;if pcv_cats1(2,pcv_back)=tmp_IDCAT then<BR>&nbsp;&nbsp;&nbsp;&nbsp;tmp1=1<BR>&nbsp;&nbsp;&nbsp;&nbsp;exit for<BR>&nbsp;&nbsp;&nbsp;end if<BR>&nbsp;&nbsp;Next<BR>&nbsp;end if<BR>&nbsp;<BR>&nbsp;if (pcv_exportType="1" or pcv_exportType="2") then<BR>&nbsp;&nbsp;tmp_query="SELECT products.idProduct,products.description FROM products INNER JOIN categories_products ON (products.idProduct=categories_products.idProduct AND products.removed=0 AND products.active=-1 AND products.configOnly=0) WHERE categories_products.idcategory=" &amp; tmp_IDCAT &amp; " ORDER BY categories_products.POrder asc,products.description ASC;"<BR>&nbsp;&nbsp;set rsT=connTemp.execute(tmp_query)<BR>&nbsp;&nbsp;if not rsT.eof then<BR>&nbsp;&nbsp;&nbsp;tmp2=1<BR>&nbsp;&nbsp;&nbsp;pcv_prds1=rsT.getRows()<BR>&nbsp;&nbsp;&nbsp;set rsT=nothing<BR>&nbsp;&nbsp;else<BR>&nbsp;&nbsp;&nbsp;tmp2=0<BR>&nbsp;&nbsp;end if<BR>&nbsp;&nbsp;set rsT=nothing<BR>&nbsp;end if<BR>&nbsp;if ((tmp1=1) and (pcv_exportType="0" or pcv_exportType="2")) or ((tmp2=1) and (pcv_exportType="1" or pcv_exportType="2")) then<BR>&nbsp;&nbsp;tmp_showIcon=1<BR>&nbsp;end if<BR>&nbsp;pcv_strTmpCat=pcv_strTmpCat &amp; "&lt;tr&gt;&lt;td valign=""middle""&gt;"<BR>&nbsp;if tmp_showIcon=1 then<BR>&nbsp;&nbsp;pcv_strTmpCat=pcv_strTmpCat &amp; "&lt;img align=""absmiddle"" name=""IMGCAT" &amp; tmp_IDCAT &amp; """ border=""0"" src=""images/btn_expand.gif"" onclick=""javascript:UpDown(" &amp; tmp_IDCAT &amp; ");""&gt;"<BR>&nbsp;else<BR>&nbsp;&nbsp;pcv_strTmpCat=pcv_strTmpCat &amp; "&amp;nbsp;"<BR>&nbsp;end if<BR>&nbsp;pcv_strTmpCat=pcv_strTmpCat &amp; "&lt;/td&gt;&lt;td width=""100%"" valign=""top"" class="""&amp;pcv_cssclass&amp;"""&gt;&lt;a href=""" &amp; tempURL &amp; "viewCategories.asp?idCategory=" &amp; tmp_IDCAT&nbsp; &amp; """&gt;&amp;nbsp;" &amp; pcv_CatName &amp; "&lt;/a&gt;" &amp; vbcrlf<BR>&nbsp;if tmp_showIcon=1 then<BR>&nbsp;&nbsp;pcv_strTmpCat=pcv_strTmpCat &amp; "&lt;table border=""0"" width=""100%"" cellpadding=""0"" cellspacing=""0"" id=""SUB" &amp; tmp_IDCAT &amp; """ style=""display:none""&gt;" &amp; vbcrlf<BR>&nbsp;&nbsp;if ((tmp1=1) and (pcv_exportType="0" or pcv_exportType="2")) then<BR>&nbsp;&nbsp;&nbsp;For k=0 to intCount<BR>&nbsp;&nbsp;&nbsp;&nbsp;if cint(pcv_cats1(2,k))=tmp_IDCAT then<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;pcv_first=1<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;call genCatInfor(pcv_cats1(0,k),pcv_cats1(1,k))<BR>&nbsp;&nbsp;&nbsp;&nbsp;else<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if pcv_first=1 then<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;exit for<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;end if<BR>&nbsp;&nbsp;&nbsp;&nbsp;end if<BR>&nbsp;&nbsp;&nbsp;Next<BR>&nbsp;&nbsp;end if<BR>&nbsp;&nbsp;if ((tmp2=1) and (pcv_exportType="1" or pcv_exportType="2")) then<BR>&nbsp;&nbsp;&nbsp;if ubound(pcv_prds1,2)&gt;pcv_numprd-1 then<BR>&nbsp;&nbsp;&nbsp;&nbsp;pcv_prdcount=pcv_numprd-1<BR>&nbsp;&nbsp;&nbsp;else<BR>&nbsp;&nbsp;&nbsp;&nbsp;pcv_prdcount=ubound(pcv_prds1,2)<BR>&nbsp;&nbsp;&nbsp;end if<BR>&nbsp;&nbsp;&nbsp;For k=0 to pcv_prdcount<BR>&nbsp;&nbsp;&nbsp;&nbsp;ProName=ClearHTMLTags2(pcv_prds1(1,k),0)<BR>&nbsp;&nbsp;&nbsp;&nbsp;If maxProNameL&lt;len(ProName) then<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ProName=trim(left(ProName,maxProNameL)) &amp; "..."<BR>&nbsp;&nbsp;&nbsp;&nbsp;End If<BR>&nbsp;&nbsp;&nbsp;&nbsp;pcv_strTmpCat=pcv_strTmpCat &amp; "&lt;tr&gt;&lt;td&gt;&amp;nbsp&lt;/td&gt;&lt;td class="""&amp;pcv_cssclass&amp;"""&gt;&lt;a href=""" &amp; tempURL &amp; "viewPrd.asp?idcategory=" &amp; tmp_IDCAT &amp; "&amp;idproduct=" &amp; pcv_prds1(0,k) &amp; """&gt;" &amp; ProName &amp; "&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;" &amp; vbcrlf<BR>&nbsp;&nbsp;&nbsp;Next<BR>&nbsp;&nbsp;&nbsp;if ubound(pcv_prds1,2)&gt;pcv_numprd-1 then<BR>&nbsp;&nbsp;&nbsp;&nbsp;pcv_strTmpCat=pcv_strTmpCat &amp; "&lt;tr&gt;&lt;td&gt;&amp;nbsp&lt;/td&gt;&lt;td class="""&amp;pcv_cssclass&amp;"""&gt;&lt;a href=""" &amp; tempURL &amp; "viewCategories.asp?idCategory=" &amp; tmp_IDCAT&nbsp; &amp; """&gt;More Products...&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;" &amp; vbcrlf<BR>&nbsp;&nbsp;&nbsp;end if<BR>&nbsp;&nbsp;end if<BR>&nbsp;&nbsp;pcv_strTmpCat=pcv_strTmpCat &amp; "&lt;/table&gt;" &amp; vbcrlf<BR>&nbsp;end if<BR>&nbsp;pcv_strTmpCat=pcv_strTmpCat &amp; "&lt;/td&gt;&lt;/tr&gt;" &amp; vbcrlf<BR>End Function</pre></td></tr></table></DIV>]]>
   </description>
   <pubDate>Mon, 05 May 2008 16:01:24 +0000</pubDate>
   <guid isPermaLink="true">https://forum.productcart.com/problem-with-expand-collapse-sub-category_topic1288_post4915.html#4915</guid>
  </item> 
  <item>
   <title><![CDATA[Problem with Expand/Collapse Sub Category : Earlyimpact can you help? Also...]]></title>
   <link>https://forum.productcart.com/problem-with-expand-collapse-sub-category_topic1288_post4914.html#4914</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://forum.productcart.com/member_profile.asp?PF=1117">inetbizo</a><br /><strong>Subject:</strong> 1288<br /><strong>Posted:</strong> 05-May-2008 at 3:58pm<br /><br />Earlyimpact can you help? Also I think your code does not properly place the two images inside the table cell. The both seem to be aligned text top, cell top.]]>
   </description>
   <pubDate>Mon, 05 May 2008 15:58:58 +0000</pubDate>
   <guid isPermaLink="true">https://forum.productcart.com/problem-with-expand-collapse-sub-category_topic1288_post4914.html#4914</guid>
  </item> 
  <item>
   <title><![CDATA[Problem with Expand/Collapse Sub Category : I just implemented the code to...]]></title>
   <link>https://forum.productcart.com/problem-with-expand-collapse-sub-category_topic1288_post3880.html#3880</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://forum.productcart.com/member_profile.asp?PF=758">bedbugcentral</a><br /><strong>Subject:</strong> 1288<br /><strong>Posted:</strong> 04-January-2008 at 2:09pm<br /><br /><P>I just implemented the code to expand and collapse the sub categories in the left nav. It's working the way I believe it was intended, but I have a request.</P><P>When your category contains sub categories, and you click on the top level category, it just expands the subcategories, and does not bring you to the Main Categories page.</P><P>Is there a way around this?</P><span style="font-size:10px"><br /><br />Edited by bedbugcentral - 04-January-2008 at 2:09pm</span>]]>
   </description>
   <pubDate>Fri, 04 Jan 2008 14:09:23 +0000</pubDate>
   <guid isPermaLink="true">https://forum.productcart.com/problem-with-expand-collapse-sub-category_topic1288_post3880.html#3880</guid>
  </item> 
 </channel>
</rss>