/** * Sets the necessary parameter values in the view. * * @param MW_View_Interface $view The view object which generates the HTML output * @param array &$tags Result array for the list of tags that are associated to the output * @param string|null &$expire Result variable for the expiration date of the output (null for no expiry) * @return MW_View_Interface Modified view object */ protected function _setViewParams(MW_View_Interface $view, array &$tags = array(), &$expire = null) { if (!isset($this->_cache)) { $view = parent::_setViewParams($view); $view->summaryTaxRates = $this->_getTaxRates($view->summaryBasket); $this->_cache = $view; } return $this->_cache; }
/** * Sets the necessary parameter values in the view. * * @param MW_View_Interface $view The view object which generates the HTML output * @param array &$tags Result array for the list of tags that are associated to the output * @param string|null &$expire Result variable for the expiration date of the output (null for no expiry) * @return MW_View_Interface Modified view object */ protected function _setViewParams(MW_View_Interface $view, array &$tags = array(), &$expire = null) { $view = parent::_setViewParams($view); if (!isset($this->_cache)) { $basket = $view->standardBasket; $target = $view->config('client/html/checkout/standard/url/target'); $cntl = $view->config('client/html/checkout/standard/url/controller', 'checkout'); $action = $view->config('client/html/checkout/standard/url/action', 'index'); $config = $view->config('client/html/checkout/standard/url/config', array()); $view->summaryParams = $view->get('standardParams', array()); $view->summaryUrlServicePayment = $view->url($target, $cntl, $action, array('c-step' => 'payment'), array(), $config); $view->summaryUrlServiceDelivery = $view->url($target, $cntl, $action, array('c-step' => 'delivery'), array(), $config); $view->summaryTaxRates = $this->_getTaxRates($basket); $view->summaryEnableModify = true; $view->summaryBasket = $basket; $this->_cache = $view; } return $this->_cache; }