Product attachments

Product Attachments

The product attachments extension allows you to add files to each product. When a customer purchases the product, an email with a link to the files is automatically sent. You can choose to make the link a one-time link, so that the file can only be downloaded once. It is also possible to make the files publicly available, so that they are always displayed on the product page.

Configure extensions by going to Apps > Your extensions

Add file

Adding a file couldn't be easier! Open the product you want to add the file to, click "Attachments" and drag in (or select) the file you want to add. If you have already uploaded the file to your control panel, you can enter the file name and click "Link file".

File location

Note that files must be located in products/attachments in order to be linked.

Link to existing file

It is entirely possible to link to an existing file in the control panel. The requirement for this is that the file is placed in the correct folder.

Correct folder for file is: File Explorer > products > attachments

Paste in, or type, the file name and click "Link file" to connect the file to the product.

Choices on file

After the file is uploaded, you get several choices that you must consider.

Display name - what name should be in the email and on the customer's page?

File type

Purchase: the file requires purchase of product. Only when the product is purchased and the order processed will the email with link be sent. Can be overridden with "Instant delivery"

Public: the file will always be available on the product page in the online store and does not require purchase to be downloaded.

Purchase - limited access: the file requires purchase of product. Only when the product is purchased and the order processed will the email with link be sent, but the link is only available once. After that, the file will only be available through "My page". This reduces the chance of forwarding links to others.

Send on purchase - choice of whether an email with a link should be sent when the order is processed. If this option is disabled, the file will only be available through "My page".

Instant delivery - if active, the attachment will be sent to the end customer when the order is created, not when the order is processed and completed. Can be overridden with "Instant delivery"

Replace attachment

Unlike removing the file, which also removes the file from the customer's account, "Replace" lets you replace the content of the associated attachment with another file. This means that you can upload a new version of the already attached file and customers who have already purchased the previous file will then be able to download the new file. The file retains the same display name unless it is manually changed.

Remove attachment

Inside the product, under "Attachments", the file can be removed by pressing "Remove". This removes the link between the product and the file. The file will not be deleted from the server. If you want to delete the file from the server, this must be done from File Explorer > products > attachments

File access

If the attachment is removed from the product, customers will also lose access via "My page". If you want to give the customer a new version of an attachment, use the "Replace" function.

Purchase of product with attachment

When a product with an attachment is purchased, a link to the attachment will be sent in a separate email when the order is processed. This ensures that the order must be processed before the end customer receives the link to the file. The end customer will not receive the actual file as an attachment to the email, but a link to it. This avoids problems with file size, as many email clients have a maximum limit of 10 MB.

Outbound email

When the order is processed, a separate email with a link to files will be sent. This email has the subject "Your files for order [order number]" + standard content and link by default.

The content and layout of outgoing emails can be customized for each individual store. The email template can be found here: Configuration > Text on pages > Outgoing email. Then select the template with title "Order files".

Text for one-time link

In the email template, you can add your own description that is only displayed if one or more of the files are of the type limited access. This is already added in the standard template, if you want to change the text, you can write the desired text in the field between IF-LIMITED and /IF-LIMITED

Overview on order

On orders that have purchased a product with an attachment, it will be clearly shown which attachments are attached. Under the product, both the display name and file name are listed. File name is internal and will not be displayed to the customer. This is only an informative overview. The order processor does not need to do anything for the link to the file to be sent to the end customer, it happens automatically.

Log

After the order has been processed, the log will show which files were linked to the order and thus were sent to the end customer.

Overview on "My page"

After the order is processed, the end customer will have access to the file from "My page / My account".

Log in

Go to the "Downloadable files" tab

Was this article helpful?