title: Getting Shopping cart quanitity counter to show product added right when selected to add
body: <p>I have a Shopping cart quantity counter on my site and it doesn't show the product was added until the page is reloaded or if you go to another page. I am wanting the quantity counter to show the product being added right away. I have this quantity counter on every page. I'm sure something like this can be added with Ajax, but I have no idea how to even start.</p>
  
  <p>I have it set up like this right now:</p>
  
  <p>I have a page a require on every page on my site called loadProducts.php</p>
  
  <p>It holds this:</p>
  
  <pre><code>//Shopping Cart Quantity Count
  
      if(isset($_SESSION['shopping_cart']) &amp;&amp; is_array($_SESSION['shopping_cart'])) {
      $totalquantity = 0;
      foreach($_SESSION['shopping_cart'] AS $product) {
          $totalquantity = $totalquantity + $product['quantity'];
      }
  
  
   }
    else {
         $totalquantity = 0;
    }
  </code></pre>
  
  <p>Is there a way I can make this load right after I place something in my cart? My site is buyfarbest.com if you want to see what I mean. If you go to the products tab and then add a product. You have to go to another page after you have added it for that quantity to be configured.</p>