public function __construct(Product $product, UuidInterface $id = null)
 {
     parent::__construct($id);
     $this->setFlagApplyCatalogPromotions(false);
     $this->product = $product;
     $product->addProductQuantityDiscount($this);
 }
Beispiel #2
0
 /**
  * @param string $code
  * @param UuidInterface $id
  */
 public function __construct($code, UuidInterface $id = null)
 {
     parent::__construct($id);
     $this->flagFreeShipping = false;
     $this->canCombineWithOtherCoupons = false;
     $this->setCode($code);
 }