Post
by hicomtech » Thu Sep 27, 2012 9:57 pm
i have problem with Menu Acordeon v1.5.1, i use opencart V1.5.1 if i active this module so in my category have this erro:
foreach ($categories as $category) { if (((int)$this->data['category_id'] == (int)$category['category_id'])) { $children_data = array(); $children = $this->model_catalog_category->getCategories($category['category_id']); $i = 0; foreach ($children as $child) { if ($i == 0 && (int)$this->data['category_id'] == (int)$child['category_id']) { $data = array( 'filter_category_id' => $child['category_id'], 'filter_sub_category' => true ); $children_data[] = array( 'category_id' => $child['category_id'], 'name' => $child['name'], 'href' => $this->url->link('product/category', 'path=' . $category['category_id'] . '_' . $child['category_id']) ); } $i++; } $data = array( 'filter_category_id' => $category['category_id'], 'filter_sub_category' => true ); $product_total = $this->model_catalog_product->getTotalProducts($data); $this->data['categories'][] = array( 'category_id' => $category['category_id'], 'name' => $category['name'], 'children' => $children_data, 'href' => $this->url->link('product/category', 'path=' . $category['category_id']) ); break; } else { $children_data = array(); $children = $this->model_catalog_category->getCategories($category['category_id']); $i = 0; foreach ($children as $child) { $data = array( 'filter_category_id' => $child['category_id'], 'filter_sub_category' => true ); $children_data[] = array( 'category_id' => $child['category_id'], 'name' => $child['name'], 'href' => $this->url->link('product/category', 'path=' . $category['category_id'] . '_' . $child['category_id']) ); $i++; } $data = array( 'filter_category_id' => $category['category_id'], 'filter_sub_category' => true ); $product_total = $this->model_catalog_product->getTotalProducts($data); $this->data['categories'][] = array( 'category_id' => $category['category_id'], 'name' => $category['name'], 'children' => $children_data, 'href' => $this->url->link('product/category', 'path=' . $category['category_id']) ); } }
have solution for my problem...thanks for any body can help...