source/Application/Model/Basket.php
public function load()
    {
        $oUser = $this->getBasketUser();
        if (!$oUser) {
            return;
        }

        $oBasket = $oUser->getBasket('savedbasket');

        // restoring from saved history
        $aSavedItems = $oBasket->getItems();
        foreach ($aSavedItems as $oItem) {
            try {
                $oSelList = $oItem->getSelList();

                $this->addToBasket($oItem->oxuserbasketitems__oxartid->value, $oItem->oxuserbasketitems__oxamount->value, $oSelList, $oItem->getPersParams(), true);
            } catch (\OxidEsales\Eshop\Core\Exception\ArticleException $oEx) {
                // caught and ignored
            }
        }
    }
public function load()
    {
        $oUser = $this->getBasketUser();
        if (!$oUser) {
            return;
        }

        $oBasket = $oUser->getBasket('savedbasket');

        // restoring from saved history
        $aSavedItems = $oBasket->getItems();
        foreach ($aSavedItems as $oItem) {
            try {
                $oSelList = $oItem->getSelList();

                $this->addToBasket($oItem->oxuserbasketitems__oxartid->value, $oItem->oxuserbasketitems__oxamount->value, $oSelList, $oItem->getPersParams(), true);
            } catch (\OxidEsales\Eshop\Core\Exception\ArticleException $oEx) {
                // caught and ignored
            }
        }
    }
public function load ( ) { $ oUser = $ this -> getBasketUser ( ) ; if ( ! $ oUser ) { return ; } $ oBasket = $ oUser -> getBasket ( 'savedbasket' ) ; // restoring from saved history $ aSavedItems = $ oBasket -> getItems ( ) ; foreach ( $ aSavedItems as $ oItem ) { try { $ oSelList = $ oItem -> getSelList ( ) ; $ this -> addToBasket ( $ oItem -> oxuserbasketitems__oxartid -> value , $ oItem -> oxuserbasketitems__oxamount -> value , $ oSelList , $ oItem -> getPersParams ( ) , true ) ; } catch ( \ OxidEsales \ Eshop \ Core \ Exception \ ArticleException $ oEx ) { // caught and ignored } } }
Populates current basket from the saved one.

@return null
Populates current basket from the saved one .