Esempio n. 1
0
 /**
  * Set coupon code and uses per coupon
  *
  * @return $this
  */
 protected function _afterLoad()
 {
     $this->loadCouponCode();
     return parent::_afterLoad();
 }
Esempio n. 2
0
 /**
  * Set coupon code and uses per coupon
  *
  * @return $this
  */
 protected function _afterLoad()
 {
     $this->loadRelations();
     return parent::_afterLoad();
 }
Esempio n. 3
0
 /**
  * Set coupon code and uses per coupon
  *
  * @return $this
  */
 protected function _afterLoad()
 {
     $this->setCouponCode($this->getPrimaryCoupon()->getCode());
     if ($this->getUsesPerCoupon() !== null && !$this->getUseAutoGeneration()) {
         $this->setUsesPerCoupon($this->getPrimaryCoupon()->getUsageLimit());
     }
     return parent::_afterLoad();
 }