92 if ($this->
getConfig()->getConfigParam(
'blPsBasketReservationEnabled' )) {
93 $this->
getSession()->getBasketReservations()->renewExpiration();
108 if ( $this->_oBasketArticles === null) {
109 $this->_oBasketArticles =
false;
112 if ( $oBasket = $this->
getSession()->getBasket() ) {
113 $this->_oBasketArticles = $oBasket->getBasketArticles();
126 if ( $this->_oFirstBasketProduct === null ) {
127 $this->_oFirstBasketProduct =
false;
130 if ( is_array( $aBasketArticles ) && $oProduct = reset( $aBasketArticles ) ) {
131 $this->_oFirstBasketProduct = $oProduct;
144 if ( $this->_oSimilarList === null) {
145 $this->_oSimilarList =
false;
149 $this->_oSimilarList = $oProduct->getSimilarProducts();
162 if ( $this->_aSimilarRecommListIds === null ) {
163 $this->_aSimilarRecommListIds =
false;
166 $this->_aSimilarRecommListIds = array( $oProduct->getId() );
221 if ( $this->
getConfig()->getConfigParam(
'iNewBasketItemMessage' ) == 3 ) {
223 if ( $sBackLink = $oSession->getVariable(
'_backtoshop' ) ) {
224 $oSession->deleteVariable(
'_backtoshop' );
251 if ( $this->_iWrapCnt === null ) {
252 $this->_iWrapCnt = 0;
254 $oWrap =
oxNew(
'oxwrapping' );
255 $this->_iWrapCnt += $oWrap->getWrappingCount(
'WRAP' );
256 $this->_iWrapCnt += $oWrap->getWrappingCount(
'CARD' );
259 return (
bool) $this->_iWrapCnt;
269 if ( $this->_oWrappings === null ) {
270 $this->_oWrappings =
new oxlist();
274 $this->_oWrappings =
oxNew(
'oxwrapping' )->getWrappingList(
'WRAP' );
287 if ( $this->_oCards === null ) {
288 $this->_oCards =
new oxlist();
292 $this->_oCards =
oxNew(
'oxwrapping' )->getWrappingList(
'CARD' );
316 $this->
_setWrappingInfo($oBasket, $oConfig->getRequestParameter(
'wrapping' ));
318 $oBasket->setCardMessage( $oConfig->getRequestParameter(
'giftmessage' ) );
319 $oBasket->setCardId( $oConfig->getRequestParameter(
'chosencard' ) );
320 $oBasket->onUpdate();
335 $aPath[
'link'] = $this->
getLink();
349 $oBasketContentMarkGenerator =
oxNew(
'oxBasketContentMarkGenerator', $this->
getSession()->getBasket());
351 return $oBasketContentMarkGenerator;
362 if ( is_array( $aWrapping ) && count( $aWrapping ) ) {
363 foreach ( $oBasket->getContents() as $sKey => $oBasketItem ) {
364 if ( isset( $aWrapping[$sKey] ) ) {
365 $oBasketItem->setWrapping( $aWrapping[$sKey] );