예제 #1
0
 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();
 }
예제 #2
0
 protected function _initForm()
 {
     parent::_initForm();
     if ($this->_recipient) {
         $this->_form->setId($this->_recipient->id);
     }
 }
예제 #3
0
 protected function _initForm()
 {
     parent::_initForm();
     if (!$this->_form->getModel()) {
         $this->_form->setModel(new Kwf_Model_FnF());
     }
 }
예제 #4
0
 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());
 }
예제 #5
0
 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();
 }
예제 #6
0
 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');
 }
예제 #7
0
 protected function _initForm()
 {
     parent::_initForm();
     $user = Kwf_Registry::get('userModel')->getAuthedUser();
     if ($user) {
         $this->_form->setId($user->id);
     }
     $this->_initUserForm();
 }
예제 #8
0
 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);
 }
예제 #9
0
 protected function _initForm()
 {
     parent::_initForm();
     $this->_form->setModel(new Kwf_Model_FnF());
     $this->_form->add(new Kwf_Form_Field_Hidden('code'));
 }
예제 #10
0
 protected function _initForm()
 {
     parent::_initForm();
     $this->_form->setId(Kwc_Shop_Cart_Orders::getCartOrderId());
 }
예제 #11
0
 protected function _initForm()
 {
     parent::_initForm();
     $this->_form->setModel($this->getData()->parent->getComponent()->getPostsModel());
 }
예제 #12
0
 protected function _initForm()
 {
     parent::_initForm();
     $this->_initUserForm();
 }