Лучший Ответ Cheren-dow , 02 June 2015 - 10:14
toyda, еще один вариант, с каким подводными камнями он будет не знаю. Попробуйте в файле
сайт\administrator\components\com_zoo\tables\item.php
найти метод getByCharacter а в нем заменить $query на
$query = "SELECT a.*"
." FROM ".ZOO_TABLE_CATEGORY_ITEM." AS ci"
." JOIN ".$this->name." AS a ON a.id = ci.item_id"
.($join ? $join : "")
." WHERE a.application_id = ".(int) $application_id
." AND a.".$this->app->user->getDBAccessString($user)
.($published == true ? " AND a.state = 1 AND a.type = 'product'" // укажите тип
." AND (a.publish_up = ".$null." OR a.publish_up <= ".$now.")"
." AND (a.publish_down = ".$null." OR a.publish_down >= ".$now.")": "")
." AND BINARY LOWER(LEFT(a.name, 1)) ".(is_array($char) ? ($not_in ? "NOT" : null)." IN (".implode(",", $char).")" : " = '".$db->escape($char)."'")
." ORDER BY a.priority DESC".($order ? ", $order" : "")
.(($limit ? " LIMIT ".(int) $offset.",".(int) $limit : ""));
Перейти к сообщению


Тема закрыта









