Hello,
I want to create a custom hook and it doesn’t seem to work.
woocommerce_before_add_to_cart_form
But when I use the hook: woocommerce_after_single_product_summary
it works correctly. Is there some other action that your theme uses and I cannot use mine?
I write my code in functions.php of woodmart-child.
Here is the full code:
function custom_product(){
get_template_part('custom_product');
}
add_action('woocommerce_before_add_to_cart_form', 'custom_product', 1);