Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

How do I remove customer’s telephone number from the Order Confirmation Email? 
 
Brady
Guru
 
Avatar
Total Posts:  330
Joined:  2007-09-10
Orange County, CA
 

I need to remove the customer Telephone and Fax numbers from the Order Confirmation email. I thought this could be done through config.xml, but that’s not the case it seems.

The email template calls:
{{var order.getBillingAddress().format(’html’)}}
-and-
{{var order.getShippingAddress().format(’html’)}}

How do I remove the telephone and fax from those fields?

 
Magento Community Magento Community
Magento Community
Magento Community
 
joyously
Guru
 
Total Posts:  447
Joined:  2008-08-21
 

Find where the getBillingAddress function is and duplicate it with a new name. Take out the phone numbers. Then call the new one in your email template.
Do the same for getShippingAddress.

 
Magento Community Magento Community
Magento Community
Magento Community
 
Ian M
Jr. Member
 
Total Posts:  25
Joined:  2008-01-16
 

I’m also trying to change the display of the customer’s telephone number in the order confirmation email.

I’ve searched for the getBillingAddress function but cannot find it. Please could someone point me in the right direction.

Many thanks,

Ian

 
Magento Community Magento Community
Magento Community
Magento Community
 
iiNTENSE
Guru
 
Avatar
Total Posts:  432
Joined:  2008-11-06
Lansing, MI
 

The HTML file is located at:

www.yourstore.com/app/locale/en_US/template/email/sales/order_new.html

On line 40 (and line 62), it requests the billing information.  You will have to change this callout to customers name or the like:

<td valign="top" style="padding:7px 9px 9px 9px; border:1px solid #bebcb7; border-top:0; background:#f8f7f5;">
          
{{var order.billing_address.format('html')}}

If you need help changing the callout, let me know.

 
Magento Community Magento Community
Magento Community
Magento Community
 
szotyi
Sr. Member
 
Total Posts:  153
Joined:  2008-11-29
 

app/code/core/Mage/costumer/config.xml
delete from

<html translate="title" module="customer">
                        <
title>HTML</title>
                        <
htmlEscape>true</htmlEscape>

that

T{{var telephone}}
{{depend fax}}F
{{var fax}}{{/depend}}
 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top