To achieve this into your single page product follow the below guide line.
I’m assuming you have copied the woocommerce template into your theme folder.
Navigate to the the path
yourtheme/woocommerce/templates/single-product/add-to-cart/simple.php
You can put your code here.