I have tried adding a couple add_action hooks in the functions.php of the Plants Child Theme but I’m not getting any results in the checkout page. Hope you could help me understand what is happening here.
Hooks I’m mentioning:
woocommerce_before_checkout_form
woocommerce_checkout_before_customer_details
I tried to look at the theme code but couldn’t see where is the problem. The hooks are working when I change the theme.
Am I missing something obvious? I can do what I want to do with inserted JavaScript in the other hooks working at the moment such as ‘woocommerce_before_checkout_shipping_form’. However, it seems fragile, and I don’t want to go live without fully understanding what is the underlying problem here.
I’m currently using the Plants theme.
Thank you!