source/Core/Session.php
protected function _validateBasket(\OxidEsales\Eshop\Application\Model\Basket $oBasket)
    {
        $aCurrContent = $oBasket->getContents();
        if (empty($aCurrContent)) {
            return;
        }

        $iCurrLang = \OxidEsales\Eshop\Core\Registry::getLang()->getBaseLanguage();
        foreach ($aCurrContent as $oContent) {
            if ($oContent->getLanguageId() != $iCurrLang) {
                $oContent->setLanguageId($iCurrLang);
            }
        }
    }
protected function _validateBasket(\OxidEsales\Eshop\Application\Model\Basket $oBasket)
    {
        $aCurrContent = $oBasket->getContents();
        if (empty($aCurrContent)) {
            return;
        }

        $iCurrLang = \OxidEsales\Eshop\Core\Registry::getLang()->getBaseLanguage();
        foreach ($aCurrContent as $oContent) {
            if ($oContent->getLanguageId() != $iCurrLang) {
                $oContent->setLanguageId($iCurrLang);
            }
        }
    }
protected function _validateBasket ( \ OxidEsales \ Eshop \ Application \ Model \ Basket $ oBasket ) { $ aCurrContent = $ oBasket -> getContents ( ) ; if ( empty ( $ aCurrContent ) ) { return ; } $ iCurrLang = \ OxidEsales \ Eshop \ Core \ Registry :: getLang ( ) -> getBaseLanguage ( ) ; foreach ( $ aCurrContent as $ oContent ) { if ( $ oContent -> getLanguageId ( ) != $ iCurrLang ) { $ oContent -> setLanguageId ( $ iCurrLang ) ; } } }
Validate loaded from session basket content. Check for language change.

@param \OxidEsales\Eshop\Application\Model\Basket $oBasket Basket object loaded from session.

@return null
Validate loaded from session basket content . Check for language change .