Add Field in Checkout Woocommerce Block Programmatically
woocommerce_register_additional_checkout_field this function is using form make woocommerce checkout in add extra fields. Let assume we are adding Delivery Date into checkout page of woocommece add_action( ‘woocommerce_init’, function() { woocommerce_register_additional_checkout_field( array( ‘id’ => ‘namespace/delivery-date-id’, ‘label’ => ‘Delivery Date’, ‘optionalLabel’ => ‘Delivery Date (optional)’, ‘location’ => ‘address’, ‘required’ => true, ‘attributes’ => array( ‘autocomplete’ => ‘delivery-date-id’, …
Add Field in Checkout Woocommerce Block Programmatically Read More »