124 $this->
getConfig()->setConfigParam(
'bl_perfCalcVatOnlyForBasketOrder',
false);
128 $oBasket->onUpdate();
150 if (
$myConfig->getConfigParam(
'blPsBasketReservationEnabled')) {
151 $this->
getSession()->getBasketReservations()->renewExpiration();
152 if (!$oBasket || ($oBasket && !$oBasket->getProductsCount())) {
159 if (!$oUser && ($oBasket && $oBasket->getProductsCount() > 0)) {
161 } elseif (!$oBasket || !$oUser || ($oBasket && !$oBasket->getProductsCount())) {
195 if (!$this->
getSession()->checkSessionChallenge()) {
200 $this->_blConfirmAGBError = 1;
207 $sOrderCustomerInfo = $oConfig->getRequestParameter(
'ord_custinfo');
209 $this->_blConfirmCustInfoError = 1;
222 if ($oBasket->getProductsCount()) {
225 $oOrder =
oxNew(
'oxorder');
228 $iSuccess = $oOrder->finalizeOrder($oBasket, $oUser);
231 $oUser->onOrderExecute($oBasket, $iSuccess);
237 oxRegistry::get(
"oxUtilsView")->addErrorToDisplay($oEx,
false,
true,
'basket');
253 if ($this->_oPayment === null) {
254 $this->_oPayment =
false;
260 $sPaymentid = $oBasket->getPaymentId();
261 $oPayment =
oxNew(
'oxpayment');
263 if ($sPaymentid && $oPayment->load($sPaymentid) &&
264 $oPayment->isValidPayment(
268 $oBasket->getPriceForPayment(),
272 $this->_oPayment = $oPayment;
286 if ($this->_oBasket === null) {
287 $this->_oBasket =
false;
289 $this->_oBasket = $oBasket;
313 if ($this->_sOrderRemark === null) {
314 $this->_sOrderRemark =
false;
330 if ($this->_oBasketArtList === null) {
331 $this->_oBasketArtList =
false;
333 $this->_oBasketArtList = $oBasket->getBasketArticles();
347 if ($this->_oDelAddress === null) {
348 $this->_oDelAddress =
false;
349 $oOrder =
oxNew(
'oxorder');
350 $this->_oDelAddress = $oOrder->getDelAddressInfo();
363 if ($this->_oShipSet === null) {
364 $this->_oShipSet =
false;
366 $oShipSet =
oxNew(
'oxdeliveryset');
367 if ($oShipSet->load($oBasket->getShippingId())) {
368 $this->_oShipSet = $oShipSet;
383 if ($this->_blConfirmAGB === null) {
384 $this->_blConfirmAGB =
false;
385 $this->_blConfirmAGB = $this->
getConfig()->getConfigParam(
'blConfirmAGB');
400 if ($this->_blConfirmCustInfo === null) {
401 $this->_blConfirmCustInfo =
false;
402 $sConf = $this->
getConfig()->getConfigParam(
'blConfirmCustInfo');
403 if ($sConf != null) {
404 $this->_blConfirmCustInfo = $this->
getConfig()->getConfigParam(
'blConfirmCustInfo');
440 if ($this->_blShowOrderButtonOnTop === null) {
441 $this->_blShowOrderButtonOnTop =
false;
442 $this->_blShowOrderButtonOnTop = $this->
getConfig()->getConfigParam(
'blShowOrderButtonOnTop');
459 if ($this->_iWrapCnt === null) {
460 $this->_iWrapCnt = 0;
462 $oWrap =
oxNew(
'oxwrapping');
463 $this->_iWrapCnt += $oWrap->getWrappingCount(
'WRAP');
464 $this->_iWrapCnt += $oWrap->getWrappingCount(
'CARD');
481 $aPath[
'title'] =
oxRegistry::getLang()->translateString(
'ORDER_COMPLETED', $iBaseLanguage,
false);
482 $aPath[
'link'] = $this->
getLink();
508 $sDelAddress = $oUser->getEncodedDeliveryAddress();
512 $oDelAdress =
oxNew(
'oxaddress');
515 $sDelAddress .= $oDelAdress->getEncodedDeliveryAddress();
526 public function getBasketContentMarkGenerator()
529 $oBasketContentMarkGenerator =
oxNew(
'oxBasketContentMarkGenerator', $this->
getBasket());
531 return $oBasketContentMarkGenerator;
545 $sNextStep =
'thankyou';
550 $sNextStep =
'thankyou?mailerror=1';
553 $sNextStep =
'order?iAddressError=1';
556 $sNextStep =
'order';
561 $sNextStep =
'payment?payerror=2';
565 case (is_numeric($iSuccess) && $iSuccess > 3):
567 $sNextStep =
'payment?payerror=' . $iSuccess;
569 case (!is_numeric($iSuccess) && $iSuccess):
572 $iSuccess = urlencode($iSuccess);
573 $sNextStep =
'payment?payerror=-1&payerrortext=' . $iSuccess;
592 if ($oConfig->getConfigParam(
'blConfirmAGB') && !$oConfig->getRequestParameter(
'ord_agb')) {
596 if ($oConfig->getConfigParam(
'blEnableIntangibleProdAgreement')) {
599 $blDownloadableProductsAgreement = $oConfig->getRequestParameter(
'oxdownloadableproductsagreement');
600 if ($blValid && $oBasket->hasArticlesWithDownloadableAgreement() && !$blDownloadableProductsAgreement) {
604 $blServiceProductsAgreement = $oConfig->getRequestParameter(
'oxserviceproductsagreement');
605 if ($blValid && $oBasket->hasArticlesWithIntangibleAgreement() && !$blServiceProductsAgreement) {