No Phone for delivery
-
I see many comment on this and it’s really bad UX. Providing a phone number for couriers to contact the recipients prior to delivery is a given.
Yes there is the phone number for the Billing address but there is also the occasion where there will be a different number for the recipient.
I have started to research the solutions to this and have found the following.
add_filter( 'woocommerce_checkout_fields', 'bbloomer_shipping_phone_checkout' ); function bbloomer_shipping_phone_checkout( $fields ) { $fields['shipping']['shipping_phone'] = array( 'label' => 'Phone for Delivery', 'required' => true, 'class' => array( 'form-row-wide' ), 'priority' => 25, ); return $fields; } add_action( 'woocommerce_admin_order_data_after_shipping_address', 'bbloomer_shipping_phone_checkout_display' ); function bbloomer_shipping_phone_checkout_display( $order ){ echo '<p><b>Shipping Phone:</b> ' . get_post_meta( $order->get_id(), '_shipping_phone', true ) . '</p>'; }
That is a good start but, two things.
1. it place the phone number after the name and not down further so that it balances in the design opposite the Billing phone number.
2. This phone number doesn’t get echoed into the notification emails. You need to log in to the orders to collect this info, whereas I have the notifications to copy in with the email of a third party to fulfil the order and they don’t have access to the site backend.
You can see the problem and honestly, it’s such a small but crucial feature of the sales and fulfilment fuel that we should not have to hack this into WooCommerce.
I’m surprised!
- The topic ‘No Phone for delivery’ is closed to new replies.