protected function _afterLoad() { parent::_afterLoad(); $paymentMethodsIds = $this->_getData('payment_methods_ids'); if (is_string($paymentMethodsIds)) { $this->setPaymentMethodsIds(explode(',', $paymentMethodsIds)); } $shippingMethodsIds = $this->_getData('shipping_methods_ids'); if (is_string($shippingMethodsIds)) { $this->setShippingMethodsIds(explode(',', $shippingMethodsIds)); } }
/** * Processing object after load data * * @return Mage_Core_Model_Abstract */ protected function _afterLoad() { $this->setCouponCode($this->getPrimaryCoupon()->getCode()); $this->setUsesPerCoupon($this->getPrimaryCoupon()->getUsageLimit()); return parent::_afterLoad(); }
/** * Fix error when load and save with collection */ protected function _afterLoad() { $this->setConditions(null); $this->setActions(null); return parent::_afterLoad(); }