Browse Source

Désactivation des dons possibles à la plateforme

dev
Guillaume Bourgeois 4 years ago
parent
commit
4222a9eb62
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      producer/controllers/OrderController.php

+ 2
- 1
producer/controllers/OrderController.php View File

if (Producer::getConfig('option_allow_user_gift')) { if (Producer::getConfig('option_allow_user_gift')) {
$productsArray = Product::find() $productsArray = Product::find()
->orWhere(['id_producer' => $this->getProducer()->id,]) ->orWhere(['id_producer' => $this->getProducer()->id,])
->orWhere(['id_producer' => 0,]); // produit "Don";
//->orWhere(['id_producer' => 0,]) // produit "Don";
;
} else { } else {
$productsArray = Product::find() $productsArray = Product::find()
->where(['id_producer' => $this->getProducer()->id,]); ->where(['id_producer' => $this->getProducer()->id,]);

Loading…
Cancel
Save