Remove "Office Use" section from Admin copy of Order Confirmation email
Hi,
having problems trying to remove Office use only section on the text order confirmation email. It look like the below after me editing includes/classes/orders.php and email extras email (includes/languages/english/email_functions). I have searched high and low the forums and have not found the solution.
Thanks again Martin
AuthCode: TransID: 6V372116VL811715B
Order Confirmation from online shop
Joe Bloggs
Thanks for ordering with us today!
Order Details:
-------------------------------------
Order Number# 45
Date Ordered: 29 Apr 12, 09:02 PM
Products
-------------------------------------
1 x Can of Fanta = £0.80
-------------------------------------
Sub-Total: £0.80
Store Pickup (Walk In): £0.00
Total: £0.80
Delivery Address
-------------------------------------
Joe Blggs
37 Old Road
Southhampton
SH1 HRT
United Kingdom
Payment Method
-------------------------------------
PayPal
-----
This email address was given to us by you or by one of our customers. If you
feel that you have received this email in error, please send an email to
onlineshop################################
-----
Copyright (c) 2012 Kirky Mahal. Powered by Zen Cart
OFFICE_USE
From:
Email:
OFFICE_LOGIN_NAME Joe Bloggs
OFFICE_LOGIN_EMAIL joe##########################
OFFICE_LOGIN_PHONE 0777888888
OFFICE_IP_ADDRESS 82.40.106.37 - 82.40.106.37
OFFICE_HOST_ADDRESS cpc2-dumb1-0-0-cust548.uddi.cable.virginmedia.com
OFFICE_DATE_TIME Sun Apr 29 2012 21:02:13 BST
Re: Editing Order Confirmation email
Quote:
Originally Posted by
mkyle
trying to remove Office use only section on the text order confirmation email
Why?
What business problem are you trying to solve by doing this?
Re: Editing Order Confirmation email
Customers actually appreciate this time-stamping. It indicates there are proper archives being kept about the transaction.
Re: Editing Order Confirmation email
Hi,
I was trying to remove the office use only section it as it needs to printed on a receipt printer and it is not needed for my client. I hope this explains it.
Thanks, Martin
Re: Editing Order Confirmation email
Quote:
Originally Posted by
fairestcape
Customers actually appreciate this time-stamping. It indicates there are proper archives being kept about the transaction.
fairestcape,
I believe he's talking about the ADMIN copy emails, which storefront customers would never see.
Re: Editing Order Confirmation email
Quote:
Originally Posted by
mkyle
I was trying to remove the office use only section it as it needs to printed on a receipt printer and it is not needed for my client.
What is this printed "receipt" being used for?
Wouldn't the printed "Invoice" page be much more appropriate? or maybe the Packing Slip?
Re: Editing Order Confirmation email
Hi,
the client prints off 3 copies. One for the kitchen to fulfil the order. Second one for home delivery and the third for his own records of the nights takings. Hope that makes sense
Thanks Martin
Re: Editing Order Confirmation email
You'll need to hack the core code for /includes/classes/order.php. THIS WILL NOT SURVIVE AN UPGRADE, so you'll need to adjust again in the future.
Replace this:
Code:
$extra_info=email_collect_extra_info('','', $this->customer['firstname'] . ' ' . $this->customer['lastname'], $this->customer['email_address'], $this->customer['telephone']);
with this:
Code:
// $extra_info=email_collect_extra_info('','', $this->customer['firstname'] . ' ' . $this->customer['lastname'], $this->customer['email_address'], $this->customer['telephone']);
$extra_info= array('TEXT'=>'', 'HTML'=>'');
Re: Editing Order Confirmation email
Great thanks it worked a treat. One final question I promise lol. How do I duplicate the order detail and delivery details so that it looks like the below (section - Kitchen Copy):
AuthCode: TransID: 6V372116VL811715B
Order Confirmation from online shop
Joe Bloggs
Thanks for ordering with us today!
Order Details:
-------------------------------------
Order Number# 45
Date Ordered: 29 Apr 12, 09:02 PM
Products
-------------------------------------
1 x Can of Fanta = £0.80
-------------------------------------
Sub-Total: £0.80
Store Pickup (Walk In): £0.00
Total: £0.80
Delivery Address
-------------------------------------
Joe Blggs
37 Old Road
Southhampton
SH1 HRT
United Kingdom
077701218989
Payment Method
-------------------------------------
PayPal
-----
This email address was given to us by you or by one of our customers. If you
feel that you have received this email in error, please send an email to
onlineshop################################
-----KITCHEN COPY ----
Order Number# 45
Date Ordered: 29 Apr 12, 09:02 PM
Products
-------------------------------------
1 x Can of Fanta = £0.80
-------------------------------------
Sub-Total: £0.80
Store Pickup (Walk In): £0.00
Total: £0.80
Delivery Address
-------------------------------------
Joe Blggs
37 Old Road
Southampton
SH1 HRT
United Kingdom
077701218989
Thanks again Martin
Re: Editing Order Confirmation email
In your case probably easiest to repeat most if not all of the logic in that entire function, to build another email to send to another address.