NoteStar 5 years ago
parent
commit
524886ccd7

BIN
appimage/common/appfront/custom/logo.png


+ 1 - 1
vendor/fancyecommerce/fecshop/app/appfront/modules/Catalog/block/category/Index.php

@@ -259,7 +259,6 @@ class Index extends \yii\base\BaseObject
             $filter_attrs = array_diff($filter_attrs, $current_fileter_unselect_arr);
             $this->_filter_attr = $filter_attrs;
         }
-
         return $this->_filter_attr;
     }
     /**
@@ -312,6 +311,7 @@ class Index extends \yii\base\BaseObject
     {
         $filter_info = [];
         $filter_attrs = $this->getFilterAttr();
+
         foreach ($filter_attrs as $attr) {
             if ($attr != 'price') {
                 $filter_info[$attr] = Yii::$service->product->getFrontCategoryFilter($attr, $this->_where);

+ 4 - 2
vendor/fancyecommerce/fecshop/services/product/ProductMysqldb.php

@@ -1039,7 +1039,9 @@ class ProductMysqldb extends Service implements ProductInterface
                 'and',
                 ['in', 'id', $productIds]
             ];
-
+            $appName = Yii::$service->helper->getAppName();
+            $category_query_priceRange = Yii::$app->store->get($appName.'_catalog','category_query_priceRange');
+            //print_r($ca)
             foreach ($where as $k=>$v) {
                 if ($k == 'price' && is_array($v)) {  // 价格数据处理。
                     foreach ($v as $k1=>$v1) {
@@ -1050,7 +1052,7 @@ class ProductMysqldb extends Service implements ProductInterface
                         if ($k1 == '$lt') $fh = '<' ;
                         $whereArr[] = [$fh, 'price', $v1];
                     }
-                }elseif( $k == 'color' ){
+                }elseif( strpos('colorsize',$k) !== FALSE   ){
                     $whereArr[] = ['like','attr_group_info',$v];
                 } else {
                     $whereArr[] = [$k =>$v];