This is a tricky problem that I am having.
I have a client / friend that wants on their open cart menu a button for home, which I was able to solve. However he wants a drop down menu for advice which holds 5 items. These 5 items are Faq's, Contact us, Delivery Details, Privacy policy and Returns policy.
Straight forward enough however the pages are information pages.
What I'd like to do is to link to these pages.
The ID of the advise is 80
foreach ($children as $child) {
if ($child['category_id'] == 80) {
$children_data[] = array(
'name' => $this->data['text_advicefaq'] = $this->language->get('text_advicefaq'),
'href' => $this->url->link('information/information', 'information_id=13')
);
}
$data = array(
'filter_category_id' => $child['category_id'],
'filter_sub_category' => true
);
$product_total = $this->model_catalog_product->getTotalProducts($data);
$children_data[] = array(
'name' => $child['name'] . ($this->config->get('config_product_count') ? ' (' . $product_total . ')' : ''),
'href' => $this->url->link('product/category', 'path=' . $category['category_id'] . '_' . $child['category_id'])
);
}