Sfoglia il codice sorgente

Désactivation des dons possibles à la plateforme

dev
parent
commit
4222a9eb62
1 ha cambiato i file con 2 aggiunte e 1 eliminazioni
  1. +2
    -1
      producer/controllers/OrderController.php

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

@@ -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…
Annulla
Salva