Example #1
0
 public function updateSession()
 {
     $this->setGlobalPrice();
     $this->setGlobalPriceWithoutVat();
     $this->setGlobalWeight();
     $this->setCartForDelivery();
     Session::setActiveCart($this->Cart);
     Session::setActiveGlobalPrice($this->globalPrice);
     Session::setActiveGlobalWeight($this->globalWeight);
     Session::setActiveGlobalPriceWithoutVat($this->globalPriceWithoutVat);
     Session::setActiveDispatchmethodChecked(0);
     Session::setActiveglobalPriceWithDispatchmethod($this->globalPrice);
     Session::setActiveglobalPriceWithDispatchmethodNetto($this->globalPriceWithoutVat);
     Session::setActivePaymentMethodChecked(0);
     Session::unsetActiveClientOrder();
 }
Example #2
0
 public function setDispatchmethodChecked($dispatchmethodid)
 {
     Session::setActiveDispatchmethodChecked(0);
     Session::setActiveglobalPriceWithDispatchmethod(Session::getActiveGlobalPrice());
     Session::setActiveglobalPriceWithDispatchmethodNetto(Session::getActiveGlobalPriceWithoutVat());
     if ($dispatchmethodid != NULL) {
         $dispatchmethods = $this->getDispatchmethodPrice();
         $dispatchmethodcost = $dispatchmethods[$dispatchmethodid]['dispatchmethodcost'];
         $dispatchmethodcostnetto = $dispatchmethods[$dispatchmethodid]['dispatchmethodcostnetto'];
         $activeDispatchmethod = array('dispatchmethodid' => $dispatchmethodid, 'dispatchmethodcost' => $this->priceFormatParser($dispatchmethodcost), 'dispatchmethodcostnetto' => $this->priceFormatParser($dispatchmethodcostnetto), 'dispatchmethodname' => $dispatchmethods[$dispatchmethodid]['name']);
         Session::setActiveDispatchmethodChecked($activeDispatchmethod);
         Session::setActiveglobalPriceWithDispatchmethod(Session::getActiveGlobalPrice() + $dispatchmethodcost);
         Session::setActiveglobalPriceWithDispatchmethodNetto(Session::getActiveGlobalPriceWithoutVat() + $dispatchmethodcostnetto);
     }
 }