I changed the files but it won't load the module. It gives the error
Notice: Undefined variable: position_informatie_1 in /catalog/view/theme/default2/template/information/information.tpl on line 31
Code: Select all
<file path="catalog/controller/" name="common/home.php,product/manufacturer.php,product/compare.php,product/search.php,information/information.php,checkout/cart.php">
<operation info="default2 features">
<search position="before"><![CDATA[$this->load->controller('common/footer')]]></search>
<add><![CDATA[
if ($this->config->get('config_template') == 'default2') {
$data['default2'] = $this->config->get('default2');
$this->load->model('extension/default2');
$blockToLoad = array('top_a', 'top_b', 'top_c', 'bottom_a', 'bottom_b', 'bottom_c', 'content_btm_a','informatie_1,'informatie_2'');
$data += $this->model_extension_default2->getAllPosition($blockToLoad);
}
]]></add>
</operation>
</file>
<file path="catalog/controller/product/product.php">
<operation info="default2 features">
<search position="before"><![CDATA[$this->load->controller('common/footer')]]></search>
<add><![CDATA[
if ($this->config->get('config_template') == 'default2') {
$data['default2'] = $this->config->get('default2');
$this->load->model('extension/default2');
$blockToLoad = array('top_a', 'top_b', 'top_c', 'bottom_a', 'bottom_b', 'bottom_c', 'content_btm_a','informatie_1','informatie_2');
$data += $this->model_extension_default2->getAllPosition($blockToLoad);
$data['footer'] = $this->load->controller('common/footer');
$data['header'] = $this->load->controller('common/header');
$templates = array();
$template_product = $data['default2']['template_product'];
$template_options = array_diff(array(1, 2), array($template_product));
foreach ($template_options as $opt) {
if (isset($data['default2']['template_product_specific_' . $opt])) {
$templates = array_map('trim', explode(',', $data['default2']['template_product_specific_' . $opt]));
if (in_array($product_id, $templates)) {
$template_product = $opt;
break;
}
}
}
$default2_template = 'product_d2_' . $template_product;
if (file_exists(DIR_TEMPLATE . $this->config->get('config_template') . '/template/product/' . $default2_template . '.tpl')) {
return $this->response->setOutput($this->load->view($this->config->get('config_template') . '/template/product/' . $default2_template . '.tpl', $data));
}
}
]]></add>
</operation>
</file>
Code: Select all
<file path="admin/controller/design/layout.php">
<operation info="Listing default2 extra layout">
<search position="before"><![CDATA[design/layout_form.tpl]]></search>
<add><![CDATA[
$data['positions'] = array(
'tlb_top_left' => 'Toolbar Top Left',
'tlb_top_right' => 'Toolbar Top Right',
'main_menu' => 'Main Menu',
'top_a' => 'Top A',
'top_b' => 'Top B',
'top_c' => 'Top C',
'content_top_a' => 'Content Top A',
'content_top_b' => 'Content Top B',
'sidebar_left' => 'Sidebar Left',
'sidebar_right' => 'Sidebar Right',
'content_btm_a' => 'Content Bottom A',
'content_btm_b' => 'Content Bottom B',
'bottom_a' => 'Bottom A',
'bottom_b' => 'Bottom B',
'bottom_c' => 'Bottom C',
'footer_ribbon' => 'Footer Ribbon',
'footer_a' => 'Footer A',
'footer_b' => 'Footer B',
'footer_c' => 'Footer C',
'tlb_btm_left' => 'Toolbar Bottom Left',
'tlb_btm_right' => 'Toolbar Bottom Right',
'hide_blk_top' => 'Hidden Block Top',
'hide_blk_btm' => 'Hidden Block Bottom',
'informatie_1' => 'informatie los',
Code: Select all
<file path="catalog/controller/common/content_bottom.php">
<operation info="default2 features">
<search position="before"><![CDATA[DIR_TEMPLATE . $this->config->get('config_template')]]></search>
<add><![CDATA[
if ($this->config->get('config_template') == 'default2') {
$this->load->model('extension/default2');
if (isset($this->request->get['product_id'])) {
$data['position_content_btm_a'] = '';
$blockToLoad = array('content_btm_b');
} else {
$blockToLoad = array('content_btm_a', 'content_btm_b');
}
$data += $this->model_extension_default2->getAllPosition($blockToLoad);
}
]]></add>
</operation>
</file>