title: WP-eCommerce: Getting products based on two categories (return a products that only exist within both categories)
body: <p>I just started developing in Wordpress, specifically with the WP-eCommerce plugin and I've run into several issues. One of the primary issues is the ability to query specific products based on it's existence within two (or more) categories. In this instance, I would like the only products returned to be those that exist in both categories but not just one or the other. </p>
  
  <p>I understand that this can be done on my own (raw php) or with just wp_query (or something alike this). However, I would like to stay within the WP-eCommerce framework as much as possible so as to limit the amount of styling and redundant code required.</p>
  
  <p>For some clarification, an example of this situation would be as such:</p>
  
  <p>query string sent to url - <code>http://example.com/?wpsc_product_category=cat1&amp;wpsc_product_category=cat2</code></p>
  
  <p>This then gets sent and processed by WP-eCommerce but only takes the most recent <code>wpsc_product_category</code> query, and as a result only returns products that exist within cat2.</p>
  
  <p>So, in conclusion my two primary questions are:</p>
  
  <ol>
  <li><p>What sort of options are available to me within the WP-eCommerce framework that would allow me to make a query and return a product that exists in both and not just one of the categories.</p>
  
  <ul>
  <li>if that isn't possible, what sort of wordpress options are available to me</li>
  <li>what about creating my own function?</li>
  </ul></li>
  <li><p>What exactly is the query process within WP-eCommerce. In the least, I could possibly access the file that formats the query string and get it to query both categories.</p></li>
  </ol>