morp Posted June 24, 2010 Share Posted June 24, 2010 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 thanksbye Link to comment Share on other sites More sharing options...
jacot Posted July 1, 2010 Share Posted July 1, 2010 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. Link to comment Share on other sites More sharing options...
custompresta Posted July 8, 2010 Share Posted July 8, 2010 So you want to send an email to your supplier everytime a product of this supplier is sold.What data you need to send to your supplier? Link to comment Share on other sites More sharing options...
jacot Posted July 20, 2010 Share Posted July 20, 2010 For me the job is done. The only last but not least thing to do is to join an image to the email, when customer has a personalized product with his own picture. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now