<?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 : sorting featured items</title>
  <link>https://forum.productcart.com/</link>
  <description><![CDATA[This is an XML content feed of; ProductCart Shopping Cart Software Forums : Customizing ProductCart : sorting featured items]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 11 Apr 2026 00:51:22 +0000</pubDate>
  <lastBuildDate>Sun, 12 Feb 2006 11:54:20 +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=24</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[sorting featured items : The INNER-JOIN &amp;#034;connects&amp;#034;...]]></title>
   <link>https://forum.productcart.com/sorting-featured-items_topic24_post346.html#346</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://forum.productcart.com/member_profile.asp?PF=71">rightmind</a><br /><strong>Subject:</strong> 24<br /><strong>Posted:</strong> 12-February-2006 at 11:54am<br /><br />The INNER-JOIN "connects" the 2 tables in the database and essentially associates the records based on the field that they have in common -- in this case 'categories_products ON products.idProduct = categories_products.idProduct'<br><br>I am sure there is a more sophisticated way to do this, but a basic method would be to add an 'OR' to the query:<br><table width="99%"><tr><td><pre class="BBcode"><br>categories_products.idCategory=X OR categories_products.idCategory=Y OR categories_products.idCategory=Z<br></pre></td></tr></table><br>X, Y, and Z would be replaced with your sub-category numbers. I am sure there is also a way to check for sub-categories off of a root category. However, I am not able to take the time to look for how to do that at the moment. I will give it a try when I can, but it may take me a couple of weeks before I'll have a chance. <img src="https://forum.productcart.com/smileys/smiley5.gif" border="0"> And I am sure you don't want to wait that long to get this going.<br>]]>
   </description>
   <pubDate>Sun, 12 Feb 2006 11:54:20 +0000</pubDate>
   <guid isPermaLink="true">https://forum.productcart.com/sorting-featured-items_topic24_post346.html#346</guid>
  </item> 
  <item>
   <title><![CDATA[sorting featured items : hi rightmindthanks so much for...]]></title>
   <link>https://forum.productcart.com/sorting-featured-items_topic24_post343.html#343</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://forum.productcart.com/member_profile.asp?PF=22">Nothing</a><br /><strong>Subject:</strong> 24<br /><strong>Posted:</strong> 10-February-2006 at 6:03pm<br /><br /><P>hi rightmind<BR>thanks so much for your idea and code. i've been afk for awhile. <BR>i got about as far as the 'INNER JOIN' statement and ran into knowledge issues. </P><P>I got your suggested code working (thanks!) and as far as i can tell, your code displays items from sub categories only - and does not list any items from any categories below it... (hope that made sense)</P><P>As mentioned, i have 5 main categories, (tools, wi-fi, hardware, software, prints).<BR>Under TOOLS, i have&nbsp;7 sub categories. All our products under tools are locted in the 7 sub&nbsp;sections only. Using your code, i'm able to list 'featured products' in&nbsp;one of the sub sections, but not in the main root catagory.</P><P>i'll continue to bang my head on this sql statement.</P><P>thanks for your help<BR>nothing<BR><BR>&nbsp;</P><span style="font-size:10px"><br /><br />Edited by Nothing - 11-February-2006 at 8:30pm</span>]]>
   </description>
   <pubDate>Fri, 10 Feb 2006 18:03:48 +0000</pubDate>
   <guid isPermaLink="true">https://forum.productcart.com/sorting-featured-items_topic24_post343.html#343</guid>
  </item> 
  <item>
   <title><![CDATA[sorting featured items : I&amp;#039;ve not tried this, but...]]></title>
   <link>https://forum.productcart.com/sorting-featured-items_topic24_post221.html#221</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://forum.productcart.com/member_profile.asp?PF=71">rightmind</a><br /><strong>Subject:</strong> 24<br /><strong>Posted:</strong> 21-December-2005 at 4:18pm<br /><br /><P>I've not tried this, but I would think you could use the file from the Developer's Corner submitted by Dan Tang that allows you to display N featured products anywhere...and then modify the SQL statement to only call items from your category. Easiest would be to create a file for each of the categories you are wanting to feature.</P><P>Currently, that file uses this SQL statement at line 28:<BR><table width="99%"><tr><td><pre class="BBcode">'select products that are flagged as featured items for the homepage<BR>mySQL="SELECT sku,idProduct, description, serviceSpec, details, price, smallImageUrl FROM products WHERE showInHome=-1 AND active=-1"</pre></td></tr></table></P><P>You could modify it to this, which would select all products from your given category regardless of whether or not they are marked to be displayed on the home page (they just have to be marked as "Featured":<BR><table width="99%"><tr><td><pre class="BBcode">'select products that are&nbsp;featured items from a specific category<BR>'be sure to replace X with your category number<BR>mySQL="SELECT products.sku, products.idProduct, products.description, products.serviceSpec, products.details, products.price, products.smallImageUrl<BR>FROM products INNER JOIN categories_products ON products.idProduct = categories_products.idProduct<BR>WHERE categories_products.idCategory=X AND products.active=-1"</pre></td></tr></table></P><P>Of course, there are other ways to do this like modifying it to check and for the category in the incoming link and then querying based on that.</P><P>I hope that at least sets you on the right path!<IMG src="https://forum.productcart.com/smileys/smiley1.gif" border="0"></P>]]>
   </description>
   <pubDate>Wed, 21 Dec 2005 16:18:48 +0000</pubDate>
   <guid isPermaLink="true">https://forum.productcart.com/sorting-featured-items_topic24_post221.html#221</guid>
  </item> 
  <item>
   <title><![CDATA[sorting featured items : We have 5 main (root) categories...]]></title>
   <link>https://forum.productcart.com/sorting-featured-items_topic24_post52.html#52</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://forum.productcart.com/member_profile.asp?PF=22">Nothing</a><br /><strong>Subject:</strong> 24<br /><strong>Posted:</strong> 08-November-2005 at 4:28pm<br /><br /><P><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>We have 5 main (root) categories in our store (many sub categories). The most popular items purchased are from 2 categories.</FONT></P><P><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>I want to create a featured product page to show only flagged items from one root category at a time. </FONT></P><P><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>We have a featured product page, and we need it’s functions to stay as they are… any item flagged will be displayed on that page. </FONT></P><P><FONT face="Verdana, Arial, Helvetica, sans-serif"><FONT size=2>The page I’m trying to tweak I got from the below link.<BR><I style="mso-bidi-font-style: normal">“Move the default ProductCart home page (mainIndex.asp) to your root folder. <A href="http://www.earlyimpact.com/productcart/support/code_samples/index.zip" target="_blank">Download</A> this special version of mainIndex.asp - renamed <A href="http://www.earlyimpact.com/productcart/support/code_samples/index.zip" target="_blank">index.asp</A> - which has been modified to work in your root folder.”<?:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p></I></FONT></FONT></P><P><FONT face="Verdana, Arial, Helvetica, sans-serif"><FONT size=2>I’m wondering…. is there any easy solution?&nbsp;<SPAN style="mso-spacerun: yes">&nbsp;</SPAN></FONT></FONT></P><P><FONT face="Verdana, Arial, Helvetica, sans-serif"><FONT size=2><SPAN style="mso-spacerun: yes">many thanks<BR>n0thing</SPAN></FONT></FONT></P>]]>
   </description>
   <pubDate>Tue, 08 Nov 2005 16:28:50 +0000</pubDate>
   <guid isPermaLink="true">https://forum.productcart.com/sorting-featured-items_topic24_post52.html#52</guid>
  </item> 
 </channel>
</rss>