Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $category_info = $this->model_catalog_product->getProductCategory($result['product_id']);
- if($category_info==false){$category_id2 = "0";}else{
- $category_name2 = $category_info[0]['category_name'];
- $category_id2 = $category_info[0]['category_id'];
- $this->data['categories2'][$category_info[0]['category_id']] = array(
- 'name' => $category_info[0]['category_name'],
- 'link' => $this->url->link('product/category', 'path=' . $category_info[0]['category_id']),
- );
- }
- if(!isset($products_array2[$category_id2])){$products_array2[$category_id2] = array();}
- $products_array2[$category_id2][] = array(
- 'product_id' => $result['product_id'],
- 'thumb' => $image,
- 'name' => $result['name'],
- 'price' => $price,
- 'price_byr' => $price_byr,
- 'special' => $special,
- 'special_byr'=> $special_byr,
- 'rating' => $rating,
- 'reviews' => sprintf($this->language->get('text_reviews'), (int)$result['reviews']),
- 'href' => $this->url->link('product/product', 'product_id=' . $result['product_id']),
- );
- $this->data['products2'] = $products_array2;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement