Jump to content

add customer phone number to new order email to admin


Guest bil

Recommended Posts

Does anybody know how to add the scustomer phone number to the "new order" email? I assume I add it to "lang.inc.php" and I know (i think) where to add it to. but unclear on what to add. I am a registered user, my name is William Chute. Thanks in advance. :P

Link to comment
Share on other sites

Right. In lang.inc.php, in the $lang['front']['gateway'] array, in the 'admin_email_body_1' element, add after:

Name: %s

this line:

Phone: %s

Repeat for each language desired.

Then in file includes/content/gateway.inc.php, add after:

$ccUserData[0]['title']." ".$ccUserData[0]['firstName']." ".$ccUserData[0]['lastName'],

this line:

$ccUserData[0]['phone'],

Do not forget the comma at the end of that line.

This is a really minor hack and so this response to your query should be acceptable to the powers that be, against discussing modifying the code.

Link to comment
Share on other sites

Right. In lang.inc.php, in the $lang['front']['gateway'] array, in the 'admin_email_body_1' element, add after:

Name: %s

this line:

Phone: %s

Repeat for each language desired.

Then in file includes/content/gateway.inc.php, add after:

$ccUserData[0]['title']." ".$ccUserData[0]['firstName']." ".$ccUserData[0]['lastName'],

this line:

$ccUserData[0]['phone'],

Do not forget the comma at the end of that line.

This is a really minor hack and so this response to your query should be acceptable to the powers that be, against discussing modifying the code.

Thanks that worked great!! Have a great weekend from the land of OZ! (Australia)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...