Exemplo n.º 1
0
 /**
  * Sets the necessary parameter values in the view.
  *
  * @param \Aimeos\MW\View\Iface $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 \Aimeos\MW\View\Iface Modified view object
  */
 protected function setViewParams(\Aimeos\MW\View\Iface $view, array &$tags = array(), &$expire = null)
 {
     $view = parent::setViewParams($view, $tags, $expire);
     if (!isset($this->cache)) {
         $basket = $view->standardBasket;
         $bTarget = $view->config('client/html/basket/standard/url/target');
         $bCntl = $view->config('client/html/basket/standard/url/controller', 'basket');
         $bAction = $view->config('client/html/basket/standard/url/action', 'index');
         $bConfig = $view->config('client/html/basket/standard/url/config', array());
         $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->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->summaryUrlBasket = $view->url($bTarget, $bCntl, $bAction, array(), array(), $bConfig);
         $view->summaryTaxRates = $this->getTaxRates($basket);
         $view->summaryBasket = $basket;
         $this->cache = $view;
     }
     return $this->cache;
 }
Exemplo n.º 2
0
 /**
  * Sets the necessary parameter values in the view.
  *
  * @param \Aimeos\MW\View\Iface $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 \Aimeos\MW\View\Iface Modified view object
  */
 protected function setViewParams(\Aimeos\MW\View\Iface $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;
 }
Exemplo n.º 3
0
 /**
  * Sets the necessary parameter values in the view.
  *
  * @param \Aimeos\MW\View\Iface $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 \Aimeos\MW\View\Iface Modified view object
  */
 protected function setViewParams(\Aimeos\MW\View\Iface $view, array &$tags = array(), &$expire = null)
 {
     if (!isset($this->cache)) {
         $view = parent::setViewParams($view);
         $view->summaryTaxRates = $this->getTaxRates($view->summaryBasket);
         if ($view->confirmOrderItem->getPaymentStatus() > \Aimeos\MShop\Order\Item\Base::PAY_PENDING) {
             $view->summaryShowDownloadAttributes = true;
         }
         $this->cache = $view;
     }
     return $this->cache;
 }