дополнение: дополнение
пишет, что проблема в строке $url = ' ';
код:
/* MICRODATA */
'currency' => $this->currency->getCode(),
'availability' => $result['quantity'] ? true : false,
'reviews' => (int) $result['reviews'],
/* MICRODATA */
'price_no_format' => $price_no_format,
'special_no_format' => $special_no_format,
'product_quantity' => $product_quantity,
'stock_status' => $stock_status,
'additional_img' => $additional_img,
'additional_image_hover' => $additional_image_hover,
'reviews' => sprintf((int)$result['reviews']),
'skidka' => $skidka,
'model' => $result['model'],
'date_available' => $result['date_available'],//added
'viewed' => $result['viewed'], //added
'top_bestsellers' => $top_bestsellers['total'], //added
'product_id' => $result['product_id'],
'thumb' => $image,
'name' => $result['name'],
'description' => utf8_substr(strip_tags(html_entity_decode($result['description'], ENT_QUOTES, 'UTF-8')), 0, $this->config->get('config_product_description_length')) . '..',
'price' => $price,
'special' => $special,
'tax' => $tax,
'minimum' => $result['minimum'] > 0 ? $result['minimum'] : 1,
'stock' => $stock,
'rating' => $result['rating'],
'href' => $this->url->link('product/product', 'path=' . $this->request->get['path'] . '&product_id=' . $result['product_id'] . $url)
);
}
$url = '';
if (isset($this->request->get['filter'])) {
$url .= '&filter=' . $this->request->get['filter'];
}
if (isset($this->request->get['limit'])) {
$url .= '&limit=' . $this->request->get['limit'];
}
$data['sorts'] = array();
$data['sorts'][] = array(
'text' => $this->language->get('text_default'),
'value' => 'p.sort_order-ASC',
'href' => $this->url->link('product/category', 'path=' . $this->request->get['path'] . '&sort=p.sort_order&order=ASC' . $url)
);