Jump to content

Send mail in order confirmation


Recommended Posts


I have a problem with images attached to some product in my order:

So I'm trying to send the image when the order is completed. I want to send the email in "OrderConfirmationController", which receive a order as parameter. Is there some way to get attached files from that variable? I have been looking for 'Order' (and others) class and trying to get some information, but as weak typed language, I can't track too much with PHP (well, I'm a noob in Prestashop too).

Thanks in advance.

Link to comment
Share on other sites

hace 15 horas, tdsoft dijo:

You can open classes: classes/mail.php and review Send () function.

you can find how to attach a files at there

I know how to send a email and how to attach files, but in that method, which receives a variable named "$order", I want to get that files and this is what I don't know.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...