Jump to content

senja

Members
  • Content count

    1
  • Joined

  • Last visited

About senja

  • Rank
    PrestaShop Newbie

Profile Information

  • Activity
    Agency
  1. private static function getId_featureFilterSubQuery($filter_value, $ignore_join = false) { if (empty($filter_value)) { return array(); } $query_filters = ' AND EXISTS (SELECT * FROM '._DB_PREFIX_.'feature_product fp WHERE fp.id_product = p.id_product AND '; foreach ($filter_value as $filter_val) { $query_filters .= 'fp.`id_feature_value` = '.(int) $filter_val.' OR '; } $query_filters = rtrim($query_filters, 'OR ').') '; return array('where' => $query_filters); } там нужно скобки поставить private static function getId_featureFilterSubQuery($filter_value, $ignore_join = false) { if (empty($filter_value)) { return array(); } $query_filters = ' AND EXISTS (SELECT * FROM '._DB_PREFIX_.'feature_product fp WHERE fp.id_product = p.id_product AND ('; foreach ($filter_value as $filter_val) { $query_filters .= 'fp.`id_feature_value` = '.(int) $filter_val.' OR '; } $query_filters = rtrim($query_filters, 'OR ').') )'; return array('where' => $query_filters); } иначе при нескольких условии не правельная выборка
×