mfractal Posted August 14, 2014 Share Posted August 14, 2014 Hello prestashoppers. Got two issues with creating orders from backend. I'll create two threads to separate the issues. First problem is described here : Payment method discount not being applied if order is created from backend second issue is that when i create an order from the backend using bank wire as payment method the email that is despatched to the client doesn't contain bank wire info instead it shows : {bankwire_owner} & {bankwire_details} in the email body. This does not happen when the order is created from the front end - in that case email with the correct bank details is despatched normally. Link to comment Share on other sites More sharing options...
mfractal Posted August 14, 2014 Author Share Posted August 14, 2014 (edited) Fixed by changing this : $data = array( '{lastname}' => $result['lastname'], '{firstname}' => $result['firstname'], '{id_order}' => (int)$this->id_order, '{order_name}' => $order->getUniqReference()) ); to this : $data = array( '{lastname}' => $result['lastname'], '{firstname}' => $result['firstname'], '{id_order}' => (int)$this->id_order, '{order_name}' => $order->getUniqReference(), '{bankwire_owner}' => Configuration::get('BANK_WIRE_DISCOUNT_OWNER'), '{bankwire_details}' => nl2br(Configuration::get('BANK_WIRE_DISCOUNT_DETAILS')), '{bankwire_address}' => nl2br(Configuration::get('BANK_WIRE_DISCOUNT_ADDRESS')) ); In /public_html/classes/order/OrderHistory.php Edited August 14, 2014 by mfractal (see edit history) 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