Add custom email field and send the order details to that email after checkout
-
Hi,
I added a custom email field to the shipping form like this
// Hook in add_filter('woocommerce_checkout_fields', 'custom_override_checkout_fields'); function custom_override_checkout_fields($fields) { $fields['shipping']['shipping_email'] = array( 'type' => 'email', 'label' => __('E-mail Address', 'woocommerce'), 'placeholder' => _x('Type here...', 'placeholder', 'woocommerce'), 'required' => true, 'class' => array('form-row-wide validate-email'), 'clear' => true ); return $fields; }
And now wanna add this email field value to the order so what email user will type here in this field he/she will receive the Order details to this email.
How i can do this?
Thanks in advance.
Viewing 9 replies - 1 through 9 (of 9 total)
Viewing 9 replies - 1 through 9 (of 9 total)
- The topic ‘Add custom email field and send the order details to that email after checkout’ is closed to new replies.