瀏覽代碼

[producer] Correctif dispos produits

dev
Guillaume 4 年之前
父節點
當前提交
4e1859bd5a
共有 1 個檔案被更改,包括 4 行新增4 行删除
  1. +4
    -4
      producer/controllers/OrderController.php

+ 4
- 4
producer/controllers/OrderController.php 查看文件

@@ -605,7 +605,7 @@ class OrderController extends ProducerBaseController
]);

// Produits
/*if (Producer::getConfig('option_allow_user_gift')) {
if (Producer::getConfig('option_allow_user_gift')) {
$productsArray = Product::find()
->orWhere(['id_producer' => $this->getProducer()->id,])
//->orWhere(['id_producer' => 0,]) // produit "Don";
@@ -613,13 +613,13 @@ class OrderController extends ProducerBaseController
} else {
$productsArray = Product::find()
->where(['id_producer' => $this->getProducer()->id,]);
}*/
}

$productsArray = Product::find()
/*$productsArray = Product::find()
->where([
'id_producer' => $this->getProducer()->id,
'active' => 1,
]);
]);*/

$productsArray = $productsArray->joinWith(['productDistribution' => function ($query) use ($distribution) {
$query->andOnCondition('product_distribution.id_distribution = ' . $distribution->id);

Loading…
取消
儲存