docs/api/source-catalog.controller.checkout.failure.html
| 1: | <?php | | 2: | namespace Opencart\Catalog\Controller\Checkout; | | 3: | /** | | 4: | * Class Failure | | 5: | * | | 6: | * @package Opencart\Catalog\Controller\Checkout | | 7: | */ | | 8: | class Failure extends \Opencart\System\Engine\Controller { | | 9: | /** | | 10: | * @return void | | 11: | */ | | 12: | public function index(): void { | | 13: | $this->load->language('checkout/failure'); | | 14: | | | 15: | $this->document->setTitle($this->language->get('heading_title')); | | 16: | | | 17: | $data['breadcrumbs'] = []; | | 18: | | | 19: | $data['breadcrumbs'][] = [ | | 20: | 'text' => $this->language->get('text_home'), | | 21: | 'href' => $this->url->link('common/home', 'language=' . $this->config->get('config_language')) | | 22: | ]; | | 23: | | | 24: | $data['breadcrumbs'][] = [ | | 25: | 'text' => $this->language->get('text_basket'), | | 26: | 'href' => $this->url->link('checkout/cart', 'language=' . $this->config->get('config_language')) | | 27: | ]; | | 28: | | | 29: | $data['breadcrumbs'][] = [ | | 30: | 'text' => $this->language->get('text_checkout'), | | 31: | 'href' => $this->url->link('checkout/checkout', 'language=' . $this->config->get('config_language')) | | 32: | ]; | | 33: | | | 34: | $data['breadcrumbs'][] = [ | | 35: | 'text' => $this->language->get('text_failure'), | | 36: | 'href' => $this->url->link('checkout/failure', 'language=' . $this->config->get('config_language')) | | 37: | ]; | | 38: | | | 39: | $data['text_message'] = sprintf($this->language->get('text_message'), $this->url->link('information/contact', 'language=' . $this->config->get('config_language'))); | | 40: | | | 41: | $data['continue'] = $this->url->link('common/home', 'language=' . $this->config->get('config_language')); | | 42: | | | 43: | $data['column_left'] = $this->load->controller('common/column_left'); | | 44: | $data['column_right'] = $this->load->controller('common/column_right'); | | 45: | $data['content_top'] = $this->load->controller('common/content_top'); | | 46: | $data['content_bottom'] = $this->load->controller('common/content_bottom'); | | 47: | $data['footer'] = $this->load->controller('common/footer'); | | 48: | $data['header'] = $this->load->controller('common/header'); | | 49: | | | 50: | $this->response->setOutput($this->load->view('common/success', $data)); | | 51: | } | | 52: | } | | 53: | |
OpenCart API API documentation generated by ApiGen dev-master