I'm using Woocommerce and I've customized my site to display the product titles in a table and when clicked the product is placed via ajax in the Woocommerce mini-cart widget without a page refresh.
When I update to 'Woocommerce 2.5.2' the Ajax add to cart no longer works and the page refreshes.
The current link I use to add a product is:
$html = $html . '<div class="numlist_thumb"><a data-product_id="' . $id1 . '" data-product_sku="' . $number1 . '" class="numbertabanchor add_to_cart_button dp-button product_type_simple" rel="nofollow" href="/?add-to-cart=' . $id1 . '">' . $number1 . '</a></div>';
I would really appreciate any suggestions as to how to add a product via ajax without a page refresh.