title: show woocommerce messages in overlay div or tooltip without page refresh
body: <p>I am trying to get rid of the redirect/reload when the user is adding a product or gets a info message in my woocommerce shop. I just want to show the "added to cart" message in a tooltip or overlay div and let them continue shopping without renavigate to the shop.</p>
  
  <p>AJAX add to cart is enabled</p>
  
  <p>so my question is:
  what can I do to display this messages without refreshing the whole page?</p>
  
  <p><strong>EDIT:</strong> maybe useful for anyone, heres my <strong>FINAL CODE:</strong></p>
  
  <pre><code>$('.add_to_cart_button, .single_add_to_cart_button').click(function(e) {
                  var produkt_id;
                  if ($(this).attr('data-product_id') == undefined) {
                      produkt_id = $('input[type=hidden]').val();
                  } else {
                      produkt_id = $(this).attr('data-product_id');
                  }
  
  
                  var amount;
                  if ($(this).hasClass('single_add_to_cart_button') == true) {
                      if ($('.qty').val() !== '1') {
                          amount = $('.qty').val();
                      }
                      console.log(amount + ' single_add_to_cart_button');
                  }
                  else {
                      amount = '1';
                      console.log(amount + ' add_to_cart_button');
                  }
  
  
  
  
                  function addToCart(produkt_id) {
                      $.ajax({
                          type: 'POST',
                          url: '?add-to-cart=' + produkt_id,
                          data: {'product_id': produkt_id,
                              'quantity': amount},
                          success: function(response, textStatus, jqXHR) {
                          // callback
  
                          }/*,
                           dataType: 'JSON'*/
                      });
                  }
                  e.preventDefault();
                  addToCart(produkt_id);
     });
  </code></pre>