52 lines
1.9 KiB
PHP
52 lines
1.9 KiB
PHP
<?php
|
|
namespace Opencart\Catalog\Controller\Checkout;
|
|
/**
|
|
* Class Failure
|
|
*
|
|
* @package Opencart\Catalog\Controller\Checkout
|
|
*/
|
|
class Failure extends \Opencart\System\Engine\Controller {
|
|
/**
|
|
* @return void
|
|
*/
|
|
public function index(): void {
|
|
$this->load->language('checkout/failure');
|
|
|
|
$this->document->setTitle($this->language->get('heading_title'));
|
|
|
|
$data['breadcrumbs'] = [];
|
|
|
|
$data['breadcrumbs'][] = [
|
|
'text' => $this->language->get('text_home'),
|
|
'href' => $this->url->link('common/home', 'language=' . $this->config->get('config_language'))
|
|
];
|
|
|
|
$data['breadcrumbs'][] = [
|
|
'text' => $this->language->get('text_basket'),
|
|
'href' => $this->url->link('checkout/cart', 'language=' . $this->config->get('config_language'))
|
|
];
|
|
|
|
$data['breadcrumbs'][] = [
|
|
'text' => $this->language->get('text_checkout'),
|
|
'href' => $this->url->link('checkout/checkout', 'language=' . $this->config->get('config_language'))
|
|
];
|
|
|
|
$data['breadcrumbs'][] = [
|
|
'text' => $this->language->get('text_failure'),
|
|
'href' => $this->url->link('checkout/failure', 'language=' . $this->config->get('config_language'))
|
|
];
|
|
|
|
$data['text_message'] = sprintf($this->language->get('text_message'), $this->url->link('information/contact', 'language=' . $this->config->get('config_language')));
|
|
|
|
$data['continue'] = $this->url->link('common/home', 'language=' . $this->config->get('config_language'));
|
|
|
|
$data['column_left'] = $this->load->controller('common/column_left');
|
|
$data['column_right'] = $this->load->controller('common/column_right');
|
|
$data['content_top'] = $this->load->controller('common/content_top');
|
|
$data['content_bottom'] = $this->load->controller('common/content_bottom');
|
|
$data['footer'] = $this->load->controller('common/footer');
|
|
$data['header'] = $this->load->controller('common/header');
|
|
|
|
$this->response->setOutput($this->load->view('common/success', $data));
|
|
}
|
|
} |