protected function _initForm() { $addToCart = $this->getData()->parent->getComponent()->getAddToCartForm($this->getData()); $this->_form = $addToCart->getComponent()->getForm(); $this->_form->setName('order' . $addToCart->parent->getComponent()->getProductRow()->id); parent::_initForm(); }
protected function _initForm() { parent::_initForm(); if ($this->_recipient) { $this->_form->setId($this->_recipient->id); } }
protected function _initForm() { parent::_initForm(); if (!$this->_form->getModel()) { $this->_form->setModel(new Kwf_Model_FnF()); } }
protected function _initForm() { parent::_initForm(); $this->_form->setModel($this->getData()->parent->getComponent()->getOrderModel()); $this->_form->setId(Kwc_Shop_Cart_Orders::getCartOrderId()); //can be null $this->_form->setPayments($this->_getFrontendPayments()); }
protected function _initForm() { $this->_form = new Kwf_Form(); $this->_form->setModel(new Kwf_Model_FnF()); foreach ($this->getData()->parent->getComponent()->getFormComponents() as $form) { $this->_form->add($form->getForm()); } parent::_initForm(); }
protected function _initForm() { parent::_initForm(); $this->_form->add(new Kwf_Form_Field_Static('<div class="footer"></div>'))->setCls('footer'); $closeText = $this->_getPlaceholder('closeButtonText'); $closeButton = '<a class="closeButton">' . $closeText . '</a><div class="kwfUp-clear"></div>'; //Cancel Button $this->_form->add(new Kwf_Form_Field_Static($closeButton))->setCls('cancel'); }
protected function _initForm() { parent::_initForm(); $user = Kwf_Registry::get('userModel')->getAuthedUser(); if ($user) { $this->_form->setId($user->id); } $this->_initUserForm(); }
protected function _initForm() { parent::_initForm(); $cart = Kwf_Component_Data_Root::getInstance()->getComponentByClass(array('Kwc_Shop_Cart_Component', 'Kwc_Shop_Cart_Trl_Component'), array('subroot' => $this->getData(), 'ignoreVisible' => true)); if (!$cart) { throw new Kwf_Exception_Client(trlKwf('Need cart for shop but could not find it. Please add in Admin.')); } $m = $cart->getComponent()->getOrderProductsModel(); $this->_form->setModel($m); }
protected function _initForm() { parent::_initForm(); $this->_form->setModel(new Kwf_Model_FnF()); $this->_form->add(new Kwf_Form_Field_Hidden('code')); }
protected function _initForm() { parent::_initForm(); $this->_form->setId(Kwc_Shop_Cart_Orders::getCartOrderId()); }
protected function _initForm() { parent::_initForm(); $this->_form->setModel($this->getData()->parent->getComponent()->getPostsModel()); }
protected function _initForm() { parent::_initForm(); $this->_initUserForm(); }