I’m having a similar issue. Would love a response to this problem!
Is anyone here???
I have found the solution here: http://wordpress.stackexchange.com/questions/114734/how-to-customize-position-of-add-to-cart-of-woocommerce-on-product-page
But…..
instead of this code: <?php
/**
* woocommerce_single_product_summary hook
*
* @hooked woocommerce_template_single_title – 5
* @hooked woocommerce_template_single_price – 10
* @hooked woocommerce_template_single_excerpt – 20
* @hooked woocommerce_template_single_add_to_cart – 30
* @hooked woocommerce_template_single_meta – 40
* @hooked woocommerce_template_single_sharing – 50
*/
do_action( ‘woocommerce_single_product_summary’ );
?>
I have this one:
<?php
/**
* woocommerce_single_product_summary hook
*
* @hooked woocommerce_template_single_price – 10
* @hooked woocommerce_template_single_excerpt – 20
*/
do_action( ‘woocommerce_single_product_summary’ );
?>
So there is no add_to_cart line…….
Still can’t do anything. please help and advise!
Code can be tricky and it will need on-going maintenance across later software updates. Seems illogical to me to have an add-to-cart button for an undefined product. We should try to design the user-interface so the user can’t go wrong.
However, you could just make you most popular variation the default variation, then you will get an add-to-cart button.
Why illogical? in all major shops it works like this:
You see the “add to cart” button always, but when you press it without choosing the size it gives you an alert and says: please choose the size.
But in your case the client event can’t see how to add the product to the cart. so he/she might left without thinking a lot.