source/Core/Utils.php
public function getPreviewId()
    {
        $sAdminSid = \OxidEsales\Eshop\Core\Registry::getUtilsServer()->getOxCookie('admin_sid');
        if (($oUser = $this->getUser())) {
            return md5($sAdminSid . $oUser->getId() . $oUser->oxuser__oxpassword->value . $oUser->oxuser__oxrights->value);
        }
    }
public function getPreviewId()
    {
        $sAdminSid = \OxidEsales\Eshop\Core\Registry::getUtilsServer()->getOxCookie('admin_sid');
        if (($oUser = $this->getUser())) {
            return md5($sAdminSid . $oUser->getId() . $oUser->oxuser__oxpassword->value . $oUser->oxuser__oxrights->value);
        }
    }
public function getPreviewId ( ) { $ sAdminSid = \ OxidEsales \ Eshop \ Core \ Registry :: getUtilsServer ( ) -> getOxCookie ( 'admin_sid' ) ; if ( ( $ oUser = $ this -> getUser ( ) ) ) { return md5 ( $ sAdminSid . $ oUser -> getId ( ) . $ oUser -> oxuser__oxpassword -> value . $ oUser -> oxuser__oxrights -> value ) ; } }
Returns id which is used for product preview in shop during administration

@return string
Returns id which is used for product preview in shop during administration