public function removeCoreTemplate($template_txt_id)
 {
     if (!$template_txt_id || $template_txt_id == 'default') {
         return false;
     }
     // delete template layouts
     $layout = new ALayoutManager($template_txt_id);
     $layout->deleteTemplateLayouts();
     $this->_remove_dir(DIR_STOREFRONT . 'view/' . $template_txt_id);
     if ($this->error) {
         return false;
     }
     /*	$this->loadModel('setting/setting');
     
     		$store_id = 0;
     		if ($this->request->get['store_id']){
     			$store_id = $this->request->get['store_id'];
     		} else{
     			$store_id = $this->config->get('config_store_id');
     		}
     
     		if ($this->request->get['tmpl_id']){
     			$this->model_setting_setting->editSetting('appearance',
     					array ('config_storefront_template' => $this->request->get['tmpl_id']),
     					$store_id
     			);
     			$this->session->data['success'] = $this->language->get('text_remove_success');
     		} else{
     			$this->session->data['warning'] = $this->language->get('text_remove_error');
     		}*/
     return true;
 }
 public function removeCoreTemplate($template_txt_id)
 {
     if (!$template_txt_id || $template_txt_id == 'default') {
         return false;
     }
     // delete template layouts safely
     try {
         $layout = new ALayoutManager($template_txt_id);
         $layout->deleteTemplateLayouts();
     } catch (AException $e) {
     }
     $this->_remove_dir(DIR_STOREFRONT . 'view/' . $template_txt_id);
     if ($this->error) {
         return false;
     }
     return true;
 }