• Hi!

    Thanks for an awesome plugin! I use this plugin to also allow users to register shipping phone number. Is it possible to add your plugin feature also to shipping_phone? How would I do that? ??

    /**
     * @snippet       Shipping Phone & Email - WooCommerce
     * @how-to        Get CustomizeWoo.com FREE
     * @author        Rodolfo Melogli
     * @compatible    WooCommerce 3.6.4
     * @donate $9     https://businessbloomer.com/bloomer-armada/
     */
     
    add_filter( 'woocommerce_checkout_fields', 'bbloomer_shipping_phone_checkout' );
     
    function bbloomer_shipping_phone_checkout( $fields ) {
       $fields['shipping']['shipping_phone'] = array(
          'label' => 'Phone',
          'required' => false,
          '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>';
    }
  • The topic ‘Add support for shipping_phone’ is closed to new replies.