Jump to content

mail (with XML) on OrderConfirmation hook


morp
 Share

Recommended Posts

Hi all,
I need to develop a little module that sends and email to my supplier with an XML attacched everytime and order is confirmed (whan the payment process have been completed).

I'm a newbye, I can just create a basic module, but with good tutorials I can learn more.

- do I have to use OrderConfirmation hook?
- where can I find a list of Prestashop variable to include in my mail (quantity, price, shipping adress, etc) ?

Can someone give me some advice or cant redirect me on some good documentation?

many thanks

bye

Share this post


Link to post
Share on other sites

Hi all,
I need to develop a little module that sends and email to my supplier with an XML attacched everytime and order is confirmed (whan the payment process have been completed).
- do I have to use OrderConfirmation hook?
- where can I find a list of Prestashop variable to include in my mail (quantity, price, shipping adress, etc) ?

I'm working on.
I've done adding an email + address to a supplier. You have to modify AdminSuppliers.php to add email + address. For address, the job is done in adminManufacturers.php, you just need to adapt to suppliers.
For sending an email, I'm working on. It's located in PaymentModule.php. My needs is to send an order to each supplier as I could have several suppliers in one customer order. This is quite similar as your needs.
For documentation, wiki is very poor, and I didn't find any helpful site on development on prestashop.

Share this post


Link to post
Share on other sites

  • 2 weeks later...

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
 Share

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More