When I am trying to add Virtual products in cart, Add to Cart is not working as it is working on simple products

Read more here: Add to Cart is not working for Virtual Products in Woocommerce