shop.balmet.com

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

success.php (1700B)


      1 <?php
      2 class ControllerAccountSuccess extends Controller {
      3 	public function index() {
      4 		$this->load->language('account/success');
      5 
      6 		$this->document->setTitle($this->language->get('heading_title'));
      7 
      8 		$data['breadcrumbs'] = array();
      9 
     10 		$data['breadcrumbs'][] = array(
     11 			'text' => $this->language->get('text_home'),
     12 			'href' => $this->url->link('common/home')
     13 		);
     14 
     15 		$data['breadcrumbs'][] = array(
     16 			'text' => $this->language->get('text_account'),
     17 			'href' => $this->url->link('account/account', '', true)
     18 		);
     19 
     20 		$data['breadcrumbs'][] = array(
     21 			'text' => $this->language->get('text_success'),
     22 			'href' => $this->url->link('account/success')
     23 		);
     24 
     25 		if ($this->customer->isLogged()) {
     26 			$data['text_message'] = sprintf($this->language->get('text_message'), $this->url->link('information/contact'));
     27 		} else {
     28 			$data['text_message'] = sprintf($this->language->get('text_approval'), $this->config->get('config_name'), $this->url->link('information/contact'));
     29 		}
     30 
     31 		if ($this->cart->hasProducts()) {
     32 			$data['continue'] = $this->url->link('checkout/cart');
     33 		} else {
     34 			$data['continue'] = $this->url->link('account/account', '', true);
     35 		}
     36 
     37 		$data['column_left'] = $this->load->controller('common/column_left');
     38 		$data['column_right'] = $this->load->controller('common/column_right');
     39 		$data['content_top'] = $this->load->controller('common/content_top');
     40 		$data['content_bottom'] = $this->load->controller('common/content_bottom');
     41 		$data['footer'] = $this->load->controller('common/footer');
     42 		$data['header'] = $this->load->controller('common/header');
     43 
     44 		$this->response->setOutput($this->load->view('common/success', $data));
     45 	}
     46 }