title: Dynamic refresh of shopping cart using AJAX?
body: <p>Have a small problem here in WP eCommerce. When I add items to my cart, my cart widget reflects the changes immediately using AJAX. However, if there are items in my cart and I refresh the page, my cart shows "0 items" by default (when there are still actually items in my cart). Then when you add a new item, the AJAX call is made, and my cart refreshes (adding the new item).</p>
  
  <p>My question is, how do I refresh my cart without actually adding an item? By calling the script below, I was able to add a blank item to my cart with a value of $0, but this is pretty hacky. I just need to send an AJAX call to refresh my cart dynamically, but not actually add anything to it. Any ideas?</p>
  
  <pre><code>&lt;body onload="document.getElementById('refresh-cart').click()"&gt;
  
      &lt;form class="product_form"&gt;
          &lt;input type="hidden" name="wpsc_ajax_action" value="add_to_cart"&gt;
          &lt;input id="refresh-cart" name="Empty" type="submit"&gt;
      &lt;/form&gt;
  
  &lt;/body&gt;
  </code></pre>