public function getTemplateVars(Kwf_Component_Renderer_Abstract $renderer) { $ret = parent::getTemplateVars($renderer); $ret['write'] = $this->getData()->getChildComponent('_write'); $ret['quickwrite'] = $this->getData()->getChildComponent('-quickwrite'); return $ret; }
public function getTemplateVars() { $ret = parent::getTemplateVars(); $ret['write'] = $this->getData()->getChildComponent('_write'); $ret['quickwrite'] = $this->getData()->getChildComponent('-quickwrite'); return $ret; }
public function getTemplateVars(Kwf_Component_Renderer_Abstract $renderer) { $ret = parent::getTemplateVars($renderer); $ret['countProducts'] = $this->getData()->countChildComponents(array('generator' => 'detail')); $ret['checkout'] = $this->getData()->getChildComponent('_checkout'); $ret['shop'] = $this->getData()->getParentPage(); $ret['order'] = Kwf_Model_Abstract::getInstance($this->_getSetting('childModel'))->getReferencedModel('Order')->getCartOrder(); $ret['subTotal'] = $ret['order']->getSubTotal(); $ret['total'] = $ret['order']->getTotal(); $ret['sumRows'] = $ret['order']->getSumRows(); return $ret; }
public function getTemplateVars() { $ret = parent::getTemplateVars(); $ret['countProducts'] = $this->getData()->countChildComponents(array('generator' => 'detail')); $ret['checkout'] = $this->getData()->getChildComponent('_checkout'); $ret['shop'] = $this->getData()->getParentPage(); $ret['order'] = Kwf_Model_Abstract::getInstance($this->_getSetting('childModel'))->getReferencedModel('Order')->getCartOrder(); $ret['subTotal'] = $ret['order']->getSubTotal(); $ret['total'] = $ret['order']->getTotal(); $ret['sumRows'] = $ret['order']->getSumRows(); foreach ($ret['sumRows'] as $k => $i) { $ret['sumRows'][$k]['text'] = $this->getData()->trlStaticExecute($i['text']); } return $ret; }