97 if ($this->
getConfig()->getConfigParam(
'blPsBasketReservationEnabled')) {
98 $this->
getSession()->getBasketReservations()->renewExpiration();
113 if ($this->_oBasketArticles === null) {
114 $this->_oBasketArticles =
false;
117 if ($oBasket = $this->
getSession()->getBasket()) {
118 $this->_oBasketArticles = $oBasket->getBasketArticles();
132 if ($this->_oFirstBasketProduct === null) {
133 $this->_oFirstBasketProduct =
false;
136 if (is_array($aBasketArticles) && $oProduct = reset($aBasketArticles)) {
137 $this->_oFirstBasketProduct = $oProduct;
151 if ($this->_oSimilarList === null) {
152 $this->_oSimilarList =
false;
156 $this->_oSimilarList = $oProduct->getSimilarProducts();
172 if ($this->_aSimilarRecommListIds === null) {
173 $this->_aSimilarRecommListIds =
false;
176 $this->_aSimilarRecommListIds = array($oProduct->getId());
190 $iNewBasketItemMessage = $this->
getConfig()->getConfigParam(
'iNewBasketItemMessage');
193 return ($iNewBasketItemMessage == 3 && $sBackToShop);
235 if ($this->
getConfig()->getConfigParam(
'iNewBasketItemMessage') == 3) {
237 if ($sBackLink = $oSession->getVariable(
'_backtoshop')) {
238 $oSession->deleteVariable(
'_backtoshop');
266 if ($this->_iWrapCnt === null) {
267 $this->_iWrapCnt = 0;
269 $oWrap =
oxNew(
'oxwrapping');
270 $this->_iWrapCnt += $oWrap->getWrappingCount(
'WRAP');
271 $this->_iWrapCnt += $oWrap->getWrappingCount(
'CARD');
274 return (
bool) $this->_iWrapCnt;
284 if ($this->_oWrappings === null) {
285 $this->_oWrappings =
new oxlist();
289 $this->_oWrappings =
oxNew(
'oxwrapping')->getWrappingList(
'WRAP');
303 if ($this->_oCards === null) {
304 $this->_oCards =
new oxlist();
308 $this->_oCards =
oxNew(
'oxwrapping')->getWrappingList(
'CARD');
330 $this->
_setWrappingInfo($oBasket, $oConfig->getRequestParameter(
'wrapping'));
332 $oBasket->setCardMessage($oConfig->getRequestParameter(
'giftmessage'));
333 $oBasket->setCardId($oConfig->getRequestParameter(
'chosencard'));
334 $oBasket->onUpdate();
350 $aPath[
'link'] = $this->
getLink();
364 $oBasketContentMarkGenerator =
oxNew(
'oxBasketContentMarkGenerator', $this->
getSession()->getBasket());
366 return $oBasketContentMarkGenerator;
377 if (is_array($aWrapping) && count($aWrapping)) {
378 foreach ($oBasket->getContents() as $sKey => $oBasketItem) {
379 if (isset($aWrapping[$sKey])) {
380 $oBasketItem->setWrapping($aWrapping[$sKey]);