$description = function_exists('utf8_substr') ? utf8_substr(strip_tags(html_entity_decode($product['description'], ENT_QUOTES, 'UTF-8')), 0, 350) . '..' :
substr(strip_tags(html_entity_decode($product['description'], ENT_QUOTES, 'UTF-8')), 0, 350) . '..';
if($product['quantity'] <= 0) {
$rstock = $product['stock_status'];
} elseif($this->config->get('config_stock_display')) {
$rstock = $product['quantity'];
} else {
$rstock = $this->language->get('text_instock');
}
$path = isset($this->request->post['path']) ? 'path=' . $this->request->post['path'] : '';
$result[] = array(
'sku' => $filterpro_setting['sku_display'] ? $product['sku'] : false,
'model' => $filterpro_setting['model_display'] ? $product['model'] : false,
'brand' => $filterpro_setting['brand_display'] ? $product['manufacturer'] : false,
'location' => $filterpro_setting['location_display'] ? $product['location'] : false,
'upc' => $filterpro_setting['upc_display'] ? $product['upc'] : false,
'stock' => $filterpro_setting['stock_display'] ? $rstock : false,
'product_id' => $product['product_id'],
'image' => $image,
'thumb' => $image,
'special' => $special,
'tax' => $tax,
'rating' => $rating,
'name' => $product['name'],
'description' => $description,
'price' => $price,
'href' => $this->url->link('product/product', $path . '&product_id=' . $product['product_id'])
[/spoil]
В стандартном
catalog/controller/product/category.php
[spoil]
$this->data['products'][] = array(
'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, 250) . '..',
'price' => $price,
'special' => $special,
'tax' => $tax,
'rating' => $result['rating'],
'reviews' => sprintf($this->language->get('text_reviews'), (int)$result['reviews']),
'href' => $this->url->link('product/product', 'path=' . $this->request->get['path'] . '&product_id=' . $result['product_id'])
);
[/spoil]
А шорт дескрипшин
catalog/controller/product/category.php
Не находит
[spoil]
<file name="catalog/controller/product/category.php">
<operation>
<search position="after" offset="3" ><![CDATA[$this->data['products'][] = array(]]></search>
и не добавляет
<add><![CDATA['short_description' => html_entity_decode(!empty($result['short_description']) ? $result['short_description'] : '', ENT_QUOTES, 'UTF-8'),]]></add>
</operation>
</file>