Example #1
0
 /**
  * Check - can apply this modifier or not
  *
  * @return boolean
  */
 public function canApply()
 {
     return parent::canApply() && $this->hasDiscount();
 }
Example #2
0
 /**
  * Check - can apply this modifier or not
  *
  * @return boolean
  */
 public function canApply()
 {
     return parent::canApply() && $this->checkCoupons();
 }