lsc Posted November 13, 2016 Share Posted November 13, 2016 (edited) Hi there,I am trying to figure out, what determines which email template is used depending on choice off payment method, when an order is created.eg.If an order is created choosing bankwire as payment method, the "bankwire.html"-template is used when the order confirmation e-mail is send to the customer.But when "cash on delivery"(std. module) is chosen as payment method, the "preparation.html"-template is used when the order confirmation e-mail is send to the customer!Does anybody know how/where I can change that?Prestashop 1.6.1.6Cash on delivery(COD) module v0.7.5 - by PrestaShop/lsc Edited November 21, 2016 by lsc (see edit history) Link to comment Share on other sites More sharing options...
Eolia Posted November 13, 2016 Share Posted November 13, 2016 In the module, the validate method assign an order status. For each status, you can associate an email template (BO -> Orders -> Statuses) Link to comment Share on other sites More sharing options...
lsc Posted November 13, 2016 Author Share Posted November 13, 2016 I have already done that, but it dos not use that template!? Link to comment Share on other sites More sharing options...
Eolia Posted November 13, 2016 Share Posted November 13, 2016 Done ? In the module i found $this->module->validateOrder((int)$this->context->cart->id, Configuration::get('PS_OS_PREPARATION'), $total, $this->module->displayName, null, array(), null, false, $customer->secure_key); PS_OS_PREPARATION use the template preparation.html... Link to comment Share on other sites More sharing options...
lsc Posted November 13, 2016 Author Share Posted November 13, 2016 In the module, the validate method assign an order status. What do you mean exactly by that? Link to comment Share on other sites More sharing options...
Eolia Posted November 13, 2016 Share Posted November 13, 2016 Huuu... When the module validate the order, a status is assigned to this order. For the COD module, this status is: "In preparation" Link to comment Share on other sites More sharing options...
lsc Posted November 13, 2016 Author Share Posted November 13, 2016 How do I change that to use my template? Link to comment Share on other sites More sharing options...
Eolia Posted November 13, 2016 Share Posted November 13, 2016 You want to change the status or the template associated ? Link to comment Share on other sites More sharing options...
lsc Posted November 13, 2016 Author Share Posted November 13, 2016 I would like to change the status, and then associate it to another template I have made (cashondelivery-template) Link to comment Share on other sites More sharing options...
lsc Posted November 13, 2016 Author Share Posted November 13, 2016 there was an error in the DB(Wrong template), now it works. 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