In ../controller/produc/category.php set the description to the maeta description?
Change to:
Alternatively set another variable and put it where you like in the template file.
Code: Select all
$data['description'] = html_entity_decode($category_info['description'], ENT_QUOTES, 'UTF-8');
Code: Select all
$data['description'] = $category_info['meta_description'];
-
VIEW ALL EXTENSIONS * EXTENSION SUPPORT * WEBSITE * CUSTOM REQUESTS
Oh, I see.
In which case you want edit this little bit here:
As far as i remember it pulls all the category data so just add the meta description to the array()
Then in the loop of your template you just use {{ meta_desc}} to show the description.
Then of course, wrap it up in a OCMOD or an event rather then editing the file.
In which case you want edit this little bit here:
Code: Select all
$data['categories'][] = array(
'name' => $result['name'] . ($this->config->get('config_product_count') ? ' (' . $this->model_catalog_product->getTotalProducts($filter_data) . ')' : ''),
'href' => $this->url->link('product/category', 'path=' . $this->request->get['path'] . '_' . $result['category_id'] . $url)
);
Code: Select all
$data['categories'][] = array(
'name' => $result['name'] . ($this->config->get('config_product_count') ? ' (' . $this->model_catalog_product->getTotalProducts($filter_data) . ')' : ''),
'meta_desc' -> $result['meta_description'],
'href' => $this->url->link('product/category', 'path=' . $this->request->get['path'] . '_' . $result['category_id'] . $url)
);
Then of course, wrap it up in a OCMOD or an event rather then editing the file.
-
VIEW ALL EXTENSIONS * EXTENSION SUPPORT * WEBSITE * CUSTOM REQUESTS
Who is online
Users browsing this forum: No registered users and 20 guests