X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Invoice sent to admin, add customer's phone? (https://forum.x-cart.com/showthread.php?t=19930)

Mr Bob 02-14-2006 08:25 PM

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. :roll:

balinor 02-15-2006 03:05 AM

mail/html/order_invoice.tpl

Mr Bob 02-15-2006 07:15 AM

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>


balinor 02-15-2006 07:20 AM

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}

Mr Bob 02-15-2006 07:48 AM

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

Thanks

Mr Bob 02-15-2006 01:27 PM

Looks like that corrected it.

Thanks again :lol:


All times are GMT -8. The time now is 12:28 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.