Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Recommended Posts

Использую модуль эквайринга банка Tinkoff, который выложен на сайте банка на OcStore 2.3. Модуль работает нормально для зарегистрированного пользователя,
но НЕ зарегистрированный
клиент при переходе в корзину получает сообщение "Не удалось соединиться с платёжным сервисом".


В ошибках сайта вот это:
PHP Notice:  Undefined index: guest in /catalog/model/extension/payment/tinkoff.php on line 171
Код файла tinkoff.php:

Цитата

170  $customerEmail = $this->customer->getEmail();
171  $userEmail = $customerEmail ? $customerEmail : $this->cart->session->data['guest']['email'];

Есть ли возможность допилить модуль, чтобы можно было оформлять покупки без регистрации в магазине?

 

p.s. сорри за код в цитате, я с мобильного устр-ва. 

Link to comment
Share on other sites


строки 170, 171 заменить на

        $this->load->model('checkout/order');
        $order_info = $this->model_checkout_order->getOrder($params['orderId']);
        $userEmail = isset($order_info['email']) ? $order_info['email']  : '';

 

Edited by shoputils
  • +1 2
Link to comment
Share on other sites

14 часов назад, shoputils сказал:

строки 170, 171 заменить на


        $this->load->model('checkout/order');
        $order_info = $this->model_checkout_order->getOrder($params['orderId']);
        $userEmail = isset($order_info['email']) ? $order_info['email']  : '';

 

Супер! Работает!

Link to comment
Share on other sites


Guest
This topic is now closed to further replies.
 Share

×
×
  • Create New...

Important Information

On our site, cookies are used and personal data is processed to improve the user interface. To find out what and what personal data we are processing, please go to the link. If you click "I agree," it means that you understand and accept all the conditions specified in this Privacy Notice.