Example #1
0
 public function update()
 {
     $this->language->load('setting/store');
     $this->document->setTitle($this->language->get('heading_title'));
     $this->load->model('setting/store');
     if ($this->request->server['REQUEST_METHOD'] == 'POST' && $this->validateForm()) {
         $this->model_setting_store->editStore($this->request->get['store_id'], $this->request->post);
         $this->load->model('setting/setting');
         $this->model_setting_setting->editSetting('config', $this->request->post, $this->request->get['store_id']);
         // LOO
         if (file_exists(DIR_CATALOG . 'view/theme/' . $this->request->post['config_template'] . '/install.sql')) {
             $tmpl_dir = dirname(DIR_CATALOG . 'view/theme/' . $this->request->post['config_template'] . '/install.sql');
             if ((bool) stristr($tmpl_dir, $this->config->get('config_template')) == false) {
                 // Parse and Run sql
                 $sql = loo_parse_queries(DIR_CATALOG . 'view/theme/' . $this->request->post['config_template'] . '/install.sql');
                 foreach ($sql as $query) {
                     $this->db->query($query);
                 }
             }
         }
         // LOO (end)
         $this->session->data['success'] = $this->language->get('text_success');
         $this->redirect($this->url->link('setting/store', 'token=' . $this->session->data['token'] . '&store_id=' . $this->request->get['store_id'], 'SSL'));
     }
     $this->getForm();
 }
Example #2
0
 public function index()
 {
     $this->language->load('setting/setting');
     $this->document->setTitle($this->language->get('heading_title'));
     $this->load->model('setting/setting');
     if ($this->request->server['REQUEST_METHOD'] == 'POST' && $this->validate()) {
         $this->model_setting_setting->editSetting('config', $this->request->post);
         /* loo functions begin */
         function loo_parse_queries($file)
         {
             $sql_file = $file;
             $contents = file_get_contents($sql_file);
             $comment_patterns = array('/\\/\\*.*(\\n)*.*(\\*\\/)?/', '/\\s*--.*\\n/', '/\\s*#.*\\n/');
             $contents = preg_replace($comment_patterns, "\n", $contents);
             $contents = preg_replace('/(?<=t);(?=\\n)/', "{{semicolon_in_text}}", $contents);
             $statements = explode(";\n", $contents);
             //    $statements = preg_replace("/\s/", ' ', $statements);
             $queries = array();
             foreach ($statements as $query) {
                 if (trim($query) != '') {
                     $query = str_replace("{{semicolon_in_text}}", ";", $query);
                     //apply db prefix parametr
                     preg_match("/\\?:\\w*/i", $query, $matches);
                     $table_name = str_replace('?:', DB_PREFIX, $matches[0]);
                     if (!empty($table_name)) {
                         $query = str_replace(array($matches[0], 'key = '), array($table_name, '`key` = '), $query);
                     }
                     $queries[] = $query;
                 }
             }
             return $queries;
         }
         /* loo functions end */
         // LOO
         if (file_exists(DIR_CATALOG . 'view/theme/' . $this->request->post['config_template'] . '/install.sql')) {
             $tmpl_dir = dirname(DIR_CATALOG . 'view/theme/' . $this->request->post['config_template'] . '/install.sql');
             if ((bool) stristr($tmpl_dir, $this->config->get('config_template')) == false) {
                 // Parse and Run sql
                 $sql = loo_parse_queries(DIR_CATALOG . 'view/theme/' . $this->request->post['config_template'] . '/install.sql');
                 foreach ($sql as $query) {
                     $this->db->query($query);
                 }
             }
         }
         // LOO (end)
         if ($this->config->get('config_currency_auto')) {
             $this->load->model('localisation/currency');
             $this->model_localisation_currency->updateCurrencies();
         }
         $this->session->data['success'] = $this->language->get('text_success');
         $this->redirect($this->url->link('setting/store', 'token=' . $this->session->data['token'], 'SSL'));
     }
     $this->data['heading_title'] = $this->language->get('heading_title');
     $this->data['text_select'] = $this->language->get('text_select');
     $this->data['text_none'] = $this->language->get('text_none');
     $this->data['text_yes'] = $this->language->get('text_yes');
     $this->data['text_no'] = $this->language->get('text_no');
     $this->data['text_items'] = $this->language->get('text_items');
     $this->data['text_product'] = $this->language->get('text_product');
     $this->data['text_voucher'] = $this->language->get('text_voucher');
     $this->data['text_tax'] = $this->language->get('text_tax');
     $this->data['text_account'] = $this->language->get('text_account');
     $this->data['text_checkout'] = $this->language->get('text_checkout');
     $this->data['text_stock'] = $this->language->get('text_stock');
     $this->data['text_affiliate'] = $this->language->get('text_affiliate');
     $this->data['text_return'] = $this->language->get('text_return');
     $this->data['text_image_manager'] = $this->language->get('text_image_manager');
     $this->data['text_browse'] = $this->language->get('text_browse');
     $this->data['text_clear'] = $this->language->get('text_clear');
     $this->data['text_shipping'] = $this->language->get('text_shipping');
     $this->data['text_payment'] = $this->language->get('text_payment');
     $this->data['text_mail'] = $this->language->get('text_mail');
     $this->data['text_smtp'] = $this->language->get('text_smtp');
     $this->data['entry_name'] = $this->language->get('entry_name');
     $this->data['entry_owner'] = $this->language->get('entry_owner');
     $this->data['entry_address'] = $this->language->get('entry_address');
     $this->data['entry_email'] = $this->language->get('entry_email');
     $this->data['entry_telephone'] = $this->language->get('entry_telephone');
     $this->data['entry_fax'] = $this->language->get('entry_fax');
     $this->data['entry_title'] = $this->language->get('entry_title');
     $this->data['entry_meta_description'] = $this->language->get('entry_meta_description');
     $this->data['entry_layout'] = $this->language->get('entry_layout');
     $this->data['entry_template'] = $this->language->get('entry_template');
     $this->data['entry_country'] = $this->language->get('entry_country');
     $this->data['entry_zone'] = $this->language->get('entry_zone');
     $this->data['entry_language'] = $this->language->get('entry_language');
     $this->data['entry_admin_language'] = $this->language->get('entry_admin_language');
     $this->data['entry_currency'] = $this->language->get('entry_currency');
     $this->data['entry_currency_auto'] = $this->language->get('entry_currency_auto');
     $this->data['entry_length_class'] = $this->language->get('entry_length_class');
     $this->data['entry_weight_class'] = $this->language->get('entry_weight_class');
     $this->data['entry_catalog_limit'] = $this->language->get('entry_catalog_limit');
     $this->data['entry_admin_limit'] = $this->language->get('entry_admin_limit');
     $this->data['entry_product_count'] = $this->language->get('entry_product_count');
     $this->data['entry_review'] = $this->language->get('entry_review');
     $this->data['entry_download'] = $this->language->get('entry_download');
     $this->data['entry_voucher_min'] = $this->language->get('entry_voucher_min');
     $this->data['entry_voucher_max'] = $this->language->get('entry_voucher_max');
     $this->data['entry_tax'] = $this->language->get('entry_tax');
     $this->data['entry_vat'] = $this->language->get('entry_vat');
     $this->data['entry_tax_default'] = $this->language->get('entry_tax_default');
     $this->data['entry_tax_customer'] = $this->language->get('entry_tax_customer');
     $this->data['entry_customer_online'] = $this->language->get('entry_customer_online');
     $this->data['entry_customer_group'] = $this->language->get('entry_customer_group');
     $this->data['entry_customer_group_display'] = $this->language->get('entry_customer_group_display');
     $this->data['entry_customer_price'] = $this->language->get('entry_customer_price');
     $this->data['entry_account'] = $this->language->get('entry_account');
     $this->data['entry_cart_weight'] = $this->language->get('entry_cart_weight');
     $this->data['entry_guest_checkout'] = $this->language->get('entry_guest_checkout');
     $this->data['entry_checkout'] = $this->language->get('entry_checkout');
     $this->data['entry_order_edit'] = $this->language->get('entry_order_edit');
     $this->data['entry_invoice_prefix'] = $this->language->get('entry_invoice_prefix');
     $this->data['entry_order_status'] = $this->language->get('entry_order_status');
     $this->data['entry_complete_status'] = $this->language->get('entry_complete_status');
     $this->data['entry_stock_display'] = $this->language->get('entry_stock_display');
     $this->data['entry_stock_warning'] = $this->language->get('entry_stock_warning');
     $this->data['entry_stock_checkout'] = $this->language->get('entry_stock_checkout');
     $this->data['entry_stock_status'] = $this->language->get('entry_stock_status');
     $this->data['entry_affiliate'] = $this->language->get('entry_affiliate');
     $this->data['entry_commission'] = $this->language->get('entry_commission');
     $this->data['entry_return'] = $this->language->get('entry_return');
     $this->data['entry_return_status'] = $this->language->get('entry_return_status');
     $this->data['entry_logo'] = $this->language->get('entry_logo');
     $this->data['entry_icon'] = $this->language->get('entry_icon');
     $this->data['entry_image_category'] = $this->language->get('entry_image_category');
     $this->data['entry_image_thumb'] = $this->language->get('entry_image_thumb');
     $this->data['entry_image_popup'] = $this->language->get('entry_image_popup');
     $this->data['entry_image_product'] = $this->language->get('entry_image_product');
     $this->data['entry_image_additional'] = $this->language->get('entry_image_additional');
     $this->data['entry_image_related'] = $this->language->get('entry_image_related');
     $this->data['entry_image_compare'] = $this->language->get('entry_image_compare');
     $this->data['entry_image_wishlist'] = $this->language->get('entry_image_wishlist');
     $this->data['entry_image_cart'] = $this->language->get('entry_image_cart');
     $this->data['entry_ftp_host'] = $this->language->get('entry_ftp_host');
     $this->data['entry_ftp_port'] = $this->language->get('entry_ftp_port');
     $this->data['entry_ftp_username'] = $this->language->get('entry_ftp_username');
     $this->data['entry_ftp_password'] = $this->language->get('entry_ftp_password');
     $this->data['entry_ftp_root'] = $this->language->get('entry_ftp_root');
     $this->data['entry_ftp_status'] = $this->language->get('entry_ftp_status');
     $this->data['entry_mail_protocol'] = $this->language->get('entry_mail_protocol');
     $this->data['entry_mail_parameter'] = $this->language->get('entry_mail_parameter');
     $this->data['entry_smtp_host'] = $this->language->get('entry_smtp_host');
     $this->data['entry_smtp_username'] = $this->language->get('entry_smtp_username');
     $this->data['entry_smtp_password'] = $this->language->get('entry_smtp_password');
     $this->data['entry_smtp_port'] = $this->language->get('entry_smtp_port');
     $this->data['entry_smtp_timeout'] = $this->language->get('entry_smtp_timeout');
     $this->data['entry_alert_mail'] = $this->language->get('entry_alert_mail');
     $this->data['entry_account_mail'] = $this->language->get('entry_account_mail');
     $this->data['entry_alert_emails'] = $this->language->get('entry_alert_emails');
     $this->data['entry_fraud_detection'] = $this->language->get('entry_fraud_detection');
     $this->data['entry_fraud_key'] = $this->language->get('entry_fraud_key');
     $this->data['entry_fraud_score'] = $this->language->get('entry_fraud_score');
     $this->data['entry_fraud_status'] = $this->language->get('entry_fraud_status');
     $this->data['entry_secure'] = $this->language->get('entry_secure');
     $this->data['entry_shared'] = $this->language->get('entry_shared');
     $this->data['entry_robots'] = $this->language->get('entry_robots');
     $this->data['entry_file_extension_allowed'] = $this->language->get('entry_file_extension_allowed');
     $this->data['entry_file_mime_allowed'] = $this->language->get('entry_file_mime_allowed');
     $this->data['entry_maintenance'] = $this->language->get('entry_maintenance');
     $this->data['entry_password'] = $this->language->get('entry_password');
     $this->data['entry_encryption'] = $this->language->get('entry_encryption');
     $this->data['entry_seo_url'] = $this->language->get('entry_seo_url');
     $this->data['entry_compression'] = $this->language->get('entry_compression');
     $this->data['entry_error_display'] = $this->language->get('entry_error_display');
     $this->data['entry_error_log'] = $this->language->get('entry_error_log');
     $this->data['entry_error_filename'] = $this->language->get('entry_error_filename');
     $this->data['entry_google_analytics'] = $this->language->get('entry_google_analytics');
     $this->data['button_save'] = $this->language->get('button_save');
     $this->data['button_cancel'] = $this->language->get('button_cancel');
     $this->data['tab_general'] = $this->language->get('tab_general');
     $this->data['tab_store'] = $this->language->get('tab_store');
     $this->data['tab_local'] = $this->language->get('tab_local');
     $this->data['tab_option'] = $this->language->get('tab_option');
     $this->data['tab_image'] = $this->language->get('tab_image');
     $this->data['tab_ftp'] = $this->language->get('tab_ftp');
     $this->data['tab_mail'] = $this->language->get('tab_mail');
     $this->data['tab_fraud'] = $this->language->get('tab_fraud');
     $this->data['tab_server'] = $this->language->get('tab_server');
     if (isset($this->error['warning'])) {
         $this->data['error_warning'] = $this->error['warning'];
     } else {
         $this->data['error_warning'] = '';
     }
     if (isset($this->error['name'])) {
         $this->data['error_name'] = $this->error['name'];
     } else {
         $this->data['error_name'] = '';
     }
     if (isset($this->error['owner'])) {
         $this->data['error_owner'] = $this->error['owner'];
     } else {
         $this->data['error_owner'] = '';
     }
     if (isset($this->error['address'])) {
         $this->data['error_address'] = $this->error['address'];
     } else {
         $this->data['error_address'] = '';
     }
     if (isset($this->error['email'])) {
         $this->data['error_email'] = $this->error['email'];
     } else {
         $this->data['error_email'] = '';
     }
     if (isset($this->error['telephone'])) {
         $this->data['error_telephone'] = $this->error['telephone'];
     } else {
         $this->data['error_telephone'] = '';
     }
     if (isset($this->error['title'])) {
         $this->data['error_title'] = $this->error['title'];
     } else {
         $this->data['error_title'] = '';
     }
     if (isset($this->error['customer_group_display'])) {
         $this->data['error_customer_group_display'] = $this->error['customer_group_display'];
     } else {
         $this->data['error_customer_group_display'] = '';
     }
     if (isset($this->error['voucher_min'])) {
         $this->data['error_voucher_min'] = $this->error['voucher_min'];
     } else {
         $this->data['error_voucher_min'] = '';
     }
     if (isset($this->error['voucher_max'])) {
         $this->data['error_voucher_max'] = $this->error['voucher_max'];
     } else {
         $this->data['error_voucher_max'] = '';
     }
     if (isset($this->error['ftp_host'])) {
         $this->data['error_ftp_host'] = $this->error['ftp_host'];
     } else {
         $this->data['error_ftp_host'] = '';
     }
     if (isset($this->error['ftp_port'])) {
         $this->data['error_ftp_port'] = $this->error['ftp_port'];
     } else {
         $this->data['error_ftp_port'] = '';
     }
     if (isset($this->error['ftp_username'])) {
         $this->data['error_ftp_username'] = $this->error['ftp_username'];
     } else {
         $this->data['error_ftp_username'] = '';
     }
     if (isset($this->error['ftp_password'])) {
         $this->data['error_ftp_password'] = $this->error['ftp_password'];
     } else {
         $this->data['error_ftp_password'] = '';
     }
     if (isset($this->error['image_category'])) {
         $this->data['error_image_category'] = $this->error['image_category'];
     } else {
         $this->data['error_image_category'] = '';
     }
     if (isset($this->error['image_thumb'])) {
         $this->data['error_image_thumb'] = $this->error['image_thumb'];
     } else {
         $this->data['error_image_thumb'] = '';
     }
     if (isset($this->error['image_popup'])) {
         $this->data['error_image_popup'] = $this->error['image_popup'];
     } else {
         $this->data['error_image_popup'] = '';
     }
     if (isset($this->error['image_product'])) {
         $this->data['error_image_product'] = $this->error['image_product'];
     } else {
         $this->data['error_image_product'] = '';
     }
     if (isset($this->error['image_additional'])) {
         $this->data['error_image_additional'] = $this->error['image_additional'];
     } else {
         $this->data['error_image_additional'] = '';
     }
     if (isset($this->error['image_related'])) {
         $this->data['error_image_related'] = $this->error['image_related'];
     } else {
         $this->data['error_image_related'] = '';
     }
     if (isset($this->error['image_compare'])) {
         $this->data['error_image_compare'] = $this->error['image_compare'];
     } else {
         $this->data['error_image_compare'] = '';
     }
     if (isset($this->error['image_wishlist'])) {
         $this->data['error_image_wishlist'] = $this->error['image_wishlist'];
     } else {
         $this->data['error_image_wishlist'] = '';
     }
     if (isset($this->error['image_cart'])) {
         $this->data['error_image_cart'] = $this->error['image_cart'];
     } else {
         $this->data['error_image_cart'] = '';
     }
     if (isset($this->error['error_filename'])) {
         $this->data['error_error_filename'] = $this->error['error_filename'];
     } else {
         $this->data['error_error_filename'] = '';
     }
     if (isset($this->error['catalog_limit'])) {
         $this->data['error_catalog_limit'] = $this->error['catalog_limit'];
     } else {
         $this->data['error_catalog_limit'] = '';
     }
     if (isset($this->error['admin_limit'])) {
         $this->data['error_admin_limit'] = $this->error['admin_limit'];
     } else {
         $this->data['error_admin_limit'] = '';
     }
     if (isset($this->error['encryption'])) {
         $this->data['error_encryption'] = $this->error['encryption'];
     } else {
         $this->data['error_encryption'] = '';
     }
     $this->data['breadcrumbs'] = array();
     $this->data['breadcrumbs'][] = array('text' => $this->language->get('text_home'), 'href' => $this->url->link('common/home', 'token=' . $this->session->data['token'], 'SSL'), 'separator' => false);
     $this->data['breadcrumbs'][] = array('text' => $this->language->get('heading_title'), 'href' => $this->url->link('setting/setting', 'token=' . $this->session->data['token'], 'SSL'), 'separator' => ' :: ');
     if (isset($this->session->data['success'])) {
         $this->data['success'] = $this->session->data['success'];
         unset($this->session->data['success']);
     } else {
         $this->data['success'] = '';
     }
     $this->data['action'] = $this->url->link('setting/setting', 'token=' . $this->session->data['token'], 'SSL');
     $this->data['cancel'] = $this->url->link('setting/store', 'token=' . $this->session->data['token'], 'SSL');
     $this->data['token'] = $this->session->data['token'];
     if (isset($this->request->post['config_name'])) {
         $this->data['config_name'] = $this->request->post['config_name'];
     } else {
         $this->data['config_name'] = $this->config->get('config_name');
     }
     if (isset($this->request->post['config_owner'])) {
         $this->data['config_owner'] = $this->request->post['config_owner'];
     } else {
         $this->data['config_owner'] = $this->config->get('config_owner');
     }
     if (isset($this->request->post['config_address'])) {
         $this->data['config_address'] = $this->request->post['config_address'];
     } else {
         $this->data['config_address'] = $this->config->get('config_address');
     }
     if (isset($this->request->post['config_email'])) {
         $this->data['config_email'] = $this->request->post['config_email'];
     } else {
         $this->data['config_email'] = $this->config->get('config_email');
     }
     if (isset($this->request->post['config_telephone'])) {
         $this->data['config_telephone'] = $this->request->post['config_telephone'];
     } else {
         $this->data['config_telephone'] = $this->config->get('config_telephone');
     }
     if (isset($this->request->post['config_fax'])) {
         $this->data['config_fax'] = $this->request->post['config_fax'];
     } else {
         $this->data['config_fax'] = $this->config->get('config_fax');
     }
     if (isset($this->request->post['config_title'])) {
         $this->data['config_title'] = $this->request->post['config_title'];
     } else {
         $this->data['config_title'] = $this->config->get('config_title');
     }
     if (isset($this->request->post['config_meta_description'])) {
         $this->data['config_meta_description'] = $this->request->post['config_meta_description'];
     } else {
         $this->data['config_meta_description'] = $this->config->get('config_meta_description');
     }
     if (isset($this->request->post['config_layout_id'])) {
         $this->data['config_layout_id'] = $this->request->post['config_layout_id'];
     } else {
         $this->data['config_layout_id'] = $this->config->get('config_layout_id');
     }
     $this->load->model('design/layout');
     $this->data['layouts'] = $this->model_design_layout->getLayouts();
     if (isset($this->request->post['config_template'])) {
         $this->data['config_template'] = $this->request->post['config_template'];
     } else {
         $this->data['config_template'] = $this->config->get('config_template');
     }
     $this->data['templates'] = array();
     $directories = glob(DIR_CATALOG . 'view/theme/*', GLOB_ONLYDIR);
     foreach ($directories as $directory) {
         $this->data['templates'][] = basename($directory);
     }
     if (isset($this->request->post['config_country_id'])) {
         $this->data['config_country_id'] = $this->request->post['config_country_id'];
     } else {
         $this->data['config_country_id'] = $this->config->get('config_country_id');
     }
     $this->load->model('localisation/country');
     $this->data['countries'] = $this->model_localisation_country->getCountries();
     if (isset($this->request->post['config_zone_id'])) {
         $this->data['config_zone_id'] = $this->request->post['config_zone_id'];
     } else {
         $this->data['config_zone_id'] = $this->config->get('config_zone_id');
     }
     if (isset($this->request->post['config_language'])) {
         $this->data['config_language'] = $this->request->post['config_language'];
     } else {
         $this->data['config_language'] = $this->config->get('config_language');
     }
     $this->load->model('localisation/language');
     $this->data['languages'] = $this->model_localisation_language->getLanguages();
     if (isset($this->request->post['config_admin_language'])) {
         $this->data['config_admin_language'] = $this->request->post['config_admin_language'];
     } else {
         $this->data['config_admin_language'] = $this->config->get('config_admin_language');
     }
     if (isset($this->request->post['config_currency'])) {
         $this->data['config_currency'] = $this->request->post['config_currency'];
     } else {
         $this->data['config_currency'] = $this->config->get('config_currency');
     }
     if (isset($this->request->post['config_currency_auto'])) {
         $this->data['config_currency_auto'] = $this->request->post['config_currency_auto'];
     } else {
         $this->data['config_currency_auto'] = $this->config->get('config_currency_auto');
     }
     $this->load->model('localisation/currency');
     $this->data['currencies'] = $this->model_localisation_currency->getCurrencies();
     if (isset($this->request->post['config_length_class_id'])) {
         $this->data['config_length_class_id'] = $this->request->post['config_length_class_id'];
     } else {
         $this->data['config_length_class_id'] = $this->config->get('config_length_class_id');
     }
     $this->load->model('localisation/length_class');
     $this->data['length_classes'] = $this->model_localisation_length_class->getLengthClasses();
     if (isset($this->request->post['config_weight_class_id'])) {
         $this->data['config_weight_class_id'] = $this->request->post['config_weight_class_id'];
     } else {
         $this->data['config_weight_class_id'] = $this->config->get('config_weight_class_id');
     }
     $this->load->model('localisation/weight_class');
     $this->data['weight_classes'] = $this->model_localisation_weight_class->getWeightClasses();
     if (isset($this->request->post['config_catalog_limit'])) {
         $this->data['config_catalog_limit'] = $this->request->post['config_catalog_limit'];
     } else {
         $this->data['config_catalog_limit'] = $this->config->get('config_catalog_limit');
     }
     if (isset($this->request->post['config_admin_limit'])) {
         $this->data['config_admin_limit'] = $this->request->post['config_admin_limit'];
     } else {
         $this->data['config_admin_limit'] = $this->config->get('config_admin_limit');
     }
     if (isset($this->request->post['config_product_count'])) {
         $this->data['config_product_count'] = $this->request->post['config_product_count'];
     } else {
         $this->data['config_product_count'] = $this->config->get('config_product_count');
     }
     if (isset($this->request->post['config_review_status'])) {
         $this->data['config_review_status'] = $this->request->post['config_review_status'];
     } else {
         $this->data['config_review_status'] = $this->config->get('config_review_status');
     }
     if (isset($this->request->post['config_download'])) {
         $this->data['config_download'] = $this->request->post['config_download'];
     } else {
         $this->data['config_download'] = $this->config->get('config_download');
     }
     if (isset($this->request->post['config_voucher_min'])) {
         $this->data['config_voucher_min'] = $this->request->post['config_voucher_min'];
     } else {
         $this->data['config_voucher_min'] = $this->config->get('config_voucher_min');
     }
     if (isset($this->request->post['config_voucher_max'])) {
         $this->data['config_voucher_max'] = $this->request->post['config_voucher_max'];
     } else {
         $this->data['config_voucher_max'] = $this->config->get('config_voucher_max');
     }
     if (isset($this->request->post['config_tax'])) {
         $this->data['config_tax'] = $this->request->post['config_tax'];
     } else {
         $this->data['config_tax'] = $this->config->get('config_tax');
     }
     if (isset($this->request->post['config_vat'])) {
         $this->data['config_vat'] = $this->request->post['config_vat'];
     } else {
         $this->data['config_vat'] = $this->config->get('config_vat');
     }
     if (isset($this->request->post['config_tax_default'])) {
         $this->data['config_tax_default'] = $this->request->post['config_tax_default'];
     } else {
         $this->data['config_tax_default'] = $this->config->get('config_tax_default');
     }
     if (isset($this->request->post['config_tax_customer'])) {
         $this->data['config_tax_customer'] = $this->request->post['config_tax_customer'];
     } else {
         $this->data['config_tax_customer'] = $this->config->get('config_tax_customer');
     }
     if (isset($this->request->post['config_customer_online'])) {
         $this->data['config_customer_online'] = $this->request->post['config_customer_online'];
     } else {
         $this->data['config_customer_online'] = $this->config->get('config_customer_online');
     }
     if (isset($this->request->post['config_customer_group_id'])) {
         $this->data['config_customer_group_id'] = $this->request->post['config_customer_group_id'];
     } else {
         $this->data['config_customer_group_id'] = $this->config->get('config_customer_group_id');
     }
     $this->load->model('sale/customer_group');
     $this->data['customer_groups'] = $this->model_sale_customer_group->getCustomerGroups();
     if (isset($this->request->post['config_customer_group_display'])) {
         $this->data['config_customer_group_display'] = $this->request->post['config_customer_group_display'];
     } elseif ($this->config->get('config_customer_group_display')) {
         $this->data['config_customer_group_display'] = $this->config->get('config_customer_group_display');
     } else {
         $this->data['config_customer_group_display'] = array();
     }
     if (isset($this->request->post['config_customer_price'])) {
         $this->data['config_customer_price'] = $this->request->post['config_customer_price'];
     } else {
         $this->data['config_customer_price'] = $this->config->get('config_customer_price');
     }
     if (isset($this->request->post['config_account_id'])) {
         $this->data['config_account_id'] = $this->request->post['config_account_id'];
     } else {
         $this->data['config_account_id'] = $this->config->get('config_account_id');
     }
     $this->load->model('catalog/information');
     $this->data['informations'] = $this->model_catalog_information->getInformations();
     if (isset($this->request->post['config_cart_weight'])) {
         $this->data['config_cart_weight'] = $this->request->post['config_cart_weight'];
     } else {
         $this->data['config_cart_weight'] = $this->config->get('config_cart_weight');
     }
     if (isset($this->request->post['config_guest_checkout'])) {
         $this->data['config_guest_checkout'] = $this->request->post['config_guest_checkout'];
     } else {
         $this->data['config_guest_checkout'] = $this->config->get('config_guest_checkout');
     }
     if (isset($this->request->post['config_checkout_id'])) {
         $this->data['config_checkout_id'] = $this->request->post['config_checkout_id'];
     } else {
         $this->data['config_checkout_id'] = $this->config->get('config_checkout_id');
     }
     if (isset($this->request->post['config_order_edit'])) {
         $this->data['config_order_edit'] = $this->request->post['config_order_edit'];
     } elseif ($this->config->get('config_order_edit')) {
         $this->data['config_order_edit'] = $this->config->get('config_order_edit');
     } else {
         $this->data['config_order_edit'] = 7;
     }
     if (isset($this->request->post['config_invoice_prefix'])) {
         $this->data['config_invoice_prefix'] = $this->request->post['config_invoice_prefix'];
     } elseif ($this->config->get('config_invoice_prefix')) {
         $this->data['config_invoice_prefix'] = $this->config->get('config_invoice_prefix');
     } else {
         $this->data['config_invoice_prefix'] = 'INV-' . date('Y') . '-00';
     }
     if (isset($this->request->post['config_order_status_id'])) {
         $this->data['config_order_status_id'] = $this->request->post['config_order_status_id'];
     } else {
         $this->data['config_order_status_id'] = $this->config->get('config_order_status_id');
     }
     if (isset($this->request->post['config_complete_status_id'])) {
         $this->data['config_complete_status_id'] = $this->request->post['config_complete_status_id'];
     } else {
         $this->data['config_complete_status_id'] = $this->config->get('config_complete_status_id');
     }
     $this->load->model('localisation/order_status');
     $this->data['order_statuses'] = $this->model_localisation_order_status->getOrderStatuses();
     if (isset($this->request->post['config_stock_display'])) {
         $this->data['config_stock_display'] = $this->request->post['config_stock_display'];
     } else {
         $this->data['config_stock_display'] = $this->config->get('config_stock_display');
     }
     if (isset($this->request->post['config_stock_warning'])) {
         $this->data['config_stock_warning'] = $this->request->post['config_stock_warning'];
     } else {
         $this->data['config_stock_warning'] = $this->config->get('config_stock_warning');
     }
     if (isset($this->request->post['config_stock_checkout'])) {
         $this->data['config_stock_checkout'] = $this->request->post['config_stock_checkout'];
     } else {
         $this->data['config_stock_checkout'] = $this->config->get('config_stock_checkout');
     }
     if (isset($this->request->post['config_stock_status_id'])) {
         $this->data['config_stock_status_id'] = $this->request->post['config_stock_status_id'];
     } else {
         $this->data['config_stock_status_id'] = $this->config->get('config_stock_status_id');
     }
     $this->load->model('localisation/stock_status');
     $this->data['stock_statuses'] = $this->model_localisation_stock_status->getStockStatuses();
     if (isset($this->request->post['config_affiliate_id'])) {
         $this->data['config_affiliate_id'] = $this->request->post['config_affiliate_id'];
     } else {
         $this->data['config_affiliate_id'] = $this->config->get('config_affiliate_id');
     }
     if (isset($this->request->post['config_commission'])) {
         $this->data['config_commission'] = $this->request->post['config_commission'];
     } elseif ($this->config->has('config_commission')) {
         $this->data['config_commission'] = $this->config->get('config_commission');
     } else {
         $this->data['config_commission'] = '5.00';
     }
     if (isset($this->request->post['config_return_id'])) {
         $this->data['config_return_id'] = $this->request->post['config_return_id'];
     } else {
         $this->data['config_return_id'] = $this->config->get('config_return_id');
     }
     if (isset($this->request->post['config_return_status_id'])) {
         $this->data['config_return_status_id'] = $this->request->post['config_return_status_id'];
     } else {
         $this->data['config_return_status_id'] = $this->config->get('config_return_status_id');
     }
     $this->load->model('localisation/return_status');
     $this->data['return_statuses'] = $this->model_localisation_return_status->getReturnStatuses();
     $this->load->model('tool/image');
     if (isset($this->request->post['config_logo'])) {
         $this->data['config_logo'] = $this->request->post['config_logo'];
     } else {
         $this->data['config_logo'] = $this->config->get('config_logo');
     }
     if ($this->config->get('config_logo') && file_exists(DIR_IMAGE . $this->config->get('config_logo')) && is_file(DIR_IMAGE . $this->config->get('config_logo'))) {
         $this->data['logo'] = $this->model_tool_image->resize($this->config->get('config_logo'), 100, 100);
     } else {
         $this->data['logo'] = $this->model_tool_image->resize('no_image.jpg', 100, 100);
     }
     if (isset($this->request->post['config_icon'])) {
         $this->data['config_icon'] = $this->request->post['config_icon'];
     } else {
         $this->data['config_icon'] = $this->config->get('config_icon');
     }
     if ($this->config->get('config_icon') && file_exists(DIR_IMAGE . $this->config->get('config_icon')) && is_file(DIR_IMAGE . $this->config->get('config_icon'))) {
         $this->data['icon'] = $this->model_tool_image->resize($this->config->get('config_icon'), 100, 100);
     } else {
         $this->data['icon'] = $this->model_tool_image->resize('no_image.jpg', 100, 100);
     }
     $this->data['no_image'] = $this->model_tool_image->resize('no_image.jpg', 100, 100);
     if (isset($this->request->post['config_image_category_width'])) {
         $this->data['config_image_category_width'] = $this->request->post['config_image_category_width'];
     } else {
         $this->data['config_image_category_width'] = $this->config->get('config_image_category_width');
     }
     if (isset($this->request->post['config_image_category_height'])) {
         $this->data['config_image_category_height'] = $this->request->post['config_image_category_height'];
     } else {
         $this->data['config_image_category_height'] = $this->config->get('config_image_category_height');
     }
     if (isset($this->request->post['config_image_thumb_width'])) {
         $this->data['config_image_thumb_width'] = $this->request->post['config_image_thumb_width'];
     } else {
         $this->data['config_image_thumb_width'] = $this->config->get('config_image_thumb_width');
     }
     if (isset($this->request->post['config_image_thumb_height'])) {
         $this->data['config_image_thumb_height'] = $this->request->post['config_image_thumb_height'];
     } else {
         $this->data['config_image_thumb_height'] = $this->config->get('config_image_thumb_height');
     }
     if (isset($this->request->post['config_image_popup_width'])) {
         $this->data['config_image_popup_width'] = $this->request->post['config_image_popup_width'];
     } else {
         $this->data['config_image_popup_width'] = $this->config->get('config_image_popup_width');
     }
     if (isset($this->request->post['config_image_popup_height'])) {
         $this->data['config_image_popup_height'] = $this->request->post['config_image_popup_height'];
     } else {
         $this->data['config_image_popup_height'] = $this->config->get('config_image_popup_height');
     }
     if (isset($this->request->post['config_image_product_width'])) {
         $this->data['config_image_product_width'] = $this->request->post['config_image_product_width'];
     } else {
         $this->data['config_image_product_width'] = $this->config->get('config_image_product_width');
     }
     if (isset($this->request->post['config_image_product_height'])) {
         $this->data['config_image_product_height'] = $this->request->post['config_image_product_height'];
     } else {
         $this->data['config_image_product_height'] = $this->config->get('config_image_product_height');
     }
     if (isset($this->request->post['config_image_additional_width'])) {
         $this->data['config_image_additional_width'] = $this->request->post['config_image_additional_width'];
     } else {
         $this->data['config_image_additional_width'] = $this->config->get('config_image_additional_width');
     }
     if (isset($this->request->post['config_image_additional_height'])) {
         $this->data['config_image_additional_height'] = $this->request->post['config_image_additional_height'];
     } else {
         $this->data['config_image_additional_height'] = $this->config->get('config_image_additional_height');
     }
     if (isset($this->request->post['config_image_related_width'])) {
         $this->data['config_image_related_width'] = $this->request->post['config_image_related_width'];
     } else {
         $this->data['config_image_related_width'] = $this->config->get('config_image_related_width');
     }
     if (isset($this->request->post['config_image_related_height'])) {
         $this->data['config_image_related_height'] = $this->request->post['config_image_related_height'];
     } else {
         $this->data['config_image_related_height'] = $this->config->get('config_image_related_height');
     }
     if (isset($this->request->post['config_image_compare_width'])) {
         $this->data['config_image_compare_width'] = $this->request->post['config_image_compare_width'];
     } else {
         $this->data['config_image_compare_width'] = $this->config->get('config_image_compare_width');
     }
     if (isset($this->request->post['config_image_compare_height'])) {
         $this->data['config_image_compare_height'] = $this->request->post['config_image_compare_height'];
     } else {
         $this->data['config_image_compare_height'] = $this->config->get('config_image_compare_height');
     }
     if (isset($this->request->post['config_image_wishlist_width'])) {
         $this->data['config_image_wishlist_width'] = $this->request->post['config_image_wishlist_width'];
     } else {
         $this->data['config_image_wishlist_width'] = $this->config->get('config_image_wishlist_width');
     }
     if (isset($this->request->post['config_image_wishlist_height'])) {
         $this->data['config_image_wishlist_height'] = $this->request->post['config_image_wishlist_height'];
     } else {
         $this->data['config_image_wishlist_height'] = $this->config->get('config_image_wishlist_height');
     }
     if (isset($this->request->post['config_image_cart_width'])) {
         $this->data['config_image_cart_width'] = $this->request->post['config_image_cart_width'];
     } else {
         $this->data['config_image_cart_width'] = $this->config->get('config_image_cart_width');
     }
     if (isset($this->request->post['config_image_cart_height'])) {
         $this->data['config_image_cart_height'] = $this->request->post['config_image_cart_height'];
     } else {
         $this->data['config_image_cart_height'] = $this->config->get('config_image_cart_height');
     }
     if (isset($this->request->post['config_ftp_host'])) {
         $this->data['config_ftp_host'] = $this->request->post['config_ftp_host'];
     } elseif ($this->config->get('config_ftp_host')) {
         $this->data['config_ftp_host'] = $this->config->get('config_ftp_host');
     } else {
         $this->data['config_ftp_host'] = str_replace('www.', '', $this->request->server['HTTP_HOST']);
     }
     if (isset($this->request->post['config_ftp_port'])) {
         $this->data['config_ftp_port'] = $this->request->post['config_ftp_port'];
     } elseif ($this->config->get('config_ftp_port')) {
         $this->data['config_ftp_port'] = $this->config->get('config_ftp_port');
     } else {
         $this->data['config_ftp_port'] = 21;
     }
     if (isset($this->request->post['config_ftp_username'])) {
         $this->data['config_ftp_username'] = $this->request->post['config_ftp_username'];
     } else {
         $this->data['config_ftp_username'] = $this->config->get('config_ftp_username');
     }
     if (isset($this->request->post['config_ftp_password'])) {
         $this->data['config_ftp_password'] = $this->request->post['config_ftp_password'];
     } else {
         $this->data['config_ftp_password'] = $this->config->get('config_ftp_password');
     }
     if (isset($this->request->post['config_ftp_root'])) {
         $this->data['config_ftp_root'] = $this->request->post['config_ftp_root'];
     } else {
         $this->data['config_ftp_root'] = $this->config->get('config_ftp_root');
     }
     if (isset($this->request->post['config_ftp_status'])) {
         $this->data['config_ftp_status'] = $this->request->post['config_ftp_status'];
     } else {
         $this->data['config_ftp_status'] = $this->config->get('config_ftp_status');
     }
     if (isset($this->request->post['config_mail_protocol'])) {
         $this->data['config_mail_protocol'] = $this->request->post['config_mail_protocol'];
     } else {
         $this->data['config_mail_protocol'] = $this->config->get('config_mail_protocol');
     }
     if (isset($this->request->post['config_mail_parameter'])) {
         $this->data['config_mail_parameter'] = $this->request->post['config_mail_parameter'];
     } else {
         $this->data['config_mail_parameter'] = $this->config->get('config_mail_parameter');
     }
     if (isset($this->request->post['config_smtp_host'])) {
         $this->data['config_smtp_host'] = $this->request->post['config_smtp_host'];
     } else {
         $this->data['config_smtp_host'] = $this->config->get('config_smtp_host');
     }
     if (isset($this->request->post['config_smtp_username'])) {
         $this->data['config_smtp_username'] = $this->request->post['config_smtp_username'];
     } else {
         $this->data['config_smtp_username'] = $this->config->get('config_smtp_username');
     }
     if (isset($this->request->post['config_smtp_password'])) {
         $this->data['config_smtp_password'] = $this->request->post['config_smtp_password'];
     } else {
         $this->data['config_smtp_password'] = $this->config->get('config_smtp_password');
     }
     if (isset($this->request->post['config_smtp_port'])) {
         $this->data['config_smtp_port'] = $this->request->post['config_smtp_port'];
     } elseif ($this->config->get('config_smtp_port')) {
         $this->data['config_smtp_port'] = $this->config->get('config_smtp_port');
     } else {
         $this->data['config_smtp_port'] = 25;
     }
     if (isset($this->request->post['config_smtp_timeout'])) {
         $this->data['config_smtp_timeout'] = $this->request->post['config_smtp_timeout'];
     } elseif ($this->config->get('config_smtp_timeout')) {
         $this->data['config_smtp_timeout'] = $this->config->get('config_smtp_timeout');
     } else {
         $this->data['config_smtp_timeout'] = 5;
     }
     if (isset($this->request->post['config_alert_mail'])) {
         $this->data['config_alert_mail'] = $this->request->post['config_alert_mail'];
     } else {
         $this->data['config_alert_mail'] = $this->config->get('config_alert_mail');
     }
     if (isset($this->request->post['config_account_mail'])) {
         $this->data['config_account_mail'] = $this->request->post['config_account_mail'];
     } else {
         $this->data['config_account_mail'] = $this->config->get('config_account_mail');
     }
     if (isset($this->request->post['config_alert_emails'])) {
         $this->data['config_alert_emails'] = $this->request->post['config_alert_emails'];
     } else {
         $this->data['config_alert_emails'] = $this->config->get('config_alert_emails');
     }
     if (isset($this->request->post['config_fraud_detection'])) {
         $this->data['config_fraud_detection'] = $this->request->post['config_fraud_detection'];
     } else {
         $this->data['config_fraud_detection'] = $this->config->get('config_fraud_detection');
     }
     if (isset($this->request->post['config_fraud_key'])) {
         $this->data['config_fraud_key'] = $this->request->post['config_fraud_key'];
     } else {
         $this->data['config_fraud_key'] = $this->config->get('config_fraud_key');
     }
     if (isset($this->request->post['config_fraud_score'])) {
         $this->data['config_fraud_score'] = $this->request->post['config_fraud_score'];
     } else {
         $this->data['config_fraud_score'] = $this->config->get('config_fraud_score');
     }
     if (isset($this->request->post['config_fraud_status_id'])) {
         $this->data['config_fraud_status_id'] = $this->request->post['config_fraud_status_id'];
     } else {
         $this->data['config_fraud_status_id'] = $this->config->get('config_fraud_status_id');
     }
     if (isset($this->request->post['config_secure'])) {
         $this->data['config_secure'] = $this->request->post['config_secure'];
     } else {
         $this->data['config_secure'] = $this->config->get('config_secure');
     }
     if (isset($this->request->post['config_shared'])) {
         $this->data['config_shared'] = $this->request->post['config_shared'];
     } else {
         $this->data['config_shared'] = $this->config->get('config_shared');
     }
     if (isset($this->request->post['config_robots'])) {
         $this->data['config_robots'] = $this->request->post['config_robots'];
     } else {
         $this->data['config_robots'] = $this->config->get('config_robots');
     }
     if (isset($this->request->post['config_seo_url'])) {
         $this->data['config_seo_url'] = $this->request->post['config_seo_url'];
     } else {
         $this->data['config_seo_url'] = $this->config->get('config_seo_url');
     }
     if (isset($this->request->post['config_file_extension_allowed'])) {
         $this->data['config_file_extension_allowed'] = $this->request->post['config_file_extension_allowed'];
     } else {
         $this->data['config_file_extension_allowed'] = $this->config->get('config_file_extension_allowed');
     }
     if (isset($this->request->post['config_file_mime_allowed'])) {
         $this->data['config_file_mime_allowed'] = $this->request->post['config_file_mime_allowed'];
     } else {
         $this->data['config_file_mime_allowed'] = $this->config->get('config_file_mime_allowed');
     }
     if (isset($this->request->post['config_maintenance'])) {
         $this->data['config_maintenance'] = $this->request->post['config_maintenance'];
     } else {
         $this->data['config_maintenance'] = $this->config->get('config_maintenance');
     }
     if (isset($this->request->post['config_password'])) {
         $this->data['config_password'] = $this->request->post['config_password'];
     } else {
         $this->data['config_password'] = $this->config->get('config_password');
     }
     if (isset($this->request->post['config_encryption'])) {
         $this->data['config_encryption'] = $this->request->post['config_encryption'];
     } else {
         $this->data['config_encryption'] = $this->config->get('config_encryption');
     }
     if (isset($this->request->post['config_compression'])) {
         $this->data['config_compression'] = $this->request->post['config_compression'];
     } else {
         $this->data['config_compression'] = $this->config->get('config_compression');
     }
     if (isset($this->request->post['config_error_display'])) {
         $this->data['config_error_display'] = $this->request->post['config_error_display'];
     } else {
         $this->data['config_error_display'] = $this->config->get('config_error_display');
     }
     if (isset($this->request->post['config_error_log'])) {
         $this->data['config_error_log'] = $this->request->post['config_error_log'];
     } else {
         $this->data['config_error_log'] = $this->config->get('config_error_log');
     }
     if (isset($this->request->post['config_error_filename'])) {
         $this->data['config_error_filename'] = $this->request->post['config_error_filename'];
     } else {
         $this->data['config_error_filename'] = $this->config->get('config_error_filename');
     }
     if (isset($this->request->post['config_google_analytics'])) {
         $this->data['config_google_analytics'] = $this->request->post['config_google_analytics'];
     } else {
         $this->data['config_google_analytics'] = $this->config->get('config_google_analytics');
     }
     $this->template = 'setting/setting.tpl';
     $this->children = array('common/header', 'common/footer');
     $this->response->setOutput($this->render());
 }
 /**
  *Ajax advanced search ends
  */
 public function index()
 {
     /**
      *Ajax advanced search starts
      */
     $this->document->addStyle('view/javascript/colorpicker/css/colorpicker.css');
     $this->document->addScript('view/javascript/colorpicker/js/colorpicker.js');
     /**
      *Ajax advanced search ends
      */
     $this->load->language('setting/setting');
     $this->document->setTitle($this->language->get('heading_title'));
     $this->load->model('setting/setting');
     if ($this->request->server['REQUEST_METHOD'] == 'POST' && $this->validate()) {
         $this->model_setting_setting->editSetting('config', $this->request->post);
         /* loo functions begin */
         function loo_parse_queries($file)
         {
             $sql_file = $file;
             $contents = file_get_contents($sql_file);
             $comment_patterns = array('/\\/\\*.*(\\n)*.*(\\*\\/)?/', '/\\s*--.*\\n/', '/\\s*#.*\\n/');
             $contents = preg_replace($comment_patterns, "\n", $contents);
             $contents = preg_replace('/(?<=t);(?=\\n)/', "{{semicolon_in_text}}", $contents);
             $statements = explode(";\n", $contents);
             //    $statements = preg_replace("/\s/", ' ', $statements);
             $queries = array();
             foreach ($statements as $query) {
                 if (trim($query) != '') {
                     $query = str_replace("{{semicolon_in_text}}", ";", $query);
                     //apply db prefix parametr
                     preg_match("/\\?:\\w*/i", $query, $matches);
                     if (isset($matches[0])) {
                         $table_name = str_replace('?:', DB_PREFIX, $matches[0]);
                     }
                     if (!empty($table_name)) {
                         if (isset($matches[0])) {
                             $query = str_replace(array($matches[0], 'key = '), array($table_name, '`key` = '), $query);
                         }
                     }
                     $queries[] = $query;
                 }
             }
             return $queries;
         }
         /* loo functions end */
         // LOO
         if (file_exists(DIR_CATALOG . 'view/theme/' . $this->request->post['config_template'] . '/install.sql')) {
             $tmpl_dir = dirname(DIR_CATALOG . 'view/theme/' . $this->request->post['config_template'] . '/install.sql');
             if ((bool) stristr($tmpl_dir, $this->config->get('config_template')) == false) {
                 // Parse and Run sql
                 $sql = loo_parse_queries(DIR_CATALOG . 'view/theme/' . $this->request->post['config_template'] . '/install.sql');
                 foreach ($sql as $query) {
                     $this->db->query($query);
                 }
             }
         }
         // LOO (end)
         if ($this->config->get('config_currency_auto')) {
             $this->load->model('localisation/currency');
             $this->model_localisation_currency->refresh();
         }
         $this->session->data['success'] = $this->language->get('text_success');
         $this->response->redirect($this->url->link('setting/setting', 'token=' . $this->session->data['token'], 'SSL'));
     }
     $data['heading_title'] = $this->language->get('heading_title');
     $data['text_edit'] = $this->language->get('text_edit');
     $data['text_enabled'] = $this->language->get('text_enabled');
     $data['text_disabled'] = $this->language->get('text_disabled');
     $data['text_select'] = $this->language->get('text_select');
     $data['text_none'] = $this->language->get('text_none');
     $data['text_yes'] = $this->language->get('text_yes');
     $data['text_no'] = $this->language->get('text_no');
     $data['text_product'] = $this->language->get('text_product');
     $data['text_review'] = $this->language->get('text_review');
     $data['text_voucher'] = $this->language->get('text_voucher');
     $data['text_tax'] = $this->language->get('text_tax');
     $data['text_account'] = $this->language->get('text_account');
     $data['text_checkout'] = $this->language->get('text_checkout');
     $data['text_stock'] = $this->language->get('text_stock');
     $data['text_affiliate'] = $this->language->get('text_affiliate');
     $data['text_return'] = $this->language->get('text_return');
     $data['text_captcha'] = $this->language->get('text_captcha');
     $data['text_register'] = $this->language->get('text_register');
     $data['text_shipping'] = $this->language->get('text_shipping');
     $data['text_payment'] = $this->language->get('text_payment');
     $data['text_mail'] = $this->language->get('text_mail');
     $data['text_smtp'] = $this->language->get('text_smtp');
     $data['text_general'] = $this->language->get('text_general');
     $data['text_security'] = $this->language->get('text_security');
     $data['text_upload'] = $this->language->get('text_upload');
     $data['text_error'] = $this->language->get('text_error');
     $data['text_google_analytics'] = $this->language->get('text_google_analytics');
     $data['text_google_captcha'] = $this->language->get('text_google_captcha');
     $data['entry_fraud_detection'] = $this->language->get('entry_fraud_detection');
     $data['entry_fraud_key'] = $this->language->get('entry_fraud_key');
     $data['entry_fraud_score'] = $this->language->get('entry_fraud_score');
     $data['entry_fraud_status'] = $this->language->get('entry_fraud_status');
     $data['entry_google_analytics'] = $this->language->get('entry_google_analytics');
     $data['entry_google_captcha_public'] = $this->language->get('entry_google_captcha_public');
     $data['entry_google_captcha_secret'] = $this->language->get('entry_google_captcha_secret');
     $data['help_fraud_detection'] = $this->language->get('help_fraud_detection');
     $data['help_fraud_score'] = $this->language->get('help_fraud_score');
     $data['help_fraud_status'] = $this->language->get('help_fraud_status');
     $data['help_google_analytics'] = $this->language->get('help_google_analytics');
     $data['entry_paypal_merchant'] = $this->language->get('entry_paypal_merchant');
     $data['help_google_captcha'] = $this->language->get('help_google_captcha');
     $data['tab_fraud'] = $this->language->get('tab_fraud');
     $data['tab_google'] = $this->language->get('tab_google');
     $data['entry_name'] = $this->language->get('entry_name');
     $data['entry_owner'] = $this->language->get('entry_owner');
     $data['entry_address'] = $this->language->get('entry_address');
     $data['entry_geocode'] = $this->language->get('entry_geocode');
     $data['entry_email'] = $this->language->get('entry_email');
     $data['entry_telephone'] = $this->language->get('entry_telephone');
     $data['entry_fax'] = $this->language->get('entry_fax');
     $data['entry_image'] = $this->language->get('entry_image');
     $data['entry_open'] = $this->language->get('entry_open');
     $data['entry_comment'] = $this->language->get('entry_comment');
     $data['entry_location'] = $this->language->get('entry_location');
     $data['entry_meta_title'] = $this->language->get('entry_meta_title');
     $data['entry_meta_description'] = $this->language->get('entry_meta_description');
     $data['entry_meta_keyword'] = $this->language->get('entry_meta_keyword');
     $data['entry_layout'] = $this->language->get('entry_layout');
     $data['entry_template'] = $this->language->get('entry_template');
     $data['entry_country'] = $this->language->get('entry_country');
     $data['entry_zone'] = $this->language->get('entry_zone');
     $data['entry_language'] = $this->language->get('entry_language');
     $data['entry_admin_language'] = $this->language->get('entry_admin_language');
     $data['entry_currency'] = $this->language->get('entry_currency');
     $data['entry_currency_auto'] = $this->language->get('entry_currency_auto');
     $data['entry_length_class'] = $this->language->get('entry_length_class');
     $data['entry_weight_class'] = $this->language->get('entry_weight_class');
     $data['entry_product_limit'] = $this->language->get('entry_product_limit');
     $data['entry_product_description_length'] = $this->language->get('entry_product_description_length');
     $data['entry_limit_admin'] = $this->language->get('entry_limit_admin');
     $data['entry_product_count'] = $this->language->get('entry_product_count');
     $data['entry_review'] = $this->language->get('entry_review');
     $data['entry_review_guest'] = $this->language->get('entry_review_guest');
     $data['entry_review_mail'] = $this->language->get('entry_review_mail');
     $data['entry_voucher_min'] = $this->language->get('entry_voucher_min');
     $data['entry_voucher_max'] = $this->language->get('entry_voucher_max');
     $data['entry_tax'] = $this->language->get('entry_tax');
     $data['entry_tax_default'] = $this->language->get('entry_tax_default');
     $data['entry_tax_customer'] = $this->language->get('entry_tax_customer');
     $data['entry_customer_online'] = $this->language->get('entry_customer_online');
     $data['entry_customer_group'] = $this->language->get('entry_customer_group');
     $data['entry_customer_group_display'] = $this->language->get('entry_customer_group_display');
     $data['entry_customer_price'] = $this->language->get('entry_customer_price');
     $data['entry_login_attempts'] = $this->language->get('entry_login_attempts');
     $data['entry_account'] = $this->language->get('entry_account');
     $data['entry_account_mail'] = $this->language->get('entry_account_mail');
     $data['entry_invoice_prefix'] = $this->language->get('entry_invoice_prefix');
     $data['entry_cart_weight'] = $this->language->get('entry_cart_weight');
     $data['entry_checkout_guest'] = $this->language->get('entry_checkout_guest');
     $data['entry_checkout'] = $this->language->get('entry_checkout');
     $data['entry_order_status'] = $this->language->get('entry_order_status');
     $data['entry_processing_status'] = $this->language->get('entry_processing_status');
     $data['entry_complete_status'] = $this->language->get('entry_complete_status');
     $data['entry_fraud_status'] = $this->language->get('entry_fraud_status');
     $data['entry_order_mail'] = $this->language->get('entry_order_mail');
     $data['entry_api'] = $this->language->get('entry_api');
     $data['entry_stock_display'] = $this->language->get('entry_stock_display');
     $data['entry_stock_warning'] = $this->language->get('entry_stock_warning');
     $data['entry_stock_checkout'] = $this->language->get('entry_stock_checkout');
     $data['entry_affiliate_approval'] = $this->language->get('entry_affiliate_approval');
     $data['entry_affiliate_auto'] = $this->language->get('entry_affiliate_auto');
     $data['entry_affiliate_commission'] = $this->language->get('entry_affiliate_commission');
     $data['entry_affiliate'] = $this->language->get('entry_affiliate');
     $data['entry_affiliate_mail'] = $this->language->get('entry_affiliate_mail');
     $data['entry_return'] = $this->language->get('entry_return');
     $data['entry_return_status'] = $this->language->get('entry_return_status');
     $data['entry_captcha'] = $this->language->get('entry_captcha');
     $data['entry_captcha_page'] = $this->language->get('entry_captcha_page');
     $data['entry_logo'] = $this->language->get('entry_logo');
     $data['entry_logo_admin'] = $this->language->get('entry_logo_admin');
     $data['entry_icon'] = $this->language->get('entry_icon');
     $data['entry_image_category'] = $this->language->get('entry_image_category');
     $data['entry_image_thumb'] = $this->language->get('entry_image_thumb');
     $data['entry_image_popup'] = $this->language->get('entry_image_popup');
     $data['entry_image_product'] = $this->language->get('entry_image_product');
     $data['entry_image_additional'] = $this->language->get('entry_image_additional');
     $data['entry_image_related'] = $this->language->get('entry_image_related');
     $data['entry_image_compare'] = $this->language->get('entry_image_compare');
     $data['entry_image_wishlist'] = $this->language->get('entry_image_wishlist');
     $data['entry_image_cart'] = $this->language->get('entry_image_cart');
     $data['entry_image_location'] = $this->language->get('entry_image_location');
     $data['entry_width'] = $this->language->get('entry_width');
     $data['entry_height'] = $this->language->get('entry_height');
     $data['entry_ftp_hostname'] = $this->language->get('entry_ftp_hostname');
     $data['entry_ftp_port'] = $this->language->get('entry_ftp_port');
     $data['entry_ftp_username'] = $this->language->get('entry_ftp_username');
     $data['entry_ftp_password'] = $this->language->get('entry_ftp_password');
     $data['entry_ftp_root'] = $this->language->get('entry_ftp_root');
     $data['entry_ftp_status'] = $this->language->get('entry_ftp_status');
     $data['entry_mail_protocol'] = $this->language->get('entry_mail_protocol');
     $data['entry_mail_parameter'] = $this->language->get('entry_mail_parameter');
     $data['entry_mail_smtp_hostname'] = $this->language->get('entry_mail_smtp_hostname');
     $data['entry_mail_smtp_username'] = $this->language->get('entry_mail_smtp_username');
     $data['entry_mail_smtp_password'] = $this->language->get('entry_mail_smtp_password');
     $data['entry_mail_smtp_port'] = $this->language->get('entry_mail_smtp_port');
     $data['entry_mail_smtp_timeout'] = $this->language->get('entry_mail_smtp_timeout');
     $data['entry_mail_alert'] = $this->language->get('entry_mail_alert');
     $data['entry_secure'] = $this->language->get('entry_secure');
     $data['entry_shared'] = $this->language->get('entry_shared');
     $data['entry_robots'] = $this->language->get('entry_robots');
     $data['entry_file_max_size'] = $this->language->get('entry_file_max_size');
     $data['entry_file_ext_allowed'] = $this->language->get('entry_file_ext_allowed');
     $data['entry_file_mime_allowed'] = $this->language->get('entry_file_mime_allowed');
     $data['entry_maintenance'] = $this->language->get('entry_maintenance');
     $data['entry_password'] = $this->language->get('entry_password');
     $data['entry_encryption'] = $this->language->get('entry_encryption');
     $data['entry_seo_url'] = $this->language->get('entry_seo_url');
     $data['entry_compression'] = $this->language->get('entry_compression');
     $data['entry_error_display'] = $this->language->get('entry_error_display');
     $data['entry_error_log'] = $this->language->get('entry_error_log');
     $data['entry_error_filename'] = $this->language->get('entry_error_filename');
     $data['entry_status'] = $this->language->get('entry_status');
     $data['help_geocode'] = $this->language->get('help_geocode');
     $data['help_open'] = $this->language->get('help_open');
     $data['help_comment'] = $this->language->get('help_comment');
     $data['help_location'] = $this->language->get('help_location');
     $data['help_currency'] = $this->language->get('help_currency');
     $data['help_currency_auto'] = $this->language->get('help_currency_auto');
     $data['help_product_limit'] = $this->language->get('help_product_limit');
     $data['help_product_description_length'] = $this->language->get('help_product_description_length');
     $data['help_limit_admin'] = $this->language->get('help_limit_admin');
     $data['help_product_count'] = $this->language->get('help_product_count');
     $data['help_review'] = $this->language->get('help_review');
     $data['help_review_guest'] = $this->language->get('help_review_guest');
     $data['help_review_mail'] = $this->language->get('help_review_mail');
     $data['help_voucher_min'] = $this->language->get('help_voucher_min');
     $data['help_voucher_max'] = $this->language->get('help_voucher_max');
     $data['help_tax_default'] = $this->language->get('help_tax_default');
     $data['help_tax_customer'] = $this->language->get('help_tax_customer');
     $data['help_customer_online'] = $this->language->get('help_customer_online');
     $data['help_customer_group'] = $this->language->get('help_customer_group');
     $data['help_customer_group_display'] = $this->language->get('help_customer_group_display');
     $data['help_customer_price'] = $this->language->get('help_customer_price');
     $data['help_login_attempts'] = $this->language->get('help_login_attempts');
     $data['help_account'] = $this->language->get('help_account');
     $data['help_account_mail'] = $this->language->get('help_account_mail');
     $data['help_cart_weight'] = $this->language->get('help_cart_weight');
     $data['help_checkout_guest'] = $this->language->get('help_checkout_guest');
     $data['help_checkout'] = $this->language->get('help_checkout');
     $data['help_invoice_prefix'] = $this->language->get('help_invoice_prefix');
     $data['help_order_status'] = $this->language->get('help_order_status');
     $data['help_processing_status'] = $this->language->get('help_processing_status');
     $data['help_complete_status'] = $this->language->get('help_complete_status');
     $data['help_fraud_status'] = $this->language->get('help_fraud_status');
     $data['help_order_mail'] = $this->language->get('help_order_mail');
     $data['help_api'] = $this->language->get('help_api');
     $data['help_stock_display'] = $this->language->get('help_stock_display');
     $data['help_stock_warning'] = $this->language->get('help_stock_warning');
     $data['help_stock_checkout'] = $this->language->get('help_stock_checkout');
     $data['help_affiliate_approval'] = $this->language->get('help_affiliate_approval');
     $data['help_affiliate_auto'] = $this->language->get('help_affiliate_auto');
     $data['help_affiliate_commission'] = $this->language->get('help_affiliate_commission');
     $data['help_affiliate'] = $this->language->get('help_affiliate');
     $data['help_affiliate_mail'] = $this->language->get('help_affiliate_mail');
     $data['help_commission'] = $this->language->get('help_commission');
     $data['help_return'] = $this->language->get('help_return');
     $data['help_return_status'] = $this->language->get('help_return_status');
     $data['help_captcha'] = $this->language->get('help_captcha');
     $data['help_icon'] = $this->language->get('help_icon');
     $data['help_ftp_root'] = $this->language->get('help_ftp_root');
     $data['help_mail_protocol'] = $this->language->get('help_mail_protocol');
     $data['help_mail_parameter'] = $this->language->get('help_mail_parameter');
     $data['help_mail_smtp_hostname'] = $this->language->get('help_mail_smtp_hostname');
     $data['help_mail_alert'] = $this->language->get('help_mail_alert');
     $data['help_secure'] = $this->language->get('help_secure');
     $data['help_shared'] = $this->language->get('help_shared');
     $data['help_robots'] = $this->language->get('help_robots');
     $data['help_seo_url'] = $this->language->get('help_seo_url');
     $data['help_file_max_size'] = $this->language->get('help_file_max_size');
     $data['help_file_ext_allowed'] = $this->language->get('help_file_ext_allowed');
     $data['help_file_mime_allowed'] = $this->language->get('help_file_mime_allowed');
     $data['help_maintenance'] = $this->language->get('help_maintenance');
     $data['help_password'] = $this->language->get('help_password');
     $data['help_encryption'] = $this->language->get('help_encryption');
     $data['help_compression'] = $this->language->get('help_compression');
     $data['button_save'] = $this->language->get('button_save');
     $data['button_cancel'] = $this->language->get('button_cancel');
     $data['tab_general'] = $this->language->get('tab_general');
     $data['tab_store'] = $this->language->get('tab_store');
     $data['tab_local'] = $this->language->get('tab_local');
     $data['tab_option'] = $this->language->get('tab_option');
     $data['tab_image'] = $this->language->get('tab_image');
     $data['tab_ftp'] = $this->language->get('tab_ftp');
     $data['tab_mail'] = $this->language->get('tab_mail');
     $data['tab_server'] = $this->language->get('tab_server');
     /**
      *Ajax advanced search starts
      */
     $data['tab_ajaxadvancedsearch'] = $this->language->get('tab_ajaxadvancedsearch');
     $data['text_ajaxadvancedsearch'] = $this->language->get('text_ajaxadvancedsearch');
     $data['text_display_image'] = $this->language->get('text_display_image');
     $data['text_ajaxadvancedsearch_limit'] = $this->language->get('text_ajaxadvancedsearch_limit');
     $data['help_ajaxadvancedsearch_limit'] = $this->language->get('help_ajaxadvancedsearch_limit');
     $data['help_ajaxadvancedsearch_charlimit'] = $this->language->get('help_ajaxadvancedsearch_charlimit');
     $data['text_display_model'] = $this->language->get('text_display_model');
     $data['text_display_manufacturer'] = $this->language->get('text_display_manufacturer');
     $data['text_display_price'] = $this->language->get('text_display_price');
     /**Customer group price show starts*/
     $data['text_display_price_customergroups'] = $this->language->get('text_display_price_customergroups');
     $data['help_display_price_customergroups'] = $this->language->get('help_display_price_customergroups');
     $data['text_login_display_price'] = $this->language->get('text_login_display_price');
     $data['help_login_display_price'] = $this->language->get('help_login_display_price');
     /**Customer group price show ends*/
     $data['text_display_rating'] = $this->language->get('text_display_rating');
     $data['text_display_stock'] = $this->language->get('text_display_stock');
     $data['text_search_model'] = $this->language->get('text_search_model');
     $data['text_search_tag'] = $this->language->get('text_search_tag');
     $data['text_search_mpn'] = $this->language->get('text_search_mpn');
     $data['text_search_manufacturer'] = $this->language->get('text_search_manufacturer');
     $data['text_search_isbn'] = $this->language->get('text_search_isbn');
     $data['text_search_jan'] = $this->language->get('text_search_jan');
     $data['text_search_ean'] = $this->language->get('text_search_ean');
     $data['text_search_upc'] = $this->language->get('text_search_upc');
     $data['text_search_sku'] = $this->language->get('text_search_sku');
     $data['text_highlight'] = $this->language->get('text_highlight');
     $data['text_highlight_sepeate'] = $this->language->get('text_highlight_sepeate');
     $data['text_highlight_combine'] = $this->language->get('text_highlight_combine');
     $data['text_highlight_no'] = $this->language->get('text_highlight_no');
     $data['text_enabled'] = $this->language->get('text_enabled');
     $data['text_disabled'] = $this->language->get('text_disabled');
     $data['text_imagesize'] = $this->language->get('text_imagesize');
     $data['help_imagesize'] = $this->language->get('help_imagesize');
     /** 26-01-2014 starts */
     $data['help_colorpicker'] = $this->language->get('help_colorpicker');
     $data['text_colorheading'] = $this->language->get('text_colorheading');
     $data['text_colorheadinghover'] = $this->language->get('text_colorheadinghover');
     $data['text_colormodel'] = $this->language->get('text_colormodel');
     $data['text_colormodelhover'] = $this->language->get('text_colormodelhover');
     $data['text_colormanufacturer'] = $this->language->get('text_colormanufacturer');
     $data['text_colormanufacturerhover'] = $this->language->get('text_colormanufacturerhover');
     $data['text_colorprice'] = $this->language->get('text_colorprice');
     $data['text_colorpricehover'] = $this->language->get('text_colorpricehover');
     $data['text_colorstockstatus'] = $this->language->get('text_colorstockstatus');
     $data['text_colorstockstatushover'] = $this->language->get('text_colorstockstatushover');
     $data['text_colorquantity'] = $this->language->get('text_colorquantity');
     $data['text_colorquantityhover'] = $this->language->get('text_colorquantityhover');
     $data['text_colorresult'] = $this->language->get('text_colorresult');
     $data['text_colorresulthover'] = $this->language->get('text_colorresulthover');
     $data['text_colorresultodd'] = $this->language->get('text_colorresultodd');
     $data['text_colorresulteven'] = $this->language->get('text_colorresulteven');
     $data['text_colordefaultall'] = $this->language->get('text_colordefaultall');
     $data['help_colordefaultall'] = $this->language->get('help_colordefaultall');
     $data['text_colorenabletall'] = $this->language->get('text_colorenabletall');
     $data['help_colorenableall'] = $this->language->get('help_colorenableall');
     $data['text_colordefault'] = $this->language->get('text_colordefault');
     $data['text_colordefaulthover'] = $this->language->get('text_colordefaulthover');
     $data['text_display_quantity'] = $this->language->get('text_display_quantity');
     $data['text_ajaxadvancedsearch_charlimit'] = $this->language->get('text_ajaxadvancedsearch_charlimit');
     $data['text_display_query'] = $this->language->get('text_display_query');
     $data['help_display_query'] = $this->language->get('help_display_query');
     $data['text_result_view'] = $this->language->get('text_result_view');
     $data['text_result_viewborder'] = $this->language->get('text_result_viewborder');
     $data['text_result_viewbottom'] = $this->language->get('text_result_viewbottom');
     $data['text_colorhighlight'] = $this->language->get('text_colorhighlight');
     $data['text_colorhighlighthover'] = $this->language->get('text_colorhighlighthover');
     $data['tab_ajaxadvancedsearchgeneral'] = $this->language->get('tab_ajaxadvancedsearchgeneral');
     $data['tab_ajaxadvancedsearchsearch'] = $this->language->get('tab_ajaxadvancedsearchsearch');
     $data['tab_ajaxadvancedsearchshow'] = $this->language->get('tab_ajaxadvancedsearchshow');
     $data['tab_ajaxadvancedsearchcolors'] = $this->language->get('tab_ajaxadvancedsearchcolors');
     /** 26-01-2014 ends */
     $data['text_imagewidth'] = $this->language->get('text_imagewidth');
     $data['text_imageheight'] = $this->language->get('text_imageheight');
     if (isset($this->error['config_ajaxadvancedsearch_image'])) {
         $data['error_config_ajaxadvancedsearch_image'] = $this->error['config_ajaxadvancedsearch_image'];
     } else {
         $data['error_config_ajaxadvancedsearch_image'] = '';
     }
     /** customer group price show starts */
     $data['ajaxadvance_customergroup'] = array();
     $this->load->model('sale/customer_group');
     $data['ajaxadvance_customergroups'] = $this->model_sale_customer_group->getCustomerGroups();
     /** customer group price show ends */
     /**
      *Ajax advanced search ends
      */
     if (isset($this->error['warning'])) {
         $data['error_warning'] = $this->error['warning'];
     } else {
         $data['error_warning'] = '';
     }
     if (isset($this->error['name'])) {
         $data['error_name'] = $this->error['name'];
     } else {
         $data['error_name'] = '';
     }
     if (isset($this->error['owner'])) {
         $data['error_owner'] = $this->error['owner'];
     } else {
         $data['error_owner'] = '';
     }
     if (isset($this->error['address'])) {
         $data['error_address'] = $this->error['address'];
     } else {
         $data['error_address'] = '';
     }
     if (isset($this->error['email'])) {
         $data['error_email'] = $this->error['email'];
     } else {
         $data['error_email'] = '';
     }
     if (isset($this->error['telephone'])) {
         $data['error_telephone'] = $this->error['telephone'];
     } else {
         $data['error_telephone'] = '';
     }
     if (isset($this->error['paypal_merchant'])) {
         $data['error_paypal_merchant'] = $this->error['paypal_merchant'];
     } else {
         $data['error_paypal_merchant'] = '';
     }
     if (isset($this->error['meta_title'])) {
         $data['error_meta_title'] = $this->error['meta_title'];
     } else {
         $data['error_meta_title'] = '';
     }
     if (isset($this->error['country'])) {
         $data['error_country'] = $this->error['country'];
     } else {
         $data['error_country'] = '';
     }
     if (isset($this->error['zone'])) {
         $data['error_zone'] = $this->error['zone'];
     } else {
         $data['error_zone'] = '';
     }
     if (isset($this->error['customer_group_display'])) {
         $data['error_customer_group_display'] = $this->error['customer_group_display'];
     } else {
         $data['error_customer_group_display'] = '';
     }
     if (isset($this->error['login_attempts'])) {
         $data['error_login_attempts'] = $this->error['login_attempts'];
     } else {
         $data['error_login_attempts'] = '';
     }
     if (isset($this->error['voucher_min'])) {
         $data['error_voucher_min'] = $this->error['voucher_min'];
     } else {
         $data['error_voucher_min'] = '';
     }
     if (isset($this->error['voucher_max'])) {
         $data['error_voucher_max'] = $this->error['voucher_max'];
     } else {
         $data['error_voucher_max'] = '';
     }
     if (isset($this->error['processing_status'])) {
         $data['error_processing_status'] = $this->error['processing_status'];
     } else {
         $data['error_processing_status'] = '';
     }
     if (isset($this->error['complete_status'])) {
         $data['error_complete_status'] = $this->error['complete_status'];
     } else {
         $data['error_complete_status'] = '';
     }
     if (isset($this->error['ftp_hostname'])) {
         $data['error_ftp_hostname'] = $this->error['ftp_hostname'];
     } else {
         $data['error_ftp_hostname'] = '';
     }
     if (isset($this->error['ftp_port'])) {
         $data['error_ftp_port'] = $this->error['ftp_port'];
     } else {
         $data['error_ftp_port'] = '';
     }
     if (isset($this->error['ftp_username'])) {
         $data['error_ftp_username'] = $this->error['ftp_username'];
     } else {
         $data['error_ftp_username'] = '';
     }
     if (isset($this->error['ftp_password'])) {
         $data['error_ftp_password'] = $this->error['ftp_password'];
     } else {
         $data['error_ftp_password'] = '';
     }
     if (isset($this->error['image_category'])) {
         $data['error_image_category'] = $this->error['image_category'];
     } else {
         $data['error_image_category'] = '';
     }
     if (isset($this->error['image_thumb'])) {
         $data['error_image_thumb'] = $this->error['image_thumb'];
     } else {
         $data['error_image_thumb'] = '';
     }
     if (isset($this->error['image_popup'])) {
         $data['error_image_popup'] = $this->error['image_popup'];
     } else {
         $data['error_image_popup'] = '';
     }
     if (isset($this->error['image_product'])) {
         $data['error_image_product'] = $this->error['image_product'];
     } else {
         $data['error_image_product'] = '';
     }
     if (isset($this->error['image_additional'])) {
         $data['error_image_additional'] = $this->error['image_additional'];
     } else {
         $data['error_image_additional'] = '';
     }
     if (isset($this->error['image_related'])) {
         $data['error_image_related'] = $this->error['image_related'];
     } else {
         $data['error_image_related'] = '';
     }
     if (isset($this->error['image_compare'])) {
         $data['error_image_compare'] = $this->error['image_compare'];
     } else {
         $data['error_image_compare'] = '';
     }
     if (isset($this->error['image_wishlist'])) {
         $data['error_image_wishlist'] = $this->error['image_wishlist'];
     } else {
         $data['error_image_wishlist'] = '';
     }
     if (isset($this->error['image_cart'])) {
         $data['error_image_cart'] = $this->error['image_cart'];
     } else {
         $data['error_image_cart'] = '';
     }
     if (isset($this->error['image_location'])) {
         $data['error_image_location'] = $this->error['image_location'];
     } else {
         $data['error_image_location'] = '';
     }
     if (isset($this->error['error_filename'])) {
         $data['error_error_filename'] = $this->error['error_filename'];
     } else {
         $data['error_error_filename'] = '';
     }
     if (isset($this->error['product_limit'])) {
         $data['error_product_limit'] = $this->error['product_limit'];
     } else {
         $data['error_product_limit'] = '';
     }
     if (isset($this->error['product_description_length'])) {
         $data['error_product_description_length'] = $this->error['product_description_length'];
     } else {
         $data['error_product_description_length'] = '';
     }
     if (isset($this->error['limit_admin'])) {
         $data['error_limit_admin'] = $this->error['limit_admin'];
     } else {
         $data['error_limit_admin'] = '';
     }
     if (isset($this->error['encryption'])) {
         $data['error_encryption'] = $this->error['encryption'];
     } else {
         $data['error_encryption'] = '';
     }
     $data['breadcrumbs'] = array();
     $data['breadcrumbs'][] = array('text' => $this->language->get('text_home'), 'href' => $this->url->link('common/dashboard', 'token=' . $this->session->data['token'], 'SSL'));
     $data['breadcrumbs'][] = array('text' => $this->language->get('text_stores'), 'href' => $this->url->link('setting/setting', 'token=' . $this->session->data['token'], 'SSL'));
     $data['breadcrumbs'][] = array('text' => $this->language->get('heading_title'), 'href' => $this->url->link('setting/setting', 'token=' . $this->session->data['token'], 'SSL'));
     if (isset($this->session->data['success'])) {
         $data['success'] = $this->session->data['success'];
         unset($this->session->data['success']);
     } else {
         $data['success'] = '';
     }
     $data['action'] = $this->url->link('setting/setting', 'token=' . $this->session->data['token'], 'SSL');
     $data['cancel'] = $this->url->link('setting/setting', 'token=' . $this->session->data['token'], 'SSL');
     $data['token'] = $this->session->data['token'];
     if (isset($this->request->post['config_name'])) {
         $data['config_name'] = $this->request->post['config_name'];
     } else {
         $data['config_name'] = $this->config->get('config_name');
     }
     /**
      *Ajax advanced search starts
      */
     if (isset($this->request->post['config_ajaxadvancedsearch'])) {
         $data['config_ajaxadvancedsearch'] = $this->request->post['config_ajaxadvancedsearch'];
     } else {
         $data['config_ajaxadvancedsearch'] = $this->config->get('config_ajaxadvancedsearch');
     }
     if (isset($this->request->post['config_ajaxadvancedsearch_limit'])) {
         $data['config_ajaxadvancedsearch_limit'] = $this->request->post['config_ajaxadvancedsearch_limit'];
     } else {
         $data['config_ajaxadvancedsearch_limit'] = $this->config->get('config_ajaxadvancedsearch_limit');
     }
     if (isset($this->request->post['config_ajaxadvancedsearch_image'])) {
         $data['config_ajaxadvancedsearch_image'] = $this->request->post['config_ajaxadvancedsearch_image'];
     } else {
         $data['config_ajaxadvancedsearch_image'] = $this->config->get('config_ajaxadvancedsearch_image');
     }
     if (isset($this->request->post['config_ajaxadvancedsearch_image_width'])) {
         $data['config_ajaxadvancedsearch_image_width'] = $this->request->post['config_ajaxadvancedsearch_image_width'];
     } else {
         $data['config_ajaxadvancedsearch_image_width'] = $this->config->get('config_ajaxadvancedsearch_image_width');
     }
     if (isset($this->request->post['config_ajaxadvancedsearch_image_height'])) {
         $data['config_ajaxadvancedsearch_image_height'] = $this->request->post['config_ajaxadvancedsearch_image_height'];
     } else {
         $data['config_ajaxadvancedsearch_image_height'] = $this->config->get('config_ajaxadvancedsearch_image_height');
     }
     if (isset($this->request->post['config_ajaxadvancedsearch_model'])) {
         $data['config_ajaxadvancedsearch_model'] = $this->request->post['config_ajaxadvancedsearch_model'];
     } else {
         $data['config_ajaxadvancedsearch_model'] = $this->config->get('config_ajaxadvancedsearch_model');
     }
     if (isset($this->request->post['config_ajaxadvancedsearch_manufacturer'])) {
         $data['config_ajaxadvancedsearch_manufacturer'] = $this->request->post['config_ajaxadvancedsearch_manufacturer'];
     } else {
         $data['config_ajaxadvancedsearch_manufacturer'] = $this->config->get('config_ajaxadvancedsearch_manufacturer');
     }
     if (isset($this->request->post['config_ajaxadvancedsearch_price'])) {
         $data['config_ajaxadvancedsearch_price'] = $this->request->post['config_ajaxadvancedsearch_price'];
     } else {
         $data['config_ajaxadvancedsearch_price'] = $this->config->get('config_ajaxadvancedsearch_price');
     }
     if (isset($this->request->post['config_ajaxadvancedsearch_rating'])) {
         $data['config_ajaxadvancedsearch_rating'] = $this->request->post['config_ajaxadvancedsearch_rating'];
     } else {
         $data['config_ajaxadvancedsearch_rating'] = $this->config->get('config_ajaxadvancedsearch_rating');
     }
     if (isset($this->request->post['config_ajaxadvancedsearch_stock'])) {
         $data['config_ajaxadvancedsearch_stock'] = $this->request->post['config_ajaxadvancedsearch_stock'];
     } else {
         $data['config_ajaxadvancedsearch_stock'] = $this->config->get('config_ajaxadvancedsearch_stock');
     }
     if (isset($this->request->post['config_ajaxadvancedsearch_model_search'])) {
         $data['config_ajaxadvancedsearch_model_search'] = $this->request->post['config_ajaxadvancedsearch_model_search'];
     } else {
         $data['config_ajaxadvancedsearch_model_search'] = $this->config->get('config_ajaxadvancedsearch_model_search');
     }
     if (isset($this->request->post['config_ajaxadvancedsearch_tag'])) {
         $data['config_ajaxadvancedsearch_tag'] = $this->request->post['config_ajaxadvancedsearch_tag'];
     } else {
         $data['config_ajaxadvancedsearch_tag'] = $this->config->get('config_ajaxadvancedsearch_tag');
     }
     if (isset($this->request->post['config_ajaxadvancedsearch_mpn'])) {
         $data['config_ajaxadvancedsearch_mpn'] = $this->request->post['config_ajaxadvancedsearch_mpn'];
     } else {
         $data['config_ajaxadvancedsearch_mpn'] = $this->config->get('config_ajaxadvancedsearch_mpn');
     }
     if (isset($this->request->post['config_ajaxadvancedsearch_manufacturer_search'])) {
         $data['config_ajaxadvancedsearch_manufacturer_search'] = $this->request->post['config_ajaxadvancedsearch_manufacturer_search'];
     } else {
         $data['config_ajaxadvancedsearch_manufacturer_search'] = $this->config->get('config_ajaxadvancedsearch_manufacturer_search');
     }
     if (isset($this->request->post['config_ajaxadvancedsearch_isbn'])) {
         $data['config_ajaxadvancedsearch_isbn'] = $this->request->post['config_ajaxadvancedsearch_isbn'];
     } else {
         $data['config_ajaxadvancedsearch_isbn'] = $this->config->get('config_ajaxadvancedsearch_isbn');
     }
     if (isset($this->request->post['config_ajaxadvancedsearch_jan'])) {
         $data['config_ajaxadvancedsearch_jan'] = $this->request->post['config_ajaxadvancedsearch_jan'];
     } else {
         $data['config_ajaxadvancedsearch_jan'] = $this->config->get('config_ajaxadvancedsearch_jan');
     }
     if (isset($this->request->post['config_ajaxadvancedsearch_ean'])) {
         $data['config_ajaxadvancedsearch_ean'] = $this->request->post['config_ajaxadvancedsearch_ean'];
     } else {
         $data['config_ajaxadvancedsearch_ean'] = $this->config->get('config_ajaxadvancedsearch_ean');
     }
     if (isset($this->request->post['config_ajaxadvancedsearch_upc'])) {
         $data['config_ajaxadvancedsearch_upc'] = $this->request->post['config_ajaxadvancedsearch_upc'];
     } else {
         $data['config_ajaxadvancedsearch_upc'] = $this->config->get('config_ajaxadvancedsearch_upc');
     }
     if (isset($this->request->post['config_ajaxadvancedsearch_sku'])) {
         $data['config_ajaxadvancedsearch_sku'] = $this->request->post['config_ajaxadvancedsearch_sku'];
     } else {
         $data['config_ajaxadvancedsearch_sku'] = $this->config->get('config_ajaxadvancedsearch_sku');
     }
     if (isset($this->request->post['config_ajaxadvancedsearch_highlight'])) {
         $data['config_ajaxadvancedsearch_highlight'] = $this->request->post['config_ajaxadvancedsearch_highlight'];
     } else {
         $data['config_ajaxadvancedsearch_highlight'] = $this->config->get('config_ajaxadvancedsearch_highlight');
     }
     /**
      *Ajax advanced search ends
      */
     if (isset($this->request->post['config_owner'])) {
         $data['config_owner'] = $this->request->post['config_owner'];
     } else {
         $data['config_owner'] = $this->config->get('config_owner');
     }
     if (isset($this->request->post['config_paypal_merchant'])) {
         $data['config_paypal_merchant'] = $this->request->post['config_paypal_merchant'];
     } else {
         $data['config_paypal_merchant'] = $this->config->get('config_paypal_merchant');
     }
     if (isset($this->request->post['config_address'])) {
         $data['config_address'] = $this->request->post['config_address'];
     } else {
         $data['config_address'] = $this->config->get('config_address');
     }
     if (isset($this->request->post['config_geocode'])) {
         $data['config_geocode'] = $this->request->post['config_geocode'];
     } else {
         $data['config_geocode'] = $this->config->get('config_geocode');
     }
     if (isset($this->request->post['config_email'])) {
         $data['config_email'] = $this->request->post['config_email'];
     } else {
         $data['config_email'] = $this->config->get('config_email');
     }
     if (isset($this->request->post['config_telephone'])) {
         $data['config_telephone'] = $this->request->post['config_telephone'];
     } else {
         $data['config_telephone'] = $this->config->get('config_telephone');
     }
     if (isset($this->request->post['config_fax'])) {
         $data['config_fax'] = $this->request->post['config_fax'];
     } else {
         $data['config_fax'] = $this->config->get('config_fax');
     }
     if (isset($this->request->post['config_image'])) {
         $data['config_image'] = $this->request->post['config_image'];
     } else {
         $data['config_image'] = $this->config->get('config_image');
     }
     $this->load->model('tool/image');
     if (isset($this->request->post['config_image']) && is_file(DIR_IMAGE . $this->request->post['config_image'])) {
         $data['thumb'] = $this->model_tool_image->resize($this->request->post['config_image'], 100, 100);
     } elseif ($this->config->get('config_image') && is_file(DIR_IMAGE . $this->config->get('config_image'))) {
         $data['thumb'] = $this->model_tool_image->resize($this->config->get('config_image'), 100, 100);
     } else {
         $data['thumb'] = $this->model_tool_image->resize('no_image.png', 100, 100);
     }
     $data['placeholder'] = $this->model_tool_image->resize('no_image.png', 100, 100);
     if (isset($this->request->post['config_open'])) {
         $data['config_open'] = $this->request->post['config_open'];
     } else {
         $data['config_open'] = $this->config->get('config_open');
     }
     if (isset($this->request->post['config_comment'])) {
         $data['config_comment'] = $this->request->post['config_comment'];
     } else {
         $data['config_comment'] = $this->config->get('config_comment');
     }
     $this->load->model('localisation/location');
     $data['locations'] = $this->model_localisation_location->getLocations();
     if (isset($this->request->post['config_location'])) {
         $data['config_location'] = $this->request->post['config_location'];
     } elseif ($this->config->get('config_location')) {
         $data['config_location'] = $this->config->get('config_location');
     } else {
         $data['config_location'] = array();
     }
     if (isset($this->request->post['config_meta_title'])) {
         $data['config_meta_title'] = $this->request->post['config_meta_title'];
     } else {
         $data['config_meta_title'] = $this->config->get('config_meta_title');
     }
     if (isset($this->request->post['config_meta_description'])) {
         $data['config_meta_description'] = $this->request->post['config_meta_description'];
     } else {
         $data['config_meta_description'] = $this->config->get('config_meta_description');
     }
     if (isset($this->request->post['config_meta_keyword'])) {
         $data['config_meta_keyword'] = $this->request->post['config_meta_keyword'];
     } else {
         $data['config_meta_keyword'] = $this->config->get('config_meta_keyword');
     }
     if (isset($this->request->post['config_layout_id'])) {
         $data['config_layout_id'] = $this->request->post['config_layout_id'];
     } else {
         $data['config_layout_id'] = $this->config->get('config_layout_id');
     }
     $this->load->model('design/layout');
     $data['layouts'] = $this->model_design_layout->getLayouts();
     if (isset($this->request->post['config_template'])) {
         $data['config_template'] = $this->request->post['config_template'];
     } else {
         $data['config_template'] = $this->config->get('config_template');
     }
     $data['templates'] = array();
     $directories = glob(DIR_CATALOG . 'view/theme/*', GLOB_ONLYDIR);
     foreach ($directories as $directory) {
         $data['templates'][] = basename($directory);
     }
     if (isset($this->request->post['config_country_id'])) {
         $data['config_country_id'] = $this->request->post['config_country_id'];
     } else {
         $data['config_country_id'] = $this->config->get('config_country_id');
     }
     $this->load->model('localisation/country');
     $data['countries'] = $this->model_localisation_country->getCountries();
     if (isset($this->request->post['config_zone_id'])) {
         $data['config_zone_id'] = $this->request->post['config_zone_id'];
     } else {
         $data['config_zone_id'] = $this->config->get('config_zone_id');
     }
     if (isset($this->request->post['config_language'])) {
         $data['config_language'] = $this->request->post['config_language'];
     } else {
         $data['config_language'] = $this->config->get('config_language');
     }
     $this->load->model('localisation/language');
     $data['languages'] = $this->model_localisation_language->getLanguages();
     if (isset($this->request->post['config_admin_language'])) {
         $data['config_admin_language'] = $this->request->post['config_admin_language'];
     } else {
         $data['config_admin_language'] = $this->config->get('config_admin_language');
     }
     if (isset($this->request->post['config_currency'])) {
         $data['config_currency'] = $this->request->post['config_currency'];
     } else {
         $data['config_currency'] = $this->config->get('config_currency');
     }
     if (isset($this->request->post['config_currency_auto'])) {
         $data['config_currency_auto'] = $this->request->post['config_currency_auto'];
     } else {
         $data['config_currency_auto'] = $this->config->get('config_currency_auto');
     }
     $this->load->model('localisation/currency');
     $data['currencies'] = $this->model_localisation_currency->getCurrencies();
     if (isset($this->request->post['config_length_class_id'])) {
         $data['config_length_class_id'] = $this->request->post['config_length_class_id'];
     } else {
         $data['config_length_class_id'] = $this->config->get('config_length_class_id');
     }
     $this->load->model('localisation/length_class');
     $data['length_classes'] = $this->model_localisation_length_class->getLengthClasses();
     if (isset($this->request->post['config_weight_class_id'])) {
         $data['config_weight_class_id'] = $this->request->post['config_weight_class_id'];
     } else {
         $data['config_weight_class_id'] = $this->config->get('config_weight_class_id');
     }
     $this->load->model('localisation/weight_class');
     $data['weight_classes'] = $this->model_localisation_weight_class->getWeightClasses();
     if (isset($this->request->post['config_product_limit'])) {
         $data['config_product_limit'] = $this->request->post['config_product_limit'];
     } else {
         $data['config_product_limit'] = $this->config->get('config_product_limit');
     }
     if (isset($this->request->post['config_product_description_length'])) {
         $data['config_product_description_length'] = $this->request->post['config_product_description_length'];
     } else {
         $data['config_product_description_length'] = $this->config->get('config_product_description_length');
     }
     if (isset($this->request->post['config_limit_admin'])) {
         $data['config_limit_admin'] = $this->request->post['config_limit_admin'];
     } else {
         $data['config_limit_admin'] = $this->config->get('config_limit_admin');
     }
     if (isset($this->request->post['config_product_count'])) {
         $data['config_product_count'] = $this->request->post['config_product_count'];
     } else {
         $data['config_product_count'] = $this->config->get('config_product_count');
     }
     if (isset($this->request->post['config_review_status'])) {
         $data['config_review_status'] = $this->request->post['config_review_status'];
     } else {
         $data['config_review_status'] = $this->config->get('config_review_status');
     }
     if (isset($this->request->post['config_review_guest'])) {
         $data['config_review_guest'] = $this->request->post['config_review_guest'];
     } else {
         $data['config_review_guest'] = $this->config->get('config_review_guest');
     }
     if (isset($this->request->post['config_review_mail'])) {
         $data['config_review_mail'] = $this->request->post['config_review_mail'];
     } else {
         $data['config_review_mail'] = $this->config->get('config_review_mail');
     }
     if (isset($this->request->post['config_voucher_min'])) {
         $data['config_voucher_min'] = $this->request->post['config_voucher_min'];
     } else {
         $data['config_voucher_min'] = $this->config->get('config_voucher_min');
     }
     if (isset($this->request->post['config_voucher_max'])) {
         $data['config_voucher_max'] = $this->request->post['config_voucher_max'];
     } else {
         $data['config_voucher_max'] = $this->config->get('config_voucher_max');
     }
     if (isset($this->request->post['config_tax'])) {
         $data['config_tax'] = $this->request->post['config_tax'];
     } else {
         $data['config_tax'] = $this->config->get('config_tax');
     }
     if (isset($this->request->post['config_tax_default'])) {
         $data['config_tax_default'] = $this->request->post['config_tax_default'];
     } else {
         $data['config_tax_default'] = $this->config->get('config_tax_default');
     }
     if (isset($this->request->post['config_tax_customer'])) {
         $data['config_tax_customer'] = $this->request->post['config_tax_customer'];
     } else {
         $data['config_tax_customer'] = $this->config->get('config_tax_customer');
     }
     if (isset($this->request->post['config_customer_online'])) {
         $data['config_customer_online'] = $this->request->post['config_customer_online'];
     } else {
         $data['config_customer_online'] = $this->config->get('config_customer_online');
     }
     if (isset($this->request->post['config_customer_group_id'])) {
         $data['config_customer_group_id'] = $this->request->post['config_customer_group_id'];
     } else {
         $data['config_customer_group_id'] = $this->config->get('config_customer_group_id');
     }
     $this->load->model('sale/customer_group');
     $data['customer_groups'] = $this->model_sale_customer_group->getCustomerGroups();
     if (isset($this->request->post['config_customer_group_display'])) {
         $data['config_customer_group_display'] = $this->request->post['config_customer_group_display'];
     } elseif ($this->config->get('config_customer_group_display')) {
         $data['config_customer_group_display'] = $this->config->get('config_customer_group_display');
     } else {
         $data['config_customer_group_display'] = array();
     }
     if (isset($this->request->post['config_customer_price'])) {
         $data['config_customer_price'] = $this->request->post['config_customer_price'];
     } else {
         $data['config_customer_price'] = $this->config->get('config_customer_price');
     }
     if (isset($this->request->post['config_login_attempts'])) {
         $data['config_login_attempts'] = $this->request->post['config_login_attempts'];
     } elseif ($this->config->has('config_login_attempts')) {
         $data['config_login_attempts'] = $this->config->get('config_login_attempts');
     } else {
         $data['config_login_attempts'] = 5;
     }
     if (isset($this->request->post['config_account_id'])) {
         $data['config_account_id'] = $this->request->post['config_account_id'];
     } else {
         $data['config_account_id'] = $this->config->get('config_account_id');
     }
     $this->load->model('catalog/information');
     $data['informations'] = $this->model_catalog_information->getInformations();
     if (isset($this->request->post['config_account_mail'])) {
         $data['config_account_mail'] = $this->request->post['config_account_mail'];
     } else {
         $data['config_account_mail'] = $this->config->get('config_account_mail');
     }
     if (isset($this->request->post['config_api_id'])) {
         $data['config_api_id'] = $this->request->post['config_api_id'];
     } else {
         $data['config_api_id'] = $this->config->get('config_api_id');
     }
     $this->load->model('user/api');
     $data['apis'] = $this->model_user_api->getApis();
     if (isset($this->request->post['config_cart_weight'])) {
         $data['config_cart_weight'] = $this->request->post['config_cart_weight'];
     } else {
         $data['config_cart_weight'] = $this->config->get('config_cart_weight');
     }
     if (isset($this->request->post['config_checkout_guest'])) {
         $data['config_checkout_guest'] = $this->request->post['config_checkout_guest'];
     } else {
         $data['config_checkout_guest'] = $this->config->get('config_checkout_guest');
     }
     if (isset($this->request->post['config_checkout_id'])) {
         $data['config_checkout_id'] = $this->request->post['config_checkout_id'];
     } else {
         $data['config_checkout_id'] = $this->config->get('config_checkout_id');
     }
     if (isset($this->request->post['config_invoice_prefix'])) {
         $data['config_invoice_prefix'] = $this->request->post['config_invoice_prefix'];
     } elseif ($this->config->get('config_invoice_prefix')) {
         $data['config_invoice_prefix'] = $this->config->get('config_invoice_prefix');
     } else {
         $data['config_invoice_prefix'] = 'INV-' . date('Y') . '-00';
     }
     if (isset($this->request->post['config_order_status_id'])) {
         $data['config_order_status_id'] = $this->request->post['config_order_status_id'];
     } else {
         $data['config_order_status_id'] = $this->config->get('config_order_status_id');
     }
     if (isset($this->request->post['config_processing_status'])) {
         $data['config_processing_status'] = $this->request->post['config_processing_status'];
     } elseif ($this->config->get('config_processing_status')) {
         $data['config_processing_status'] = $this->config->get('config_processing_status');
     } else {
         $data['config_processing_status'] = array();
     }
     if (isset($this->request->post['config_complete_status'])) {
         $data['config_complete_status'] = $this->request->post['config_complete_status'];
     } elseif ($this->config->get('config_complete_status')) {
         $data['config_complete_status'] = $this->config->get('config_complete_status');
     } else {
         $data['config_complete_status'] = array();
     }
     if (isset($this->request->post['config_order_status_id'])) {
         $data['config_fraud_status_id'] = $this->request->post['config_fraud_status_id'];
     } else {
         $data['config_fraud_status_id'] = $this->config->get('config_fraud_status_id');
     }
     $this->load->model('localisation/order_status');
     $data['order_statuses'] = $this->model_localisation_order_status->getOrderStatuses();
     if (isset($this->request->post['config_order_mail'])) {
         $data['config_order_mail'] = $this->request->post['config_order_mail'];
     } else {
         $data['config_order_mail'] = $this->config->get('config_order_mail');
     }
     if (isset($this->request->post['config_api_id'])) {
         $data['config_api_id'] = $this->request->post['config_api_id'];
     } else {
         $data['config_api_id'] = $this->config->get('config_api_id');
     }
     $this->load->model('user/api');
     $data['apis'] = $this->model_user_api->getApis();
     if (isset($this->request->post['config_stock_display'])) {
         $data['config_stock_display'] = $this->request->post['config_stock_display'];
     } else {
         $data['config_stock_display'] = $this->config->get('config_stock_display');
     }
     if (isset($this->request->post['config_stock_warning'])) {
         $data['config_stock_warning'] = $this->request->post['config_stock_warning'];
     } else {
         $data['config_stock_warning'] = $this->config->get('config_stock_warning');
     }
     if (isset($this->request->post['config_stock_checkout'])) {
         $data['config_stock_checkout'] = $this->request->post['config_stock_checkout'];
     } else {
         $data['config_stock_checkout'] = $this->config->get('config_stock_checkout');
     }
     if (isset($this->request->post['config_affiliate_auto'])) {
         $data['config_affiliate_approval'] = $this->request->post['config_affiliate_approval'];
     } elseif ($this->config->has('config_affiliate_commission')) {
         $data['config_affiliate_approval'] = $this->config->get('config_affiliate_approval');
     } else {
         $data['config_affiliate_approval'] = '';
     }
     if (isset($this->request->post['config_affiliate_auto'])) {
         $data['config_affiliate_auto'] = $this->request->post['config_affiliate_auto'];
     } elseif ($this->config->has('config_affiliate_auto')) {
         $data['config_affiliate_auto'] = $this->config->get('config_affiliate_auto');
     } else {
         $data['config_affiliate_auto'] = '';
     }
     if (isset($this->request->post['config_affiliate_commission'])) {
         $data['config_affiliate_commission'] = $this->request->post['config_affiliate_commission'];
     } elseif ($this->config->has('config_affiliate_commission')) {
         $data['config_affiliate_commission'] = $this->config->get('config_affiliate_commission');
     } else {
         $data['config_affiliate_commission'] = '5.00';
     }
     if (isset($this->request->post['config_affiliate_mail'])) {
         $data['config_affiliate_mail'] = $this->request->post['config_affiliate_mail'];
     } elseif ($this->config->has('config_affiliate_mail')) {
         $data['config_affiliate_mail'] = $this->config->get('config_affiliate_mail');
     } else {
         $data['config_affiliate_mail'] = '';
     }
     if (isset($this->request->post['config_affiliate_id'])) {
         $data['config_affiliate_id'] = $this->request->post['config_affiliate_id'];
     } else {
         $data['config_affiliate_id'] = $this->config->get('config_affiliate_id');
     }
     if (isset($this->request->post['config_return_id'])) {
         $data['config_return_id'] = $this->request->post['config_return_id'];
     } else {
         $data['config_return_id'] = $this->config->get('config_return_id');
     }
     if (isset($this->request->post['config_return_status_id'])) {
         $data['config_return_status_id'] = $this->request->post['config_return_status_id'];
     } else {
         $data['config_return_status_id'] = $this->config->get('config_return_status_id');
     }
     $this->load->model('localisation/return_status');
     $data['return_statuses'] = $this->model_localisation_return_status->getReturnStatuses();
     if (isset($this->request->post['config_captcha'])) {
         $data['config_captcha'] = $this->request->post['config_captcha'];
     } else {
         $data['config_captcha'] = $this->config->get('config_captcha');
     }
     $this->load->model('extension/extension');
     $data['captchas'] = array();
     // Get a list of installed captchas
     $extensions = $this->model_extension_extension->getInstalled('captcha');
     foreach ($extensions as $code) {
         $this->load->language('captcha/' . $code);
         if ($this->config->has($code . '_status')) {
             $data['captchas'][] = array('text' => $this->language->get('heading_title'), 'value' => $code);
         }
     }
     if (isset($this->request->post['config_captcha_page'])) {
         $data['config_captcha_page'] = $this->request->post['config_captcha_page'];
     } elseif ($this->config->has('config_captcha_page')) {
         $data['config_captcha_page'] = $this->config->get('config_captcha_page');
     } else {
         $data['config_captcha_page'] = array();
     }
     $data['captcha_pages'] = array();
     $data['captcha_pages'][] = array('text' => $this->language->get('text_register'), 'value' => 'register');
     $data['captcha_pages'][] = array('text' => $this->language->get('text_review'), 'value' => 'review');
     $data['captcha_pages'][] = array('text' => $this->language->get('text_return'), 'value' => 'return');
     $data['captcha_pages'][] = array('text' => $this->language->get('text_contact'), 'value' => 'contact');
     if (isset($this->request->post['config_logo'])) {
         $data['config_logo'] = $this->request->post['config_logo'];
     } else {
         $data['config_logo'] = $this->config->get('config_logo');
     }
     if (isset($this->request->post['config_logo']) && is_file(DIR_IMAGE . $this->request->post['config_logo'])) {
         $data['logo'] = $this->model_tool_image->resize($this->request->post['config_logo'], 100, 100);
     } elseif ($this->config->get('config_logo') && is_file(DIR_IMAGE . $this->config->get('config_logo'))) {
         $data['logo'] = $this->model_tool_image->resize($this->config->get('config_logo'), 100, 100);
     } else {
         $data['logo'] = $this->model_tool_image->resize('no_image.png', 100, 100);
     }
     if (isset($this->request->post['config_logo_admin'])) {
         $data['config_logo_admin'] = $this->request->post['config_logo_admin'];
     } else {
         $data['config_logo_admin'] = $this->config->get('config_logo_admin');
     }
     if ($this->config->get('config_logo_admin') && file_exists(DIR_IMAGE . $this->config->get('config_logo_admin')) && is_file(DIR_IMAGE . $this->config->get('config_logo_admin'))) {
         $data['logo_admin'] = $this->model_tool_image->resize($this->config->get('config_logo_admin'), 100, 100);
     } else {
         $data['logo_admin'] = $this->model_tool_image->resize('no_image.jpg', 100, 100);
     }
     if (isset($this->request->post['config_icon'])) {
         $data['config_icon'] = $this->request->post['config_icon'];
     } else {
         $data['config_icon'] = $this->config->get('config_icon');
     }
     if (isset($this->request->post['config_icon']) && is_file(DIR_IMAGE . $this->request->post['config_icon'])) {
         $data['icon'] = $this->model_tool_image->resize($this->request->post['config_logo'], 100, 100);
     } elseif ($this->config->get('config_icon') && is_file(DIR_IMAGE . $this->config->get('config_icon'))) {
         $data['icon'] = $this->model_tool_image->resize($this->config->get('config_icon'), 100, 100);
     } else {
         $data['icon'] = $this->model_tool_image->resize('no_image.png', 100, 100);
     }
     if (isset($this->request->post['config_image_category_width'])) {
         $data['config_image_category_width'] = $this->request->post['config_image_category_width'];
     } else {
         $data['config_image_category_width'] = $this->config->get('config_image_category_width');
     }
     if (isset($this->request->post['config_image_category_height'])) {
         $data['config_image_category_height'] = $this->request->post['config_image_category_height'];
     } else {
         $data['config_image_category_height'] = $this->config->get('config_image_category_height');
     }
     if (isset($this->request->post['config_image_thumb_width'])) {
         $data['config_image_thumb_width'] = $this->request->post['config_image_thumb_width'];
     } else {
         $data['config_image_thumb_width'] = $this->config->get('config_image_thumb_width');
     }
     if (isset($this->request->post['config_image_thumb_height'])) {
         $data['config_image_thumb_height'] = $this->request->post['config_image_thumb_height'];
     } else {
         $data['config_image_thumb_height'] = $this->config->get('config_image_thumb_height');
     }
     if (isset($this->request->post['config_image_popup_width'])) {
         $data['config_image_popup_width'] = $this->request->post['config_image_popup_width'];
     } else {
         $data['config_image_popup_width'] = $this->config->get('config_image_popup_width');
     }
     if (isset($this->request->post['config_image_popup_height'])) {
         $data['config_image_popup_height'] = $this->request->post['config_image_popup_height'];
     } else {
         $data['config_image_popup_height'] = $this->config->get('config_image_popup_height');
     }
     if (isset($this->request->post['config_image_product_width'])) {
         $data['config_image_product_width'] = $this->request->post['config_image_product_width'];
     } else {
         $data['config_image_product_width'] = $this->config->get('config_image_product_width');
     }
     if (isset($this->request->post['config_image_product_height'])) {
         $data['config_image_product_height'] = $this->request->post['config_image_product_height'];
     } else {
         $data['config_image_product_height'] = $this->config->get('config_image_product_height');
     }
     if (isset($this->request->post['config_image_additional_width'])) {
         $data['config_image_additional_width'] = $this->request->post['config_image_additional_width'];
     } else {
         $data['config_image_additional_width'] = $this->config->get('config_image_additional_width');
     }
     if (isset($this->request->post['config_image_additional_height'])) {
         $data['config_image_additional_height'] = $this->request->post['config_image_additional_height'];
     } else {
         $data['config_image_additional_height'] = $this->config->get('config_image_additional_height');
     }
     if (isset($this->request->post['config_image_related_width'])) {
         $data['config_image_related_width'] = $this->request->post['config_image_related_width'];
     } else {
         $data['config_image_related_width'] = $this->config->get('config_image_related_width');
     }
     if (isset($this->request->post['config_image_related_height'])) {
         $data['config_image_related_height'] = $this->request->post['config_image_related_height'];
     } else {
         $data['config_image_related_height'] = $this->config->get('config_image_related_height');
     }
     if (isset($this->request->post['config_image_compare_width'])) {
         $data['config_image_compare_width'] = $this->request->post['config_image_compare_width'];
     } else {
         $data['config_image_compare_width'] = $this->config->get('config_image_compare_width');
     }
     if (isset($this->request->post['config_image_compare_height'])) {
         $data['config_image_compare_height'] = $this->request->post['config_image_compare_height'];
     } else {
         $data['config_image_compare_height'] = $this->config->get('config_image_compare_height');
     }
     if (isset($this->request->post['config_image_wishlist_width'])) {
         $data['config_image_wishlist_width'] = $this->request->post['config_image_wishlist_width'];
     } else {
         $data['config_image_wishlist_width'] = $this->config->get('config_image_wishlist_width');
     }
     if (isset($this->request->post['config_image_wishlist_height'])) {
         $data['config_image_wishlist_height'] = $this->request->post['config_image_wishlist_height'];
     } else {
         $data['config_image_wishlist_height'] = $this->config->get('config_image_wishlist_height');
     }
     if (isset($this->request->post['config_image_cart_width'])) {
         $data['config_image_cart_width'] = $this->request->post['config_image_cart_width'];
     } else {
         $data['config_image_cart_width'] = $this->config->get('config_image_cart_width');
     }
     if (isset($this->request->post['config_image_cart_height'])) {
         $data['config_image_cart_height'] = $this->request->post['config_image_cart_height'];
     } else {
         $data['config_image_cart_height'] = $this->config->get('config_image_cart_height');
     }
     if (isset($this->request->post['config_image_location_width'])) {
         $data['config_image_location_width'] = $this->request->post['config_image_location_width'];
     } else {
         $data['config_image_location_width'] = $this->config->get('config_image_location_width');
     }
     if (isset($this->request->post['config_image_location_height'])) {
         $data['config_image_location_height'] = $this->request->post['config_image_location_height'];
     } else {
         $data['config_image_location_height'] = $this->config->get('config_image_location_height');
     }
     if (isset($this->request->post['config_ftp_hostname'])) {
         $data['config_ftp_hostname'] = $this->request->post['config_ftp_hostname'];
     } elseif ($this->config->get('config_ftp_hostname')) {
         $data['config_ftp_hostname'] = $this->config->get('config_ftp_hostname');
     } else {
         $data['config_ftp_hostname'] = str_replace('www.', '', $this->request->server['HTTP_HOST']);
     }
     if (isset($this->request->post['config_ftp_port'])) {
         $data['config_ftp_port'] = $this->request->post['config_ftp_port'];
     } elseif ($this->config->get('config_ftp_port')) {
         $data['config_ftp_port'] = $this->config->get('config_ftp_port');
     } else {
         $data['config_ftp_port'] = 21;
     }
     if (isset($this->request->post['config_ftp_username'])) {
         $data['config_ftp_username'] = $this->request->post['config_ftp_username'];
     } else {
         $data['config_ftp_username'] = $this->config->get('config_ftp_username');
     }
     if (isset($this->request->post['config_ftp_password'])) {
         $data['config_ftp_password'] = $this->request->post['config_ftp_password'];
     } else {
         $data['config_ftp_password'] = $this->config->get('config_ftp_password');
     }
     if (isset($this->request->post['config_ftp_root'])) {
         $data['config_ftp_root'] = $this->request->post['config_ftp_root'];
     } else {
         $data['config_ftp_root'] = $this->config->get('config_ftp_root');
     }
     if (isset($this->request->post['config_ftp_status'])) {
         $data['config_ftp_status'] = $this->request->post['config_ftp_status'];
     } else {
         $data['config_ftp_status'] = $this->config->get('config_ftp_status');
     }
     if (isset($this->request->post['config_mail_protocol'])) {
         $data['config_mail_protocol'] = $this->request->post['config_mail_protocol'];
     } else {
         $data['config_mail_protocol'] = $this->config->get('config_mail_protocol');
     }
     if (isset($this->request->post['config_mail_parameter'])) {
         $data['config_mail_parameter'] = $this->request->post['config_mail_parameter'];
     } else {
         $data['config_mail_parameter'] = $this->config->get('config_mail_parameter');
     }
     if (isset($this->request->post['config_mail_smtp_hostname'])) {
         $data['config_mail_smtp_hostname'] = $this->request->post['config_mail_smtp_hostname'];
     } else {
         $data['config_mail_smtp_hostname'] = $this->config->get('config_mail_smtp_hostname');
     }
     if (isset($this->request->post['config_mail_smtp_username'])) {
         $data['config_mail_smtp_username'] = $this->request->post['config_mail_smtp_username'];
     } else {
         $data['config_mail_smtp_username'] = $this->config->get('config_mail_smtp_username');
     }
     if (isset($this->request->post['config_mail_smtp_password'])) {
         $data['config_mail_smtp_password'] = $this->request->post['config_mail_smtp_password'];
     } else {
         $data['config_mail_smtp_password'] = $this->config->get('config_mail_smtp_password');
     }
     if (isset($this->request->post['config_mail_smtp_port'])) {
         $data['config_mail_smtp_port'] = $this->request->post['config_mail_smtp_port'];
     } elseif ($this->config->has('config_mail_smtp_port')) {
         $data['config_mail_smtp_port'] = $this->config->get('config_mail_smtp_port');
     } else {
         $data['config_mail_smtp_port'] = 25;
     }
     if (isset($this->request->post['config_mail_smtp_timeout'])) {
         $data['config_mail_smtp_timeout'] = $this->request->post['config_mail_smtp_timeout'];
     } elseif ($this->config->has('config_mail_smtp_timeout')) {
         $data['config_mail_smtp_timeout'] = $this->config->get('config_mail_smtp_timeout');
     } else {
         $data['config_mail_smtp_timeout'] = 5;
     }
     if (isset($this->request->post['config_mail_alert'])) {
         $data['config_mail_alert'] = $this->request->post['config_mail_alert'];
     } else {
         $data['config_mail_alert'] = $this->config->get('config_mail_alert');
     }
     if (isset($this->request->post['config_fraud_detection'])) {
         $data['config_fraud_detection'] = $this->request->post['config_fraud_detection'];
     } else {
         $data['config_fraud_detection'] = $this->config->get('config_fraud_detection');
     }
     if (isset($this->request->post['config_fraud_key'])) {
         $data['config_fraud_key'] = $this->request->post['config_fraud_key'];
     } else {
         $data['config_fraud_key'] = $this->config->get('config_fraud_key');
     }
     if (isset($this->request->post['config_fraud_score'])) {
         $data['config_fraud_score'] = $this->request->post['config_fraud_score'];
     } else {
         $data['config_fraud_score'] = $this->config->get('config_fraud_score');
     }
     if (isset($this->request->post['config_fraud_status_id'])) {
         $data['config_fraud_status_id'] = $this->request->post['config_fraud_status_id'];
     } else {
         $data['config_fraud_status_id'] = $this->config->get('config_fraud_status_id');
     }
     if (isset($this->request->post['config_secure'])) {
         $data['config_secure'] = $this->request->post['config_secure'];
     } else {
         $data['config_secure'] = $this->config->get('config_secure');
     }
     if (isset($this->request->post['config_shared'])) {
         $data['config_shared'] = $this->request->post['config_shared'];
     } else {
         $data['config_shared'] = $this->config->get('config_shared');
     }
     if (isset($this->request->post['config_robots'])) {
         $data['config_robots'] = $this->request->post['config_robots'];
     } else {
         $data['config_robots'] = $this->config->get('config_robots');
     }
     if (isset($this->request->post['config_seo_url'])) {
         $data['config_seo_url'] = $this->request->post['config_seo_url'];
     } else {
         $data['config_seo_url'] = $this->config->get('config_seo_url');
     }
     if (isset($this->request->post['config_file_max_size'])) {
         $data['config_file_max_size'] = $this->request->post['config_file_max_size'];
     } elseif ($this->config->get('config_file_max_size')) {
         $data['config_file_max_size'] = $this->config->get('config_file_max_size');
     } else {
         $data['config_file_max_size'] = 300000;
     }
     if (isset($this->request->post['config_file_ext_allowed'])) {
         $data['config_file_ext_allowed'] = $this->request->post['config_file_ext_allowed'];
     } else {
         $data['config_file_ext_allowed'] = $this->config->get('config_file_ext_allowed');
     }
     if (isset($this->request->post['config_file_mime_allowed'])) {
         $data['config_file_mime_allowed'] = $this->request->post['config_file_mime_allowed'];
     } else {
         $data['config_file_mime_allowed'] = $this->config->get('config_file_mime_allowed');
     }
     if (isset($this->request->post['config_maintenance'])) {
         $data['config_maintenance'] = $this->request->post['config_maintenance'];
     } else {
         $data['config_maintenance'] = $this->config->get('config_maintenance');
     }
     if (isset($this->request->post['config_password'])) {
         $data['config_password'] = $this->request->post['config_password'];
     } else {
         $data['config_password'] = $this->config->get('config_password');
     }
     if (isset($this->request->post['config_encryption'])) {
         $data['config_encryption'] = $this->request->post['config_encryption'];
     } else {
         $data['config_encryption'] = $this->config->get('config_encryption');
     }
     if (isset($this->request->post['config_compression'])) {
         $data['config_compression'] = $this->request->post['config_compression'];
     } else {
         $data['config_compression'] = $this->config->get('config_compression');
     }
     if (isset($this->request->post['config_error_display'])) {
         $data['config_error_display'] = $this->request->post['config_error_display'];
     } else {
         $data['config_error_display'] = $this->config->get('config_error_display');
     }
     if (isset($this->request->post['config_error_log'])) {
         $data['config_error_log'] = $this->request->post['config_error_log'];
     } else {
         $data['config_error_log'] = $this->config->get('config_error_log');
     }
     if (isset($this->request->post['config_error_filename'])) {
         $data['config_error_filename'] = $this->request->post['config_error_filename'];
     } else {
         $data['config_error_filename'] = $this->config->get('config_error_filename');
     }
     /**
      *Ajax advanced search starts
      */
     if (isset($this->request->post['config_ajaxadvancedsearch'])) {
         $data['config_ajaxadvancedsearch'] = $this->request->post['config_ajaxadvancedsearch'];
     } else {
         $data['config_ajaxadvancedsearch'] = $this->config->get('config_ajaxadvancedsearch');
     }
     if (isset($this->request->post['config_ajaxadvancedsearch_limit'])) {
         $data['config_ajaxadvancedsearch_limit'] = $this->request->post['config_ajaxadvancedsearch_limit'];
     } else {
         $data['config_ajaxadvancedsearch_limit'] = $this->config->get('config_ajaxadvancedsearch_limit');
     }
     if (isset($this->request->post['config_ajaxadvancedsearch_image'])) {
         $data['config_ajaxadvancedsearch_image'] = $this->request->post['config_ajaxadvancedsearch_image'];
     } else {
         $data['config_ajaxadvancedsearch_image'] = $this->config->get('config_ajaxadvancedsearch_image');
     }
     if (isset($this->request->post['config_ajaxadvancedsearch_image_width'])) {
         $data['config_ajaxadvancedsearch_image_width'] = $this->request->post['config_ajaxadvancedsearch_image_width'];
     } else {
         $data['config_ajaxadvancedsearch_image_width'] = $this->config->get('config_ajaxadvancedsearch_image_width');
     }
     /**26-01-2015 starts*/
     if (isset($this->request->post['config_ajaxadvancedsearch_result_view'])) {
         $data['config_ajaxadvancedsearch_result_view'] = $this->request->post['config_ajaxadvancedsearch_result_view'];
     } else {
         $data['config_ajaxadvancedsearch_result_view'] = $this->config->get('config_ajaxadvancedsearch_result_view');
     }
     if (isset($this->request->post['config_ajaxadvancedsearch_displayallresults'])) {
         $data['config_ajaxadvancedsearch_displayallresults'] = $this->request->post['config_ajaxadvancedsearch_displayallresults'];
     } else {
         $data['config_ajaxadvancedsearch_displayallresults'] = $this->config->get('config_ajaxadvancedsearch_displayallresults');
     }
     if (isset($this->request->post['config_ajaxadvancedsearch_colorenabletall'])) {
         $data['config_ajaxadvancedsearch_colorenabletall'] = $this->request->post['config_ajaxadvancedsearch_colorenabletall'];
     } else {
         $data['config_ajaxadvancedsearch_colorenabletall'] = $this->config->get('config_ajaxadvancedsearch_colorenabletall');
     }
     if (isset($this->request->post['config_ajaxadvancedsearch_colordefaultall'])) {
         $data['config_ajaxadvancedsearch_colordefaultall'] = $this->request->post['config_ajaxadvancedsearch_colordefaultall'];
     } else {
         $data['config_ajaxadvancedsearch_colordefaultall'] = $this->config->get('config_ajaxadvancedsearch_colordefaultall');
     }
     if (isset($this->request->post['config_ajaxadvancedsearch_color_default'])) {
         $data['config_ajaxadvancedsearch_color_default'] = $this->request->post['config_ajaxadvancedsearch_color_default'];
     } else {
         $data['config_ajaxadvancedsearch_color_default'] = $this->config->get('config_ajaxadvancedsearch_color_default');
     }
     if (isset($this->request->post['config_ajaxadvancedsearch_color_defaulthover'])) {
         $data['config_ajaxadvancedsearch_color_defaulthover'] = $this->request->post['config_ajaxadvancedsearch_color_defaulthover'];
     } else {
         $data['config_ajaxadvancedsearch_color_defaulthover'] = $this->config->get('config_ajaxadvancedsearch_color_defaulthover');
     }
     if (isset($this->request->post['config_ajaxadvancedsearch_color_heading'])) {
         $data['config_ajaxadvancedsearch_color_heading'] = $this->request->post['config_ajaxadvancedsearch_color_heading'];
     } else {
         $data['config_ajaxadvancedsearch_color_heading'] = $this->config->get('config_ajaxadvancedsearch_color_heading');
     }
     if (isset($this->request->post['config_ajaxadvancedsearch_color_headinghover'])) {
         $data['config_ajaxadvancedsearch_color_headinghover'] = $this->request->post['config_ajaxadvancedsearch_color_headinghover'];
     } else {
         $data['config_ajaxadvancedsearch_color_headinghover'] = $this->config->get('config_ajaxadvancedsearch_color_headinghover');
     }
     if (isset($this->request->post['config_ajaxadvancedsearch_color_model'])) {
         $data['config_ajaxadvancedsearch_color_model'] = $this->request->post['config_ajaxadvancedsearch_color_model'];
     } else {
         $data['config_ajaxadvancedsearch_color_model'] = $this->config->get('config_ajaxadvancedsearch_color_model');
     }
     if (isset($this->request->post['config_ajaxadvancedsearch_color_modelhover'])) {
         $data['config_ajaxadvancedsearch_color_modelhover'] = $this->request->post['config_ajaxadvancedsearch_color_modelhover'];
     } else {
         $data['config_ajaxadvancedsearch_color_modelhover'] = $this->config->get('config_ajaxadvancedsearch_color_modelhover');
     }
     if (isset($this->request->post['config_ajaxadvancedsearch_color_manufacturer'])) {
         $data['config_ajaxadvancedsearch_color_manufacturer'] = $this->request->post['config_ajaxadvancedsearch_color_manufacturer'];
     } else {
         $data['config_ajaxadvancedsearch_color_manufacturer'] = $this->config->get('config_ajaxadvancedsearch_color_manufacturer');
     }
     if (isset($this->request->post['config_ajaxadvancedsearch_color_manufacturerhover'])) {
         $data['config_ajaxadvancedsearch_color_manufacturerhover'] = $this->request->post['config_ajaxadvancedsearch_color_manufacturerhover'];
     } else {
         $data['config_ajaxadvancedsearch_color_manufacturerhover'] = $this->config->get('config_ajaxadvancedsearch_color_manufacturerhover');
     }
     if (isset($this->request->post['config_ajaxadvancedsearch_color_price'])) {
         $data['config_ajaxadvancedsearch_color_price'] = $this->request->post['config_ajaxadvancedsearch_color_price'];
     } else {
         $data['config_ajaxadvancedsearch_color_price'] = $this->config->get('config_ajaxadvancedsearch_color_price');
     }
     if (isset($this->request->post['config_ajaxadvancedsearch_color_pricehover'])) {
         $data['config_ajaxadvancedsearch_color_pricehover'] = $this->request->post['config_ajaxadvancedsearch_color_pricehover'];
     } else {
         $data['config_ajaxadvancedsearch_color_pricehover'] = $this->config->get('config_ajaxadvancedsearch_color_pricehover');
     }
     if (isset($this->request->post['config_ajaxadvancedsearch_color_stockstatus'])) {
         $data['config_ajaxadvancedsearch_color_stockstatus'] = $this->request->post['config_ajaxadvancedsearch_color_stockstatus'];
     } else {
         $data['config_ajaxadvancedsearch_color_stockstatus'] = $this->config->get('config_ajaxadvancedsearch_color_stockstatus');
     }
     if (isset($this->request->post['config_ajaxadvancedsearch_color_stockstatushover'])) {
         $data['config_ajaxadvancedsearch_color_stockstatushover'] = $this->request->post['config_ajaxadvancedsearch_color_stockstatushover'];
     } else {
         $data['config_ajaxadvancedsearch_color_stockstatushover'] = $this->config->get('config_ajaxadvancedsearch_color_stockstatushover');
     }
     if (isset($this->request->post['config_ajaxadvancedsearch_color_quantity'])) {
         $data['config_ajaxadvancedsearch_color_quantity'] = $this->request->post['config_ajaxadvancedsearch_color_quantity'];
     } else {
         $data['config_ajaxadvancedsearch_color_quantity'] = $this->config->get('config_ajaxadvancedsearch_color_quantity');
     }
     if (isset($this->request->post['config_ajaxadvancedsearch_color_quantityhover'])) {
         $data['config_ajaxadvancedsearch_color_quantityhover'] = $this->request->post['config_ajaxadvancedsearch_color_quantityhover'];
     } else {
         $data['config_ajaxadvancedsearch_color_quantityhover'] = $this->config->get('config_ajaxadvancedsearch_color_quantityhover');
     }
     if (isset($this->request->post['config_ajaxadvancedsearch_color_evenresult'])) {
         $data['config_ajaxadvancedsearch_color_evenresult'] = $this->request->post['config_ajaxadvancedsearch_color_evenresult'];
     } else {
         $data['config_ajaxadvancedsearch_color_evenresult'] = $this->config->get('config_ajaxadvancedsearch_color_evenresult');
     }
     if (isset($this->request->post['config_ajaxadvancedsearch_color_oddresult'])) {
         $data['config_ajaxadvancedsearch_color_oddresult'] = $this->request->post['config_ajaxadvancedsearch_color_oddresult'];
     } else {
         $data['config_ajaxadvancedsearch_color_oddresult'] = $this->config->get('config_ajaxadvancedsearch_color_oddresult');
     }
     if (isset($this->request->post['config_ajaxadvancedsearch_color_resulthover'])) {
         $data['config_ajaxadvancedsearch_color_resulthover'] = $this->request->post['config_ajaxadvancedsearch_color_resulthover'];
     } else {
         $data['config_ajaxadvancedsearch_color_resulthover'] = $this->config->get('config_ajaxadvancedsearch_color_resulthover');
     }
     if (isset($this->request->post['config_ajaxadvancedsearch_color_highlight'])) {
         $data['config_ajaxadvancedsearch_color_highlight'] = $this->request->post['config_ajaxadvancedsearch_color_highlight'];
     } else {
         $data['config_ajaxadvancedsearch_color_highlight'] = $this->config->get('config_ajaxadvancedsearch_color_highlight');
     }
     if (isset($this->request->post['config_ajaxadvancedsearch_color_highlighthover'])) {
         $data['config_ajaxadvancedsearch_color_highlighthover'] = $this->request->post['config_ajaxadvancedsearch_color_highlighthover'];
     } else {
         $data['config_ajaxadvancedsearch_color_highlighthover'] = $this->config->get('config_ajaxadvancedsearch_color_highlighthover');
     }
     if (isset($this->request->post['config_ajaxadvancedsearch_quantity'])) {
         $data['config_ajaxadvancedsearch_quantity'] = $this->request->post['config_ajaxadvancedsearch_quantity'];
     } else {
         $data['config_ajaxadvancedsearch_quantity'] = $this->config->get('config_ajaxadvancedsearch_quantity');
     }
     if (isset($this->request->post['config_ajaxadvancedsearch_charlimit'])) {
         $data['config_ajaxadvancedsearch_charlimit'] = $this->request->post['config_ajaxadvancedsearch_charlimit'];
     } else {
         $data['config_ajaxadvancedsearch_charlimit'] = $this->config->get('config_ajaxadvancedsearch_charlimit');
     }
     /** 26-01-2015 ends */
     if (isset($this->request->post['config_ajaxadvancedsearch_image_height'])) {
         $data['config_ajaxadvancedsearch_image_height'] = $this->request->post['config_ajaxadvancedsearch_image_height'];
     } else {
         $data['config_ajaxadvancedsearch_image_height'] = $this->config->get('config_ajaxadvancedsearch_image_height');
     }
     if (isset($this->request->post['config_ajaxadvancedsearch_model'])) {
         $data['config_ajaxadvancedsearch_model'] = $this->request->post['config_ajaxadvancedsearch_model'];
     } else {
         $data['config_ajaxadvancedsearch_model'] = $this->config->get('config_ajaxadvancedsearch_model');
     }
     if (isset($this->request->post['config_ajaxadvancedsearch_descr'])) {
         $data['config_ajaxadvancedsearch_descr'] = $this->request->post['config_ajaxadvancedsearch_descr'];
     } else {
         $data['config_ajaxadvancedsearch_descr'] = $this->config->get('config_ajaxadvancedsearch_descr');
     }
     if (isset($this->request->post['config_ajaxadvancedsearch_manufacturer'])) {
         $data['config_ajaxadvancedsearch_manufacturer'] = $this->request->post['config_ajaxadvancedsearch_manufacturer'];
     } else {
         $data['config_ajaxadvancedsearch_manufacturer'] = $this->config->get('config_ajaxadvancedsearch_manufacturer');
     }
     if (isset($this->request->post['config_ajaxadvancedsearch_price'])) {
         $data['config_ajaxadvancedsearch_price'] = $this->request->post['config_ajaxadvancedsearch_price'];
     } else {
         $data['config_ajaxadvancedsearch_price'] = $this->config->get('config_ajaxadvancedsearch_price');
     }
     /**Cusomer group price show starts*/
     if (isset($this->request->post['config_ajaxadvancedsearch_pricelogin'])) {
         $data['config_ajaxadvancedsearch_pricelogin'] = $this->request->post['config_ajaxadvancedsearch_pricelogin'];
     } else {
         $data['config_ajaxadvancedsearch_pricelogin'] = $this->config->get('config_ajaxadvancedsearch_pricelogin');
     }
     if (isset($this->request->post['config_ajaxadvancedsearch_customergroups'])) {
         $data['config_ajaxadvancedsearch_customergroups'] = $this->request->post['config_ajaxadvancedsearch_customergroups'];
     } else {
         if (!is_null($this->config->get('config_ajaxadvancedsearch_customergroups'))) {
             $data['config_ajaxadvancedsearch_customergroups'] = $this->config->get('config_ajaxadvancedsearch_customergroups');
         } else {
             $data['config_ajaxadvancedsearch_customergroups'] = array();
         }
     }
     /**Cusomer group price show ends*/
     if (isset($this->request->post['config_ajaxadvancedsearch_rating'])) {
         $data['config_ajaxadvancedsearch_rating'] = $this->request->post['config_ajaxadvancedsearch_rating'];
     } else {
         $data['config_ajaxadvancedsearch_rating'] = $this->config->get('config_ajaxadvancedsearch_rating');
     }
     if (isset($this->request->post['config_ajaxadvancedsearch_stock'])) {
         $data['config_ajaxadvancedsearch_stock'] = $this->request->post['config_ajaxadvancedsearch_stock'];
     } else {
         $data['config_ajaxadvancedsearch_stock'] = $this->config->get('config_ajaxadvancedsearch_stock');
     }
     if (isset($this->request->post['config_ajaxadvancedsearch_model_search'])) {
         $data['config_ajaxadvancedsearch_model_search'] = $this->request->post['config_ajaxadvancedsearch_model_search'];
     } else {
         $data['config_ajaxadvancedsearch_model_search'] = $this->config->get('config_ajaxadvancedsearch_model_search');
     }
     if (isset($this->request->post['config_ajaxadvancedsearch_tag'])) {
         $data['config_ajaxadvancedsearch_tag'] = $this->request->post['config_ajaxadvancedsearch_tag'];
     } else {
         $data['config_ajaxadvancedsearch_tag'] = $this->config->get('config_ajaxadvancedsearch_tag');
     }
     if (isset($this->request->post['config_ajaxadvancedsearch_mpn'])) {
         $data['config_ajaxadvancedsearch_mpn'] = $this->request->post['config_ajaxadvancedsearch_mpn'];
     } else {
         $data['config_ajaxadvancedsearch_mpn'] = $this->config->get('config_ajaxadvancedsearch_mpn');
     }
     if (isset($this->request->post['config_ajaxadvancedsearch_manufacturer_search'])) {
         $data['config_ajaxadvancedsearch_manufacturer_search'] = $this->request->post['config_ajaxadvancedsearch_manufacturer_search'];
     } else {
         $data['config_ajaxadvancedsearch_manufacturer_search'] = $this->config->get('config_ajaxadvancedsearch_manufacturer_search');
     }
     if (isset($this->request->post['config_ajaxadvancedsearch_isbn'])) {
         $data['config_ajaxadvancedsearch_isbn'] = $this->request->post['config_ajaxadvancedsearch_isbn'];
     } else {
         $data['config_ajaxadvancedsearch_isbn'] = $this->config->get('config_ajaxadvancedsearch_isbn');
     }
     if (isset($this->request->post['config_ajaxadvancedsearch_jan'])) {
         $data['config_ajaxadvancedsearch_jan'] = $this->request->post['config_ajaxadvancedsearch_jan'];
     } else {
         $data['config_ajaxadvancedsearch_jan'] = $this->config->get('config_ajaxadvancedsearch_jan');
     }
     if (isset($this->request->post['config_ajaxadvancedsearch_ean'])) {
         $data['config_ajaxadvancedsearch_ean'] = $this->request->post['config_ajaxadvancedsearch_ean'];
     } else {
         $data['config_ajaxadvancedsearch_ean'] = $this->config->get('config_ajaxadvancedsearch_ean');
     }
     if (isset($this->request->post['config_ajaxadvancedsearch_upc'])) {
         $data['config_ajaxadvancedsearch_upc'] = $this->request->post['config_ajaxadvancedsearch_upc'];
     } else {
         $data['config_ajaxadvancedsearch_upc'] = $this->config->get('config_ajaxadvancedsearch_upc');
     }
     if (isset($this->request->post['config_ajaxadvancedsearch_sku'])) {
         $data['config_ajaxadvancedsearch_sku'] = $this->request->post['config_ajaxadvancedsearch_sku'];
     } else {
         $data['config_ajaxadvancedsearch_sku'] = $this->config->get('config_ajaxadvancedsearch_sku');
     }
     if (isset($this->request->post['config_ajaxadvancedsearch_highlight'])) {
         $data['config_ajaxadvancedsearch_highlight'] = $this->request->post['config_ajaxadvancedsearch_highlight'];
     } else {
         $data['config_ajaxadvancedsearch_highlight'] = $this->config->get('config_ajaxadvancedsearch_highlight');
     }
     /**
      *Ajax advanced search ends
      */
     if (isset($this->request->post['config_google_analytics'])) {
         $data['config_google_analytics'] = $this->request->post['config_google_analytics'];
     } else {
         $data['config_google_analytics'] = $this->config->get('config_google_analytics');
     }
     if (isset($this->request->post['config_google_analytics_status'])) {
         $data['config_google_analytics_status'] = $this->request->post['config_google_analytics_status'];
     } else {
         $data['config_google_analytics_status'] = $this->config->get('config_google_analytics_status');
     }
     if (isset($this->request->post['config_google_captcha_public'])) {
         $data['config_google_captcha_public'] = $this->request->post['config_google_captcha_public'];
     } else {
         $data['config_google_captcha_public'] = $this->config->get('config_google_captcha_public');
     }
     if (isset($this->request->post['config_google_captcha_secret'])) {
         $data['config_google_captcha_secret'] = $this->request->post['config_google_captcha_secret'];
     } else {
         $data['config_google_captcha_secret'] = $this->config->get('config_google_captcha_secret');
     }
     if (isset($this->request->post['config_google_captcha_status'])) {
         $data['config_google_captcha_status'] = $this->request->post['config_google_captcha_status'];
     } else {
         $data['config_google_captcha_status'] = $this->config->get('config_google_captcha_status');
     }
     $data['header'] = $this->load->controller('common/header');
     $data['column_left'] = $this->load->controller('common/column_left');
     $data['footer'] = $this->load->controller('common/footer');
     $this->response->setOutput($this->load->view('setting/setting.tpl', $data));
 }