Forums / Managing Customers and Orders / Remove "Office Use" section from Admin copy of Order Confirmation email

Remove "Office Use" section from Admin copy of Order Confirmation email

Started by mkyle on 29 Apr 2012, 8:11 PM · Views: 5,038

Results 1 to 18 of 18
29 Apr 2012, 8:11 PM
#1
mkyle avatar

mkyle

New Zenner

Join Date:
Mar 2005
Location:
Scotland
Posts:
76
Plugin Contributions:
0

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

29 Apr 2012, 9:14 PM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: Remove "Office Use" section from Admin copy of Order Confirmation email

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?

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

29 Apr 2012, 9:21 PM
#3
fairestcape avatar

fairestcape

Totally Zenned

Join Date:
Mar 2008
Location:
Cape Town & London (depends on the season)
Posts:
2,957
Plugin Contributions:
0

Re: Remove "Office Use" section from Admin copy of Order Confirmation email

Customers actually appreciate this time-stamping. It indicates there are proper archives being kept about the transaction.

29 Apr 2012, 9:54 PM
#4
mkyle avatar

mkyle

New Zenner

Join Date:
Mar 2005
Location:
Scotland
Posts:
76
Plugin Contributions:
0

Re: Remove "Office Use" section from Admin copy of 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

29 Apr 2012, 10:55 PM
#5
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: Remove "Office Use" section from Admin copy of Order Confirmation email

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.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

29 Apr 2012, 10:56 PM
#6
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: Remove "Office Use" section from Admin copy of Order Confirmation email

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?

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

30 Apr 2012, 9:12 AM
#7
mkyle avatar

mkyle

New Zenner

Join Date:
Mar 2005
Location:
Scotland
Posts:
76
Plugin Contributions:
0

Re: Remove "Office Use" section from Admin copy of 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

30 Apr 2012, 5:36 PM
#8
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: Remove "Office Use" section from Admin copy of 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:$extra_info=email_collect_extra_info('','', $this->customer['firstname'] . ' ' . $this->customer['lastname'], $this->customer['email_address'], $this->customer['telephone']);with this:```
// $extra_info=email_collect_extra_info('','', $this->customer['firstname'] . ' ' . $this->customer['lastname'], $this->customer['email_address'], $this->customer['telephone']);
$extra_info= array('TEXT'=>'', 'HTML'=>'');

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

30 Apr 2012, 6:51 PM
#9
mkyle avatar

mkyle

New Zenner

Join Date:
Mar 2005
Location:
Scotland
Posts:
76
Plugin Contributions:
0

Re: Remove "Office Use" section from Admin copy of 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

30 Apr 2012, 8:14 PM
#10
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: Remove "Office Use" section from Admin copy of 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.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

1 May 2012, 8:24 AM
#11
mkyle avatar

mkyle

New Zenner

Join Date:
Mar 2005
Location:
Scotland
Posts:
76
Plugin Contributions:
0

Re: Remove "Office Use" section from Admin copy of Order Confirmation email

Thanks again for your help. It turns out after speaking with the client they only need 2 copies now (save paper) and don't need the kitchen copy section.

8 May 2012, 1:28 PM
#12
mkyle avatar

mkyle

New Zenner

Join Date:
Mar 2005
Location:
Scotland
Posts:
76
Plugin Contributions:
0

Re: Remove "Office Use" section from Admin copy of Order Confirmation email

mkyle:

Thanks again for your help. It turns out after speaking with the client they only need 2 copies now (save paper) and don't need the kitchen copy section.

Hi,

looking for some assistance on one last piece of the jigsaw. My client would like to have a box next to each product ordered on the admin confirmation so that the order can be checked when being packed by kitchen staff before going out for delivery. I thought entering the below would be sufficient in line 943 of class file order.php

$html_msg['PRODUCTS_DETAIL']='<table class="product-details" border="0" width="100%" cellspacing="0" cellpadding="2">' . $this->products_ordered_html . <img src="http://www.joeblogs.com/restuarant.co.uk/images/square.gif"/> .'</table>';

Please can you advise if this is possible and what I am doing incorrectly

Thanks, Martin

8 May 2012, 3:44 PM
#13
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: Remove "Office Use" section from Admin copy of Order Confirmation email

The <img ...> part isn't inside single-quotes like the rest of the content is. Thus I wouldn't be surprised if it's triggering a syntax error.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

10 May 2012, 9:43 PM
#14
mkyle avatar

mkyle

New Zenner

Join Date:
Mar 2005
Location:
Scotland
Posts:
76
Plugin Contributions:
0

Re: Remove "Office Use" section from Admin copy of Order Confirmation email

Hi,

tried the below and still no joy:

 $html_msg['PRODUCTS_DETAIL']='<table class="product-details" border="0" width="100%" cellspacing="0" cellpadding="2">' . $this->products_ordered_html .' <img src="http://www.joeblogs.com/restuarant.co.uk/images/square.gif"/> .'</table>';

When I goto checkout the page just goes blank.

Thanks again Martin

11 May 2012, 1:27 AM
#15
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: Remove "Office Use" section from Admin copy of Order Confirmation email

You need matching quotes. You only added one.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

17 May 2012, 9:34 PM
#16
mkyle avatar

mkyle

New Zenner

Join Date:
Mar 2005
Location:
Scotland
Posts:
76
Plugin Contributions:
0

Re: Remove "Office Use" section from Admin copy of Order Confirmation email

Hi,

is this correct?

$html_msg['PRODUCTS_DETAIL']='<table class="product-details" border="0" width="100%" cellspacing="0" cellpadding="2">' . $this->products_ordered_html .' '<img src="http://www.joeblogs.com/restuarant.co.uk/images/square.gif"/> .'</table>';

Thanks, Martin

18 May 2012, 1:14 AM
#17
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: Remove "Office Use" section from Admin copy of Order Confirmation email

No.

This is the concept:

$var = 'text' . ' more text ' . $another_var . ' and more text ' . $yet_another_variable . '<plus some html="markup data" etc here>' . $another_variable . 'plus more text';

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

19 May 2012, 10:05 PM
#18
mkyle avatar

mkyle

New Zenner

Join Date:
Mar 2005
Location:
Scotland
Posts:
76
Plugin Contributions:
0

Re: Remove "Office Use" section from Admin copy of Order Confirmation email

thanks will give it a go