| @@ 734-739 (lines=6) @@ | ||
| 731 | if (!empty($session->sUserId)) { |
|
| 732 | if ($order !== null) { |
|
| 733 | $module->sSYSTEM->_POST = $data['shipping']; |
|
| 734 | if (Shopware::VERSION === '___VERSION___' || version_compare(Shopware::VERSION, '5.2.0', '>=')) { |
|
| 735 | $userId = $session->offsetGet('sUserId'); |
|
| 736 | $this->updateShipping($userId, $data['shipping']); |
|
| 737 | } else { |
|
| 738 | $module->sUpdateShipping(); |
|
| 739 | } |
|
| 740 | $module->sSYSTEM->_POST = $data['billing']; |
|
| 741 | if (Shopware::VERSION === '___VERSION___' || version_compare(Shopware::VERSION, '5.2.0', '>=')) { |
|
| 742 | $userId = $session->offsetGet('sUserId'); |
|
| @@ 741-746 (lines=6) @@ | ||
| 738 | $module->sUpdateShipping(); |
|
| 739 | } |
|
| 740 | $module->sSYSTEM->_POST = $data['billing']; |
|
| 741 | if (Shopware::VERSION === '___VERSION___' || version_compare(Shopware::VERSION, '5.2.0', '>=')) { |
|
| 742 | $userId = $session->offsetGet('sUserId'); |
|
| 743 | $this->updateBilling($userId, $data['billing']); |
|
| 744 | } else{ |
|
| 745 | $module->sUpdateBilling(); |
|
| 746 | } |
|
| 747 | unset($data['auth']['password']); |
|
| 748 | $module->sSYSTEM->_POST = $data['auth']; |
|
| 749 | if (Shopware::VERSION === '___VERSION___' || version_compare(Shopware::VERSION, '5.2.0', '>=')) { |
|
| @@ 766-775 (lines=10) @@ | ||
| 763 | 'SELECT id FROM s_user_shippingaddress WHERE userID = ?', |
|
| 764 | array($session->offsetGet('sUserId')) |
|
| 765 | ); |
|
| 766 | if (!empty($shippingId)) { |
|
| 767 | if (Shopware::VERSION === '___VERSION___' || version_compare(Shopware::VERSION, '5.2.0', '>=')) { |
|
| 768 | $userId = $session->offsetGet('sUserId'); |
|
| 769 | $this->updateShipping($userId, $data['shipping']); |
|
| 770 | } else { |
|
| 771 | $module->sUpdateShipping(); |
|
| 772 | } |
|
| 773 | } else { |
|
| 774 | $module->sUpdateBilling(); |
|
| 775 | } |
|
| 776 | } |
|
| 777 | $module->sSYSTEM->_POST = array('sPayment' => $paymentId); |
|
| 778 | $module->sUpdatePayment(); |
|