Hello,
You may try third-party plugins to add the Ajax add to cart for the variable products on the single product page https://wordpress.org/plugins/woocommerce-ajax-add-to-cart-for-variable-products/ or https://wordpress.org/plugins/woo-ajax-add-to-cart/
Regards