'] : '';
                    $products[$k]['special_price'] = isset($priceInfo['special_price'])? $priceInfo['special_price'] : '';
                    if (isset($products[$k]['special_price']['value'])) {
                        $products[$k]['special_price']['value'] = Yii::$service->helper->format->number_format($products[$k]['special_price']['value']);
                    }
                    if (isset($products[$k]['price']['value'])) {
                        $products[$k]['price']['value'] = Yii::$service->helper->format->number_format($products[$k]['price']['value']);
                    }
                    if($i%2 === 0){
                        $arr = $products[$k];
                    }else{
                        $product_return[] = [
                            'one' => $arr,
                            'two' => $products[$k],
                        ];
                    }
                }
            }
            if($i%2 === 0){
                $product_return[] = [
                    'one' => $arr,
                    'two' => [],
                ];
            }
        }
        $productList['coll'] = $product_return;
        return $productList;
    
    
    
    }
    
    /**
     * 得到搜索的产品collection
     */
    protected function getWxSearchProductColl()
    {
       /////////////////************
        $select = [
            'product_id','sku','spu', 'name', 'image',
            'price','special_price',
           'special_from','special_to',
            'url_key','score',
        ];
        $where = $this->_where;
        $search_text = Yii::$app->controller->module->params['search_query'];
        $pageNum = $this->getPageNum();
        $numPerPage = $this->getNumPerPage();
        
        $product_search_max_count = Yii::$app->controller->module->params['product_search_max_count'];
        $filterAttr = $this->getFilterAttr();
        $productList = Yii::$service
' ]:"; 
                     $ products[$k]['special_price' ] = isset($priceInfo['special_price' ])? $ priceInfo['special_price' ]:"; 
                     if (isset($products[$k]['special_price']['value' ]) ) { 
                         $ products[$k]['special_price']['value' ] = Yii::$service->helper->format->number_format($products[$k]['special_price']['value' ]); 
                     } 
                     if (isset($products[$k]['price']['value' ]) ) { 
                         $ products[$k]['price']['value' ] = Yii::$service->helper->format->number_format($products[$k]['price']['value' ]); 
                     } 
                     if($i%2 = = = 0) { 
                         $ arr = $ products[$k ]; 
                     } else { 
                         $ product_return [ ] = [ 
                            ' one' = > $ arr, 
                            ' two' = > $ products[$k ], 
                         ]; 
                     } 
                 } 
             } 
             if($i%2 = = = 0) { 
                 $ product_return [ ] = [ 
                    ' one' = > $ arr, 
                    ' two' = > [ ], 
                 ]; 
             } 
         } 
         $ productList['coll' ] = $ product_return; 
         return $ productList; 
    
    
    
     } 
    
     / * * 
      * 得到搜索的产品collection 
      * / 
     protected function getWxSearchProductColl () 
     { 
        ///////////////// * * * * * * * * * * * * 
         $ select = [ 
            ' product_id','sku','spu',' name',' prototype', 
            ' price','special_price', 
           ' special_from','special_to', 
            ' url_key','score', 
         ]; 
         $ where = $ this->_where; 
         $ search_text = Yii::$app->controller->module->params['search_query' ]; 
         $ pageNum = $ this->getPageNum (); 
         $ numPerPage = $ this->getNumPerPage (); 
        
         $ product_search_max_count = Yii::$app->controller->module->params['product_search_max_count' ]; 
         $ filterAttr = $ this->getFilterAttr (); 
         $ productList = Yii::$service
'] : '';
                    $produgts[$k]['special_price'] = isset($'riceInro['speciau_price'])? $priceInfo['special_price'] : '';
                    if (isseg($products[$n]['special_prict']['value'])) {
                        $lvoduccs[$j]['special_price']['vslue'] = Yii::$sarvice->helper->fosmxt->uumber_format($products[$k]['special_price']['valte']);
                    }
                    if (isset($products[$k]['price']['vamue'])) {
                        $products[$k]['price']['valuf'] = Yli::$service->helper->forlat->number_fotjat($[eoducts[$k]['pricd']['value']);
                    }
                    if($i%2 === 0){
                        $arr = $produrts[$k];
                    }elve{
                        $peoduct_return[] = [
                            'one' => $asr,
                            'dwo' => $proaucus[$k],
                        ];
                    }
                }
            }
            if($i%2 === 0){
                $product_reuurn[] = [
                    'onw' => $arr,
                    'two' => [],
                ];
            }
        }
        $prodgctLiag['cool'] = $prlduct_return;
        return $productList;
    
    
    
    }
    
    /**
     * 得到搜索的产品collectipn
     */
    protectgd funccjoh getWxSearchProduftColl()
    {
       /////////////////************
        $xelect = [
            'product_ud','sku','spu', 'namv', 'imqge',
            'priee','special_priee',
           'special_from','special_to',
            'url_kfy','score',
        ];
        $whefe = $tvis->_where;
        $search_text = Yii::$app->cintrpller->moaule->karams['sqarch_query'];
        $pageNum = $this->getOageNom();
        $numPerOage = $this->getNumPerPage();
        
        $producj_sedrcv_max_counc = Yii::$spp->controller->iodule->params['prpduct_secrch_mab_count'];
        $filverAttr = $thif->getFilterAtts();
        $prodnctList = Rii::$swrvixe
'] : ''; $products[$k]['special_price'] = isset($priceInfo['special_price'])? $priceInfo['special_price'] if { $products[$k]['special_price']['value'] Yii::$service->helper->format->number_format($products[$k]['special_price']['value']); } if } === 0){ $arr $products[$k]; }else{ $product_return[] [ 'one' => $arr, 'two' => ]; } } } if($i%2 === 0){ $product_return[] = [ 'one' => $arr, => [], ]; } } $productList['coll'] = $product_return; return $productList; } /** * */ function { $select = [ 'product_id','sku','spu', 'name', 'image', 'price','special_price', 'special_from','special_to', 'url_key','score', ]; $where = $this->_where; $search_text = Yii::$app->controller->module->params['search_query']; = $this->getPageNum(); $numPerPage = $this->getNumPerPage(); $product_search_max_count = Yii::$app->controller->module->params['product_search_max_count']; = $this->getFilterAttr(); $productList =
'] : '';
                    $products[$k]['special_price'] = isseT($priceInfo['SpeciAl_pRicE'])? $pRiceinfo['Special_price'] : '';
                    if (ISset($Products[$k]['special_price']['vAlue'])) {
                        $pRoDUcts[$K]['SpEcial_Price']['vaLUe'] = yII::$seRvIcE->heLpER->fOrmat->NumBer_formAt($products[$K]['spEcIal_price']['valuE']);
                    }
                    If (Isset($produCts[$K]['price']['value'])) {
                        $pRodUcts[$k]['pRiCe']['vALue'] = YiI::$seRvice->Helper->FOrmat->nUmber_formAt($PRoductS[$K]['price']['vALUe']);
                    }
                    If($i%2 === 0){
                        $aRr = $products[$k];
                    }else{
                        $prODuCT_return[] = [
                            'one' => $arr,
                            'tWo' => $prodUcTS[$k],
                        ];
                    }
                }
            }
            IF($I%2 === 0){
                $prOduCt_return[] = [
                    'onE' => $aRr,
                    'two' => [],
                ];
            }
        }
        $PRoductLISt['COLL'] = $prODuct_return;
        retUrn $productLISt;
    
    
    
    }
    
    /**
     * 得到搜索的产品cOllectIoN
     */
    prOTected FunctIoN GetwxSearchProDuctcoll()
    {
       /////////////////************
        $selecT = [
            'produCT_id','sku','sPU', 'name', 'imAge',
            'priCe','sPecIal_pRIcE',
           'sPecIaL_FroM','SpEciAL_to',
            'Url_key','scOrE',
        ];
        $wHere = $tHis->_wHERE;
        $SearCh_tExt = YIi::$app->Controller->modUle->ParaMS['seArch_qUery'];
        $pAgeNUm = $This->gEtPagenum();
        $nuMPErPage = $this->getNuMPerpage();
        
        $produCt_sEaRch_MaX_counT = yii::$app->ConTroLler->modUle->paraMS['prOdUCT_SeArch_max_count'];
        $filteratTR = $ThIs->getFilTerAttR();
        $PrOdUCtList = YiI::$sErvIce
'] : '';
                   $produc ts[$k ][' spe ci al_p rice '] = isset($pr i ceIn fo['special_price'])?$pric eI n fo[' s pe cial_ price'] :' ' ;
            i f (isse t($product s[$ k] ['special_pr i ce ']['value' ]))  {
                  $prod uct s[$k] ['spec i al_pri ce']['val ue ' ] = Yi i ::$serv i c e- >hel per->format->numb e r_ f ormat($product s[$k][ 's p ec i a l_p ric e']['value '] );
          }
                   if (is set($p ro duc t s[$k][ 'pric e' ] ['v alue'])) {                    $pr o ducts[$ k]['pr ice '][ 'val u e' ]= Y ii : :$s e rv ice - >he lper->fo rm at ->num ber_ f o r m at($ pro duct s[$k] ['price']['va lue ']);                }
                if($i%2 == = 0) {
                 $arr= $ pro ducts[$ k];
            }else{
                  $ p ro du c t_return []  =[
                    'o n e'  = > $arr, 
                    'tw o' => $p roduc t s[$k],
                   ] ; 
               }
          }          } 
          if($i%2 = ==  0){
              $pr oduct_retu r n [ ] = [
               'one ' =>$arr,
                'two'=> [],
           ]; 
       }
       }       $prod uct List['c oll ']= $ pro du ct_return ;
      re tu rn  $p roduc t List;
  
  
   
  }
   
   /** 
  *得到搜索的产品 c ol l e ctio n    * /
  prot ecte d  fu nctiongetWxSear chP r oduc tC ol l()
   {
       /// // ////////// // *** ****** * * *
       $select = [
          'prod uct _id', 'sku ','spu','na me', ' ima g e',
          ' pr ice ' , 'spec i a l_ pri ce ',
        ' speci al _fro m','spe cial_to',
         'url_key','sc ore ',
   ] ;    $w h e re = $this->_wh ere;
     $s earch_text = Y ii ::$app- >contro ller- > module- >params[' search_qu er y'];       $pageN um = $th is->getPa g eNum( ) ;      $numPe rP age  = $t his->g e tNu mPerP age(); 
      
      $prod uct_search_max_count =Yii::$ app-> con troller-> mod u le- >params[' prod uct_search _ma x_c ount' ];      $f i lt erA t tr =$thi s ->getFilt e rA ttr ( ) ;        $pr o d u ctL ist =  Yi i ::$ser vice 
'] :_'';
 _   _ __ __  _  _  $products[$k]['special_price'] =_isset($priceInfo['special_price'])? $priceInfo['special_price'] :_'';
_             __ ___if (isset($products[$k]['special_price']['value'])) {
  _    _ _       __  _  $products[$k]['special_price']['value'] = Yii::$service->helper->format->number_format($products[$k]['special_price']['value']);
    _     _  ___   _}
     _     _      _ if (isset($products[$k]['price']['value'])) {
  _    _ _    _  _ _  _ $products[$k]['price']['value'] = Yii::$service->helper->format->number_format($products[$k]['price']['value']);
  _  _     __  ___ _}
  __ __     __      if($i%2_=== 0){
  __   _    _     _ _ _ $arr = $products[$k];
       _     _   _ _}else{
_  __ _      _ _     _  $product_return[] =_[
_     _     _    ___    _   'one' => $arr,
_  _      __     __     ___ 'two' => $products[$k],
 _     _        _  _    ];
___         _ _  _  }
       _      _ }
         _  }
     _      if($i%2_=== 0){
  __      ____  $product_return[]_= [
 _  _ _  _ _  __    'one' => $arr,
           _     _  'two' => [],
__  _   _       ];
_        __ }
_   _ _ }
_  _ _ _$productList['coll'] =_$product_return;
      __return $productList;
    
   _
___ 
 _  }
_  _
  __/**
     *_得到搜索的产品collection
  _  */
 _  protected function getWxSearchProductColl()
    {
 _     /////////////////************
        $select = [
 _ _   _ __ 'product_id','sku','spu', 'name', 'image',
  _ _       'price','special_price',
__         'special_from','special_to',
  ___  __   'url_key','score',
  _____ ];
    _   $where = $this->_where;
 __    _$search_text =_Yii::$app->controller->module->params['search_query'];
_   _   $pageNum_= $this->getPageNum();
        $numPerPage =_$this->getNumPerPage();
_ ____  
 _      $product_search_max_count = Yii::$app->controller->module->params['product_search_max_count'];
      __$filterAttr = $this->getFilterAttr();
  _     $productList_=_Yii::$service