My variable products stopped working after an update. The ADD to CART button was not showing. The below solution working for me. It was a jquery cookie error. Had to add some functions to theme functions.php file and change the name of the files jquery.cookie.js and jquery.cookie.min.js