If the specified export directory doesn't exist or if the directories permissions are not set correctly so that the web user can write files to the directory, the orders included in the export are updated as though the export was successful but the export fails as no file is written to the export directory.

Cheers,

Antoine

CommentFileSizeAuthor
#2 uc_edi-943780_1.patch2.06 KBjantoine
#1 uc_edi-943780.patch5.54 KBjantoine

Comments

jantoine’s picture

Status: Active » Needs review
StatusFileSize
new5.54 KB

I am attaching a patch with the following changes:
- Updated the manual export submit function to only report a successful export if the file was successfully created, otherwise report an error informing the user that the file could not be created.
- Updated the create export function's main comment to correctly report the return value.
- Updated the create export function to suppress the php warning if the file could not be created.
- Updated the export order function's main comment to correctly report the return value.
- Updated the export order function to only update order statuses and send an email if the export was successful.

Cheers,

Antoine

jantoine’s picture

Status: Needs review » Fixed
StatusFileSize
new2.06 KB

A lot of these changes were improved and committed in this issue: #949690: Integrate export functionality with Conditional Actions. The remaining changes can be found in the attached patch and have been committed to head.

Cheers,

Antoine

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.