| @@ 698-713 (lines=16) @@ | ||
| 695 | if (!empty($session->sUserId)) { |
|
| 696 | if ($order !== null) { |
|
| 697 | $module->sSYSTEM->_POST = $data['shipping']; |
|
| 698 | if ($this->plugin->isShopwareVersionNew()) { |
|
| 699 | $userId = $session->offsetGet('sUserId'); |
|
| 700 | $this->plugin->klarnaLog( |
|
| 701 | "Shopware_Controllers_Frontend_PaymentKlarna::createAccount->updateShipping:", |
|
| 702 | 3, |
|
| 703 | $data['shipping'] |
|
| 704 | ); |
|
| 705 | $this->updateShipping($userId, $data['shipping']); |
|
| 706 | } else { |
|
| 707 | $this->plugin->klarnaLog( |
|
| 708 | "Shopware_Controllers_Frontend_PaymentKlarna::createAccount->sUpdateShipping:", |
|
| 709 | 3, |
|
| 710 | $this->front->Request()->getPost() |
|
| 711 | ); |
|
| 712 | $module->sUpdateShipping(); |
|
| 713 | } |
|
| 714 | $module->sSYSTEM->_POST = $data['billing']; |
|
| 715 | if ($this->plugin->isShopwareVersionNew()) { |
|
| 716 | $userId = $session->offsetGet('sUserId'); |
|
| @@ 715-730 (lines=16) @@ | ||
| 712 | $module->sUpdateShipping(); |
|
| 713 | } |
|
| 714 | $module->sSYSTEM->_POST = $data['billing']; |
|
| 715 | if ($this->plugin->isShopwareVersionNew()) { |
|
| 716 | $userId = $session->offsetGet('sUserId'); |
|
| 717 | $this->plugin->klarnaLog( |
|
| 718 | "Shopware_Controllers_Frontend_PaymentKlarna::createAccount->updateBilling:", |
|
| 719 | 3, |
|
| 720 | $data['billing'] |
|
| 721 | ); |
|
| 722 | $this->updateBilling($userId, $data['billing']); |
|
| 723 | } else { |
|
| 724 | $this->plugin->klarnaLog( |
|
| 725 | "Shopware_Controllers_Frontend_PaymentKlarna::createAccount->sUpdateBilling:", |
|
| 726 | 3, |
|
| 727 | $this->front->Request()->getPost() |
|
| 728 | ); |
|
| 729 | $module->sUpdateBilling(); |
|
| 730 | } |
|
| 731 | unset($data['auth']['password']); |
|
| 732 | $module->sSYSTEM->_POST = $data['auth']; |
|
| 733 | if ($this->plugin->isShopwareVersionNew()) { |
|
| @@ 733-748 (lines=16) @@ | ||
| 730 | } |
|
| 731 | unset($data['auth']['password']); |
|
| 732 | $module->sSYSTEM->_POST = $data['auth']; |
|
| 733 | if ($this->plugin->isShopwareVersionNew()) { |
|
| 734 | $userId = $session->offsetGet('sUserId'); |
|
| 735 | $this->plugin->klarnaLog( |
|
| 736 | "Shopware_Controllers_Frontend_PaymentKlarna::createAccount->updateCustomer:", |
|
| 737 | 3, |
|
| 738 | $data |
|
| 739 | ); |
|
| 740 | $this->updateCustomer($data, $userId); |
|
| 741 | } else { |
|
| 742 | $this->plugin->klarnaLog( |
|
| 743 | "Shopware_Controllers_Frontend_PaymentKlarna::createAccount->sUpdateAccount:", |
|
| 744 | 3, |
|
| 745 | $this->front->Request()->getPost() |
|
| 746 | ); |
|
| 747 | $module->sUpdateAccount(); |
|
| 748 | } |
|
| 749 | } else { |
|
| 750 | /** @var Enlight_Controller_Front $front */ |
|
| 751 | $front = $this->get('front'); |
|