Hello I’m using various Woocommerce checkout hooks at Woocommerce checkout page but no one hooks get called. Please suggest some way to fix it. But my woocommerce_thankyou hooks get called on woocommerce order Thank you page. But I need a way to call hook on checkout page. I have attached screenshot of my code.
Please suggest a way how to fix it.
This is what I have tried
`add_action(‘woocommerce_after_order_notes’, ‘custom_checkout_process_validation’, 10);
add_action('woocommerce_checkout_update_order_meta', 'custom_checkout_process_validation', 10);
add_action('woocommerce_checkout_process', array($this,'custom_checkout_validation'), 10, 2);
add_action( 'woocommerce_admin_order_data_after_billing_address', 'display_custom_checkout_field_in_admin', 10, 1 );
public function custom_checkout_field_validation() {
wc_add_notice(__(‘Please fill in the custom field.’, ‘your-text-domain’), ‘error’);
}
function custom_checkout_process_validation() {
$this->log_error('create page yessss', true);
}`