@@ 1571-1575 (lines=5) @@ | ||
1568 | if ( !isset($user['shippinggaddress']['phone'])) { |
|
1569 | $user['shippingaddress']['phone'] = " "; |
|
1570 | } |
|
1571 | if ($user['additional']['countryShipping']['id'] == $user['additional']['country']['id']) { |
|
1572 | $update['shipping_address'] = $this->getCheckoutAddress($user, 'billing'); |
|
1573 | } else { |
|
1574 | $update['shipping_address'] = $this->getCheckoutAddress($user, 'shipping'); |
|
1575 | } |
|
1576 | } |
|
1577 | $order->update($update); |
|
1578 | } else { |
|
@@ 1627-1631 (lines=5) @@ | ||
1624 | && $user['billingaddress']['zipcode'] != '00000' |
|
1625 | ) { |
|
1626 | $create['customer'] = $this->getCheckoutCustomer($user); |
|
1627 | if ($user['additional']['countryShipping']['id'] == $user['additional']['country']['id']) { |
|
1628 | $create['shipping_address'] = $this->getCheckoutAddress($user, 'billing'); |
|
1629 | } else { |
|
1630 | $create['shipping_address'] = $this->getCheckoutAddress($user, 'shipping'); |
|
1631 | } |
|
1632 | } |
|
1633 | } else { |
|
1634 | $session['klarnaPreFill'] = false; |