Steps:
1. Create a new Layout at admin > system > design > layout and name it 'All Pages'
2. On catalog > model > design > layout.php, add the ff:
Code: Select all
public function getLayoutForAllPages()
{
$query = $this->db->query("SELECT * FROM " . DB_PREFIX . "layout
WHERE name like '%all pages%'
LIMIT 1");
if ($query->num_rows) {
return $query->row['layout_id'];
} else {
return 0;
}
}
Here are the steps for the column left position
a. open /catalog/controller/common/column_left.php:
b. look for
Code: Select all
$module_data = array();
Code: Select all
$all_pages_layout_id = $this->model_design_layout->getLayoutForAllPages();
Code: Select all
if ($module['layout_id'] == $layout_id && $module['position'] == 'column_left' && $module['status']) {
Code: Select all
if (($module['layout_id'] == $layout_id || $module['layout_id'] == $all_pages_layout_id) && $module['position'] == 'column_left' && $module['status']) {
4. Go to admin > extension > modules, select the module you want to display on all pages and set the Layout to 'All Pages' .
Attached is the vqmod for all code changes