Я в данном движке не сильна и магазин делал отдельный человек, но я хочу внести правки по поводу пустой корзины и посещения страницы спешного заказ без заказа. Так как вижу что есть часть посещений пустых по статистике.
Меня интересует правильно ли я поняла ваши правки и хотелось бы еще значть нужны ли мне все правки которые у вас есть. Так как у нас то же используется модуль Simple, но нет ошибки:
И строка
Имеет у меня вид
Если я правильно поняла о какой строчке идет речь в указаном фаиле.
Так вот на сколько я поняла вот эту строку: $this->data['text_message'] = sprintf($this->language->get('text_guest'), $this->url->link('information/contact')); я дожна заменить на:
if(isset($this->session->data['last_order_id'])){
if ($this->customer->isLogged()) {
$this->data['text_message'] = sprintf($this->language->get('text_customer'), $this->url->link('account/order/info&order_id=' . $this->session->data['last_order_id'], '', 'SSL'), $this->session->data['last_order_id'], $this->url->link('account/account', '', 'SSL'), $this->url->link('account/order', '', 'SSL'), $this->url->link('account/download', '', 'SSL'), $this->url->link('information/contact'));
}
else {
$this->data['text_message'] = sprintf($this->language->get('text_guest'), $this->session->data['last_order_id'], $this->url->link('information/contact'));
}
}
else {
$this->redirect($this->url->link('common/home'));
}
Не добавить после указанной строки выражение, а именно заменить.
И у меня кусок кода:
if ($this->customer->isLogged()) {
$this->data['text_message'] = sprintf($this->language->get('text_customer'), $this->url->link('account/account', '', 'SSL'), $this->url->link('account/order', '', 'SSL'), $this->url->link('account/download', '', 'SSL'), $this->url->link('information/contact'));
} else {
$this->data['text_message'] = sprintf($this->language->get('text_guest'), $this->url->link('information/contact'));
}
Становиться вот таким:
if ($this->customer->isLogged()) {
$this->data['text_message'] = sprintf($this->language->get('text_customer'), $this->url->link('account/account', '', 'SSL'), $this->url->link('account/order', '', 'SSL'), $this->url->link('account/download', '', 'SSL'), $this->url->link('information/contact'));
} else {
if(isset($this->session->data['last_order_id'])){
if ($this->customer->isLogged()) {
$this->data['text_message'] = sprintf($this->language->get('text_customer'), $this->url->link('account/order/info&order_id=' . $this->session->data['last_order_id'], '', 'SSL'), $this->session->data['last_order_id'], $this->url->link('account/account', '', 'SSL'), $this->url->link('account/order', '', 'SSL'), $this->url->link('account/download', '', 'SSL'), $this->url->link('information/contact'));
}
else {
$this->data['text_message'] = sprintf($this->language->get('text_guest'), $this->session->data['last_order_id'], $this->url->link('information/contact'));
}
}
else {
$this->redirect($this->url->link('common/home'));
}
}
Я правильно вас поняла?
Во втором случае я строки:
меняю на:
$this->redirect($this->url->link('checkout/cart'));
$this->data['heading_title'] = $this->language->get('heading_title');
$this->data['text_error'] = $this->language->get('text_empty');