I wanted to use hooks in my woocommerce single product page to do some changes.
So I added the following code into my function.php in my child-theme:
add_action( 'woocommerce_single_product_summary',' woocommerce_template_single_add_to_cart', 35 );
Now there should be a second add-to-cart button on my product page. But all I get is the following warning:
Warning: call_user_func_array() expects parameter 1 to be a valid callback, function ' woocommerce_template_single_add_to_cart' not found or invalid function name in /home/userXXX/htdocs/vintagehome/wp-includes/class-wp-hook.php on line 298
You guys are my last chance to get this thing done! Please help me..