T
T
Tsyvatsok2019-09-29 17:27:40
opencart
Tsyvatsok, 2019-09-29 17:27:40

Orders are not processed OcStore 3.0.x?

I ran into this problem: when trying to remove extra fields from the checkout, I had to edit the template + comment some lines in the .php files in the controller. I don’t know about php myself, I followed the guide, in the end nothing happened, in the end, as far as I understood, it stopped setting the ID for the order and setting it, which is why such errors (linking) fly out. At the same time, orders made are not displayed in the admin panel. After clicking the checkout button, a similar error occurs:
5d90bedd4ff97647007344.png
5d90bebd580ae018221837.png
The function itself with the problematic line:

if ($this->customer->isLogged()) {
      $data['text_message'] = sprintf($this->language->get('text_customer'), $this->url->link('account/order/info&order_id=' . $this->session->data['last_order_id'], '', true), $this->url->link('account/account', '', true), $this->url->link('account/order', '', true), $this->url->link('information/contact'), $this->url->link('product/special'), $this->session->data['last_order_id'], $this->url->link('account/download', '', true));
    } else {
      $data['text_message'] = sprintf($this->language->get('text_guest'), $this->url->link('information/contact'), $this->session->data['last_order_id']); # проблемная строчка
    }

At the same time, the orders made are not displayed in the admin
panel. I uncommented everything back and deleted the edit in the template, however, the problem remained. Can anyone come across and be able to help? I will be very grateful.
Checked via print_r($this->session->data); There is no last_order_id variable in the session. Haven't tried anything yet, still get this error. Can anyone come across or know how to fix?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question