public function alterBackendOrderForm(Kwc_Shop_AddToCartAbstract_FrontendForm $form)
 {
     $component = null;
     foreach (Kwc_Abstract::getComponentClasses() as $c) {
         if (is_instance_of($c, 'Kwc_Shop_Products_Directory_Component')) {
             $detailClasses = Kwc_Abstract::getChildComponentClasses($c, 'detail');
             foreach ($detailClasses as $key => $class) {
                 if (Kwc_Abstract::getChildComponentClass($class, 'addToCart') == $this->_class) {
                     $component = $key;
                 }
             }
         }
     }
     $m = Kwf_Model_Abstract::getInstance('Kwc_Shop_Products');
     $s = $m->select();
     $s->whereEquals('visible', 1);
     if ($component) {
         $s->whereEquals('component', $component);
     }
     $s->order('pos');
     $data = array();
     foreach ($m->getRows($s) as $product) {
         $data[] = array($product->current_price_id, $product->__toString() . ' (' . $product->current_price . ' €)');
     }
     $form->prepend(new Kwf_Form_Field_Select('shop_product_price_id', trlKwfStatic('Product')))->setValues($data)->setAllowBlank(false);
 }
 protected function _initFields()
 {
     parent::_initFields();
     $this->add(new Kwf_Form_Field_Select('amount', trlKwfStatic('Amount')))->setAllowBlank(false)->setValues($this->_getAmountValues())->setEditable(true);
 }
 protected function _initFields()
 {
     parent::_initFields();
     $this->add(new Kwf_Form_Field_NumberField('value', trlcKwfStatic('Amount of Money', 'Amount')))->setAllowNegative(false)->setWidth(50)->setAllowBlank(false)->setComment('EUR');
 }