| @@ 697-702 (lines=6) @@ | ||
| 694 | if (!empty($session->sUserId)) { |
|
| 695 | if ($order !== null) { |
|
| 696 | $module->sSYSTEM->_POST = $data['shipping']; |
|
| 697 | if (Shopware::VERSION === '___VERSION___' || version_compare(Shopware::VERSION, '5.2.0', '>=')) { |
|
| 698 | $userId = $session->offsetGet('sUserId'); |
|
| 699 | $this->updateShipping($userId, $data['shipping']); |
|
| 700 | } else { |
|
| 701 | $module->sUpdateShipping(); |
|
| 702 | } |
|
| 703 | $module->sSYSTEM->_POST = $data['billing']; |
|
| 704 | if (Shopware::VERSION === '___VERSION___' || version_compare(Shopware::VERSION, '5.2.0', '>=')) { |
|
| 705 | $userId = $session->offsetGet('sUserId'); |
|
| @@ 704-709 (lines=6) @@ | ||
| 701 | $module->sUpdateShipping(); |
|
| 702 | } |
|
| 703 | $module->sSYSTEM->_POST = $data['billing']; |
|
| 704 | if (Shopware::VERSION === '___VERSION___' || version_compare(Shopware::VERSION, '5.2.0', '>=')) { |
|
| 705 | $userId = $session->offsetGet('sUserId'); |
|
| 706 | $this->updateBilling($userId, $data['billing']); |
|
| 707 | } else { |
|
| 708 | $module->sUpdateBilling(); |
|
| 709 | } |
|
| 710 | unset($data['auth']['password']); |
|
| 711 | $module->sSYSTEM->_POST = $data['auth']; |
|
| 712 | if (Shopware::VERSION === '___VERSION___' || version_compare(Shopware::VERSION, '5.2.0', '>=')) { |
|
| @@ 737-746 (lines=10) @@ | ||
| 734 | 'SELECT id FROM s_user_shippingaddress WHERE userID = ?', |
|
| 735 | [$session->offsetGet('sUserId')] |
|
| 736 | ); |
|
| 737 | if (!empty($shippingId)) { |
|
| 738 | if (Shopware::VERSION === '___VERSION___' || |
|
| 739 | version_compare(Shopware::VERSION, '5.2.0', '>=') |
|
| 740 | ) { |
|
| 741 | $userId = $session->offsetGet('sUserId'); |
|
| 742 | $this->updateShipping($userId, $data['shipping']); |
|
| 743 | } else { |
|
| 744 | $module->sUpdateShipping(); |
|
| 745 | } |
|
| 746 | } else { |
|
| 747 | $module->sUpdateBilling(); |
|
| 748 | } |
|
| 749 | } |
|