kowal.info

Order Attachment

Composer kowal/module-order-attachment · Version 1.0.11

Product page

Order Attachment — kowal.co

Description

Let a customer upload a file during checkout and let the merchant retrieve it from that order in Admin.

For whom

For stores collecting artwork for personalised items or reference photos needed to fulfil a service.

Features

  • Show the upload field for all orders or selected products.
  • Set the upload requirement independently.
  • Limit file types and size and optionally enable Admin preview.

Installation

From the Magento root, with Composer access to the Kowal package, run

composer require kowal/module-order-attachment
bin/magento module:enable Kowal_OrderAttachment
bin/magento setup:upgrade
bin/magento cache:clean

Configuration

  1. Enable the module under Stores → Configuration → Sales → Order Attachments. Choose the scope under Show Attachment Field and set Attachment Requirement.
  2. If you select Only Products Requiring Attachment, enable the requires_order_attachment attribute on the relevant products.
  3. Set the allowed extensions and maximum file size in MB. Enable Show Attachments in Admin Order View for the fulfilment team.

Requirements / notes

The package requires Kowal Base. The file is associated with the cart during checkout and stored with the completed order outside the public storefront directory.

FAQ

Why can the customer place an order without uploading a file even though the field is visible?

Show Attachment Field controls visibility. Set Attachment Requirement to Required to make the upload mandatory.

Verify the installation

bin/magento module:status Kowal_OrderAttachment

Add a flagged product and confirm that checkout requests the file in Required mode. Upload a small file of an allowed type, place the order and compare the attachment downloaded from Admin with the original.