Skip to content

Commit

Permalink
use mobilePhoneNumber instead of (empty) phoneNumber field
Browse files Browse the repository at this point in the history
  • Loading branch information
netzkollektiv committed Jan 13, 2023
1 parent 583ff6e commit 699fa6f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ protected function create_express_checkout_order($transaction) {
$updateAddress($transaction->getTransaction()->getOrderDetails()->getShippingAddress(), 'shipping');

$contact = $transaction->getTransaction()->getCustomer()->getContact();
WC()->customer->set_billing_phone($contact->getPhoneNumber());
WC()->customer->set_billing_phone($contact->getMobilePhoneNumber());
WC()->customer->set_billing_email($contact->getEmail());
WC()->customer->save();

Expand Down

0 comments on commit 699fa6f

Please sign in to comment.