Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

Invoice sent to admin, add customer's phone?

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 02-14-2006, 08:25 PM
 
Mr Bob Mr Bob is offline
 

Senior Member
  
Join Date: Jul 2005
Posts: 199
 

Default Invoice sent to admin, add customer's phone?

I am trying to add the customer's phone number to the e-mail that is sent to the admin once a new order is placed. This is the same e-mail that contains the credit card details, order details, and customer details. However, the customer's phone number is nowhere to be found in this template.

Which template do I edit here? I looked at order_invoice and that doesn't appear to be the right one.

Also, before anyone suggests this has already been asked and answered please provide another suggestion for what to search for, I've tried "phone and admin and invoice", "phone and invoice", "phone and admin" and came up with nothing.
__________________
Product: X-Cart Gold
Current version: 4.0.14

Additional Mods: X-Affiliate
Reply With Quote
  #2  
Old 02-15-2006, 03:05 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default

mail/html/order_invoice.tpl
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 02-15-2006, 07:15 AM
 
Mr Bob Mr Bob is offline
 

Senior Member
  
Join Date: Jul 2005
Posts: 199
 

Default

I already looked on that template and it appears that in the code it still shows the phone number:

Code:
{* $Id: order_invoice.tpl,v 1.14.2.15 2005/08/09 10:51:37 max Exp $ *} {if $customer ne ''}{assign var="_userinfo" value=$customer}{else}{assign var="_userinfo" value=$userinfo}{/if} {config_load file="$skin_config"} {if $is_nomail ne 'Y'} {literal} <STYLE type="text/css"> body { MARGIN-TOP: 10px; FONT-SIZE: 12px; MARGIN-LEFT: 10px; FONT-FAMILY: arial,helvetica,sans-serif } td { FONT-SIZE: 12px; FONT-FAMILY: arial,helvetica,sans-serif } th { FONT-SIZE: 13px; FONT-FAMILY: arial,helvetica,sans-serif } h1 { FONT-SIZE: 20px } </STYLE> {/literal} {/if} <div align="center"><table> <tr><td colspan="2" align="center"><font style="FONT-SIZE: 22px">{$lng.lbl_invoice|upper}</font> </td></tr> <tr><td valign="top"><table cellSpacing="0" cellPadding="3" width="215px" class="orderDetailsTable"> <tr><th height="20px">Company Information</th></tr> <tr><td>{$config.Company.company_name} </td></tr> <tr><td>{$config.Company.location_address}, {$config.Company.location_city} {$config.Company.location_zipcode}, {$config.Company.location_state_name} </td></tr> {if $config.Company.company_phone}<tr><td>{$lng.lbl_phone}: {$config.Company.company_phone}</td></tr>{/if} {if $config.Company.company_phone_2}<tr><td>{$lng.lbl_phone_2_title}: {$config.Company.company_phone_2}</td></tr>{/if} {if $config.Company.company_fax}<tr><td>{$lng.lbl_fax}: {$config.Company.company_fax}</td></tr>{/if} {if $config.Company.orders_department}<tr><td>{$lng.lbl_email}: {$config.Company.orders_department}</td></tr>{/if} </table> <table cellSpacing="0" cellPadding="3" width="215px" class="orderDetailsTable"> <tr> <th colspan="2" height="20px">{$lng.lbl_billing_address}</th> </tr> {if $_userinfo.default_fields.firstname} <tr> <td>{$lng.lbl_first_name}: </td> <td>{$order.b_firstname}</td> </tr> {/if} {if $_userinfo.default_fields.lastname} <tr> <td>{$lng.lbl_last_name}: </td> <td>{$order.b_lastname}</td> </tr> {/if} {if $_userinfo.default_fields.b_address} <tr> <td>{$lng.lbl_address}: </td> <td>{$order.b_address} {$order.b_address_2}</td> </tr> {/if} {if $_userinfo.default_fields.b_city} <tr> <td>{$lng.lbl_city}: </td> <td>{$order.b_city}</td> </tr> {/if} {if $_userinfo.default_fields.b_county && $config.General.use_counties eq 'Y'} <tr> <td>{$lng.lbl_county}: </td> <td>{$order.b_countyname}</td> </tr> {/if} {if $_userinfo.default_fields.b_state} <tr> <td>{$lng.lbl_state}: </td> <td>{$order.b_statename}</td> </tr> {/if} {if $_userinfo.default_fields.b_country} <tr> <td>{$lng.lbl_country}: </td> <td>{$order.b_countryname}</td> </tr> {/if} {if $_userinfo.default_fields.b_zipcode} <tr> <td>{$lng.lbl_zip_code}: </td> <td>{$order.b_zipcode}</td> </tr> {/if} {foreach from=$_userinfo.additional_fields item=v} {if $v.section eq 'B'} <tr> <td>{$v.title}:</td> <td>{$v.value}</td> </tr> {/if} {/foreach} </table></td><td valign="top"><table cellSpacing="0" cellPadding="3" width="215px" class="orderDetailsTable"> <tr><th height="20px">Order Information</th></tr> <tr><td>{$lng.lbl_date}: {$order.date|date_format:$config.Appearance.datetime_format}</td></tr> <tr><td>{$lng.lbl_order_id}: #{$order.orderid}</td></tr> <tr><td>{$lng.lbl_order_status}: {include file="main/order_status.tpl" status=$order.status mode="static"}</td></tr> <tr><td>{$lng.lbl_payment_method}: {$order.payment_method}</td></tr> <tr><td>{$lng.lbl_delivery}: {$order.shipping|trademark|default:$lng.txt_not_available} {if $order.applied_taxes} {foreach from=$order.applied_taxes key=tax_name item=tax} {$tax.regnumber}</td></tr> {/foreach} {/if} </table> <table cellSpacing="0" cellPadding="3" width="215px" class="orderDetailsTable"> <tr> <th colspan="2" height="20px">{$lng.lbl_shipping_address}</th> </tr> {if $_userinfo.default_fields.firstname} <tr> <td>{$lng.lbl_first_name}: </td> <td>{$order.s_firstname}</td> </tr> {/if} {if $_userinfo.default_fields.lastname} <tr> <td>{$lng.lbl_last_name}: </td> <td>{$order.s_lastname}</td> </tr> {/if} {if $_userinfo.default_fields.s_address} <tr> <td>{$lng.lbl_address}: </td> <td>{$order.s_address} {$order.s_address_2}</td> </tr> {/if} {if $_userinfo.default_fields.s_city} <tr> <td>{$lng.lbl_city}: </td> <td>{$order.s_city}</td> </tr> {/if} {if $_userinfo.default_fields.s_county && $config.General.use_counties eq 'Y'} <tr> <td>{$lng.lbl_county}: </td> <td>{$order.s_countyname}</td> </tr> {/if} {if $_userinfo.default_fields.s_state} <tr> <td>{$lng.lbl_state}: </td> <td>{$order.s_statename}</td> </tr> {/if} {if $_userinfo.default_fields.s_country} <tr> <td>{$lng.lbl_country}: </td> <td>{$order.s_countryname}</td> </tr> {/if} {if $_userinfo.default_fields.s_zipcode} <tr> <td>{$lng.lbl_zip_code}: </td> <td>{$order.s_zipcode}</td> </tr> {/if} {foreach from=$_userinfo.additional_fields item=v} {if $v.section eq 'S'} <tr> <td>{$v.title}:</td> <td>{$v.value}</td> </tr> {/if} {/foreach} </table></td></tr> <tr><td valign="top"></td><td valign="top"></td></tr> </table> <table cellSpacing="0" cellPadding="3" width="90%" border="0"> {assign var="is_header" value=""} {foreach from=$_userinfo.additional_fields item=v} {if $v.section eq 'A'} {if $is_header eq ''} <tr> <td colspan="3"></td> </tr> <tr> <td width="45%" height="25">{$lng.lbl_additional_information}</td> <td colspan="2" width="55%"></td> </tr> <tr> <td> <table cellSpacing="0" cellPadding="0" width="90%" border="0"> {assign var="is_header" value="E"} {/if} <tr valign="top"> <td>{$v.title}</td> <td>{$v.value}</td> </tr> {/if} {/foreach} {if $is_header eq 'E'} </table></td> <td colspan="2" width="55%"></td> </tr> {/if} {if $config.Email.show_cc_info eq "Y" and $show_order_details eq "Y"} <tr> <td colspan="3"></td> </tr> <tr> <td width="45%" height="25">{$lng.lbl_order_payment_details}</td> <td colspan="2" width="55%"></td> </tr> <tr> <td colspan="3">{$order.details|replace:"\n":" "}</td> </tr> {/if} {if $order.netbanx_reference} <tr> <td colspan="3">NetBanx Reference: {$order.netbanx_reference}</td> </tr> {/if} </table> {include file="mail/html/order_data.tpl"} {if $active_modules.Anti_Fraud eq '' && $show_order_details eq "Y" && ($usertype eq 'A' || ($usertype eq 'P' && $active_modules.Simple_Mode))} {$lng.txt_warning_antifraud_disabled}</p> {/if} {$lng.txt_thank_you_for_purchase} </div>
__________________
Product: X-Cart Gold
Current version: 4.0.14

Additional Mods: X-Affiliate
Reply With Quote
  #4  
Old 02-15-2006, 07:20 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default

No, it only includes the company phone, not the customer's phone, you would need to add it where you would like to see it. Try this varaible:

{$userinfo.phone}
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #5  
Old 02-15-2006, 07:48 AM
 
Mr Bob Mr Bob is offline
 

Senior Member
  
Join Date: Jul 2005
Posts: 199
 

Default

Ah, that makes sense. I'll let you know how that works.

Thanks
__________________
Product: X-Cart Gold
Current version: 4.0.14

Additional Mods: X-Affiliate
Reply With Quote
  #6  
Old 02-15-2006, 01:27 PM
 
Mr Bob Mr Bob is offline
 

Senior Member
  
Join Date: Jul 2005
Posts: 199
 

Default

Looks like that corrected it.

Thanks again
__________________
Product: X-Cart Gold
Current version: 4.0.14

Additional Mods: X-Affiliate
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 02:20 PM.

   

 
X-Cart forums © 2001-2020