How would I modify the order email so that it adds the file to the order email?
When I check the code in Account/Download this requires that the user is logged in to be able to view downloads?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Though I would not suggest to send big files through an email You have to edit the
Order modeland it’s methodconfirmin/catalog/model/checkout/order.php– somewhere around line 500 there is a sending of email about just created order to a client.Here You can get the file for download and add it as attachment.
EDIT: You do not need to change the download method. That would break the “My account” section where the downloads are listed, I guess. The only thing You have to do is to load the file(s) that should included (attached) into (to) the order email, attach it and send the email… If user still wants to go and download the file from Your eshop, he still has to log in – but that’s normal behavior and I wouldn’t change it.