source/Application/Component/BasketComponent.php
public function isRootCatChanged()
    {
        // in Basket
        $oBasket = $this->getSession()->getBasket();
        if ($oBasket->showCatChangeWarning()) {
            $oBasket->setCatChangeWarningState(false);

            return true;
        }

        // in Category, only then category is empty ant not equal to default category
        $sDefCat = \OxidEsales\Eshop\Core\Registry::getConfig()->getActiveShop()->oxshops__oxdefcat->value;
        $sActCat = \OxidEsales\Eshop\Core\Registry::getConfig()->getRequestParameter('cnid');
        $oActCat = oxNew(\OxidEsales\Eshop\Application\Model\Category::class);
        if ($sActCat && $sActCat != $sDefCat && $oActCat->load($sActCat)) {
            $sActRoot = $oActCat->oxcategories__oxrootid->value;
            if ($oBasket->getBasketRootCatId() && $sActRoot != $oBasket->getBasketRootCatId()) {
                return true;
            }
        }

        return false;
    }
public function isRootCatChanged()
    {
        // in Basket
        $oBasket = $this->getSession()->getBasket();
        if ($oBasket->showCatChangeWarning()) {
            $oBasket->setCatChangeWarningState(false);

            return true;
        }

        // in Category, only then category is empty ant not equal to default category
        $sDefCat = \OxidEsales\Eshop\Core\Registry::getConfig()->getActiveShop()->oxshops__oxdefcat->value;
        $sActCat = \OxidEsales\Eshop\Core\Registry::getConfig()->getRequestParameter('cnid');
        $oActCat = oxNew(\OxidEsales\Eshop\Application\Model\Category::class);
        if ($sActCat && $sActCat != $sDefCat && $oActCat->load($sActCat)) {
            $sActRoot = $oActCat->oxcategories__oxrootid->value;
            if ($oBasket->getBasketRootCatId() && $sActRoot != $oBasket->getBasketRootCatId()) {
                return true;
            }
        }

        return false;
    }
public function isRootCatChanged ( ) { // in Basket $ oBasket = $ this -> getSession ( ) -> getBasket ( ) ; if ( $ oBasket -> showCatChangeWarning ( ) ) { $ oBasket -> setCatChangeWarningState ( false ) ; return true ; } // in Category, only then category is empty ant not equal to default category $ sDefCat = \ OxidEsales \ Eshop \ Core \ Registry :: getConfig ( ) -> getActiveShop ( ) -> oxshops__oxdefcat -> value ; $ sActCat = \ OxidEsales \ Eshop \ Core \ Registry :: getConfig ( ) -> getRequestParameter ( 'cnid' ) ; $ oActCat = oxNew ( \ OxidEsales \ Eshop \ Application \ Model \ Category :: class ) ; if ( $ sActCat && $ sActCat != $ sDefCat && $ oActCat -> load ( $ sActCat ) ) { $ sActRoot = $ oActCat -> oxcategories__oxrootid -> value ; if ( $ oBasket -> getBasketRootCatId ( ) && $ sActRoot != $ oBasket -> getBasketRootCatId ( ) ) { return true ; } } return false ; }
Returns true if active root category was changed

@return bool
Returns true if active root category was changed