瀏覽代碼

Désactivation des dons possibles à la plateforme

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

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

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

Loading…
取消
儲存