30 if ( $sFileOrderId ) {
31 $oArticleFile =
oxNew(
'oxFile');
34 $oOrderFile =
oxNew(
'oxOrderFile');
35 if ( $oOrderFile->load($sFileOrderId) ) {
36 $sFileId = $oOrderFile->getFileId();
37 if ( $sFileId && $oArticleFile->load($sFileId) && $oArticleFile->exist() && $oOrderFile->processOrderFile() ) {
38 $oArticleFile->download();
40 $sError =
"ERROR_MESSAGE_FILE_DOESNOT_EXIST";
44 $sError =
"ERROR_MESSAGE_FILE_DOWNLOAD_FAILED";
47 $sError =
"ERROR_MESSAGE_WRONG_DOWNLOAD_LINK";
51 $oEx->setMessage( $sError );