diff options
Diffstat (limited to 'public/catalog/controller/affiliate/success.php')
-rw-r--r-- | public/catalog/controller/affiliate/success.php | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/public/catalog/controller/affiliate/success.php b/public/catalog/controller/affiliate/success.php new file mode 100644 index 0000000..2950c01 --- /dev/null +++ b/public/catalog/controller/affiliate/success.php @@ -0,0 +1,48 @@ +<?php +class ControllerAffiliateSuccess extends Controller { + public function index() { + $this->load->language('affiliate/success'); + + $this->document->setTitle($this->language->get('heading_title')); + + $data['breadcrumbs'] = array(); + + $data['breadcrumbs'][] = array( + 'text' => $this->language->get('text_home'), + 'href' => $this->url->link('common/home') + ); + + $data['breadcrumbs'][] = array( + 'text' => $this->language->get('text_account'), + 'href' => $this->url->link('account/account', '', true) + ); + + $data['breadcrumbs'][] = array( + 'text' => $this->language->get('text_success'), + 'href' => $this->url->link('affiliate/success') + ); + + $this->load->model('account/customer_group'); + + $customer_group_info = $this->model_account_customer_group->getCustomerGroup($this->config->get('config_customer_group_id')); + + if (!$this->config->get('config_affiliate_approval') && $this->customer->isLogged()) { + $data['text_message'] = sprintf($this->language->get('text_message'), $this->config->get('config_name'), $this->url->link('information/contact')); + } else { + $data['text_message'] = sprintf($this->language->get('text_approval'), $this->config->get('config_name'), $this->url->link('information/contact')); + } + + $data['button_continue'] = $this->language->get('button_continue'); + + $data['continue'] = $this->url->link('account/account', '', true); + + $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)); + } +}
\ No newline at end of file |