【发布时间】:2014-07-07 15:42:26
【问题描述】:
这是我遇到的一个棘手问题。
我有一个客户/朋友希望在他们打开的购物车菜单上有个主页按钮,我能够解决这个问题。然而,他想要一个包含 5 个项目的建议下拉菜单。这 5 项分别是常见问题解答、联系我们、交货详情、隐私政策和退货政策 em>。
直截了当,但页面是信息页面。
我想做的是链接到这些页面。
advice的ID是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'])
);
}
【问题讨论】: