I just want to make two different success page variants depending on the order status.
I'm planning to edit the language file for the success page. So I will add new message like the older one.
If the order status is "pending" the success page must use the first message.
If the order status is "canceled" the success page must use the second one.
My OpenCart version is 3.0.2
I'm working in /catalog/controller/checkout/success.php line 47
Code: Select all
if ($this->customer->isLogged()) {
$data['text_message'] = sprintf($this->language->get('text_customer'), $this->url->link('account/account', '', true), $this->url->link('account/order', '', true), $this->url->link('account/download', '', true), $this->url->link('information/contact'));
} else {
$data['text_message'] = sprintf($this->language->get('text_guest'), $this->url->link('information/contact'));
}
Please help me to do that.
Thanks