protected function _beforeInsert(Kwf_Model_Row_Interface $row) { parent::_beforeInsert($row); $row->component_id = $this->getData()->dbId; $row->user_id = Kwf_Registry::get('userModel')->getAuthedUser()->id; $row->date = date('Y-m-d H:i:s', time()); }
protected function _beforeInsert(Kwf_Model_Row_Interface $row) { parent::_beforeInsert($row); $orders = Kwf_Model_Abstract::getInstance('Kwc_Shop_Cart_Orders'); $row->shop_order_id = $orders->getCartOrderAndSave()->id; $row->add_component_id = $this->getData()->dbId; $row->add_component_class = $this->getData()->componentClass; }
protected function _beforeInsert(Kwf_Model_Row_Interface $row) { parent::_beforeInsert($row); $row->subscribe_date = date('Y-m-d H:i:s'); if ($this->_getSetting('subscribeType') == self::CONFIRM_MAIL_ONLY) { $row->unsubscribed = 0; $row->activated = 1; } else { if ($this->_getSetting('subscribeType') == self::DOUBLE_OPT_IN) { // set unsubscribed to not send him a newsletter until he // double-opted-in $row->unsubscribed = 0; $row->activated = 0; } } $row->newsletter_component_id = $this->getSubscribeToNewsletterComponent()->dbId; }
protected function _beforeInsert(Kwf_Model_Row_Interface $row) { parent::_beforeInsert($row); $addToCart = $this->getData()->parent->getComponent()->getAddToCartForm($this->getData()); $addToCart->getComponent()->_beforeInsert($row); }
protected function _beforeInsert(Kwf_Model_Row_Interface $row) { parent::_beforeInsert($row); $row->component_id = $this->getData()->parent->dbId; }