title: Why cart is empty after add product
body: <p>i use array to select item to cart database sales flat quote item
  row 2 is array from sales flat quote
  row is array form product order</p>
  
  <p><code>mysqli_query($cn,"INSERT INTO sales_flat_quote_item (quote_id,product_id,qty) values ({$row2['entity_id']},$product_id,{$row['qty']})");</code></p>
  
  <p>this data add to cart database sales flat quote item but</p>
  
  <p>if my cart is not empty after i insert into database product will show in cart
  but if my cart is empty after insert into cart will empty to show this product i will go to add to cart and send other product to show this product </p>
  
  <p>how i can write to cart update with my insert into code</p>
  
  <p>thank for every answer</p>
  
  <p>Edit if i chance 'function chooseTemplate() ' in 'cart.php' to don't show empty template is have item in cart</p>
  
  <p>how to +items count if i add by insert into for this check
   <code>$itemsCount = $this-&gt;getItemsCount() ? $this-&gt;getItemsCount() : $this-&gt;getQuote()-&gt;getItemsCount();</code></p>
  
  <p>to use empty item</p>