|
|
@@ -89,8 +89,11 @@ class SiteController extends ProducerBaseController |
|
|
|
*/ |
|
|
|
public function actionIndex() |
|
|
|
{ |
|
|
|
$productManager = $this->getProductManager(); |
|
|
|
$pointSaleManager = $this->getPointSaleManager(); |
|
|
|
|
|
|
|
$dataProviderPointsSale = new ActiveDataProvider([ |
|
|
|
'query' => $this->getPointSaleManager()->queryPointSalesPublic($this->getProducerCurrent()), |
|
|
|
'query' => $pointSaleManager->queryPointSalesPublic($this->getProducerCurrent()), |
|
|
|
'pagination' => [ |
|
|
|
'pageSize' => 50, |
|
|
|
], |
|
|
@@ -101,7 +104,7 @@ class SiteController extends ProducerBaseController |
|
|
|
$dataProviderProductsByCategories = []; |
|
|
|
foreach ($productCategoryArray as $productCategory) { |
|
|
|
$dataProviderProductsByCategories[$productCategory->id] = new ActiveDataProvider([ |
|
|
|
'query' => $this->getProductManager()->queryProductsByProductCategory($productCategory), |
|
|
|
'query' => $productManager->queryProductsByProductCategory($productCategory), |
|
|
|
'pagination' => [ |
|
|
|
'pageSize' => 500, |
|
|
|
], |