0
이것은 까다로운 문제입니다.opencart 헤더 메뉴에 사용자 정의 메뉴 추가하기
나는 열려있는 장바구니 메뉴에서 가정용 버튼을 원했던 클라이언트/친구가 있는데, 나는 해결할 수있었습니다. 그러나 그는 5 가지 항목을 담고있는 조언을위한 드롭 다운 메뉴를 원합니다. 이 5 개 항목 자주 묻는 질문의, 저희에게 연락, 배송 정보, 개인 정보 보호 정책 및 반환 정책 있습니다.
곧은 앞으로 그러나 페이지는 정보 페이지입니다.
내가하고 싶은 것은이 페이지에 링크하는 것입니다.
어드바이스의 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'])
);
}
고맙습니다. 작동합니다. – user3569147