keat Posted March 12, 2010 Share Posted March 12, 2010 Guys A while ago, i successfully modified the sale email notification, so that it included the customer comments. I now want to do the same, so that it includes the customers telephone numbers, but I cannot for the life of me remember which file I modified. I thought it was ordersucces.inc.php, but no amount of modifcation will do what I want it to do, so I'm guessing it was a different file. Foolishly, I didn't take notes. Could someone remind me which file gererates and sends this email please. Dear CubeCart Store Administrator, New Order Number: DBO-100312-123801-8604 placed on Mar 12 2010, 12:38 PM ~~~~~~~~~~~~~~~~~~~~~~~~~~ Company: mr Name: mr k r E-Mail: Subtotal: £1.50 Coupon Discount: £0.00 Postage & Packaging: £3.95 Tax: £0.95 Grand Total: £6.40 ~~~~~~~~~~~~~~~~~~~~~~~~~~ Invoice Address: mr mr k r 1 1 1 1 1 United Kingdom Shipping Address: mr k r 1 1 1 1 1 United Kingdom Payment Method: PayPal Shipping Method: Customer comments: zzzz ~~~~~~~~~~~~~~~~~~~~~~~~~~ Order Inventory: Product: Maintenance Spray Quantity: 1 Product Code: WC1 Price: £1.50 Quote Link to comment Share on other sites More sharing options...
Robsta Posted March 12, 2010 Share Posted March 12, 2010 The text is in the language file. Quote Link to comment Share on other sites More sharing options...
keat Posted March 12, 2010 Author Share Posted March 12, 2010 The text is in the language file. Hi Robsta I'm looking for the actual php file which generates the email that we recieve when a customer places an order. For some reason, it doesn't include the customer telephone number. I'm looking to modify the script, so that it would.. making the job for the girls inputting into our system a little easier. I've done this once, but can't rememeber which file I modified. Quote Link to comment Share on other sites More sharing options...
bsmither Posted March 12, 2010 Share Posted March 12, 2010 Two parts to this: /language/YOURLANG/land.inc.php at around line 1585, 'admin_email_body_1' /includes/content/gateway.inc.php at around line 234, $text = sprintf($lang['front']['gateway']['admin_email_body_1'], Edit the language file array element: ~~~~~~~~~~~~~~~~~~~~~~~~~~ Name: %s E-Mail: %s Phone: %s Then add the customer data item to the sprintf function: $ccUserData[0]['title']." ".$ccUserData[0]['firstName']." ".$ccUserData[0]['lastName'], $ccUserData[0]['email'], $ccUserData[0]['phone'], That should do it. Quote Link to comment Share on other sites More sharing options...
keat Posted March 19, 2010 Author Share Posted March 19, 2010 Two parts to this: /language/YOURLANG/land.inc.php at around line 1585, 'admin_email_body_1' /includes/content/gateway.inc.php at around line 234, $text = sprintf($lang['front']['gateway']['admin_email_body_1'], Edit the language file array element: ~~~~~~~~~~~~~~~~~~~~~~~~~~ Name: %s E-Mail: %s Phone: %s Then add the customer data item to the sprintf function: $ccUserData[0]['title']." ".$ccUserData[0]['firstName']." ".$ccUserData[0]['lastName'], $ccUserData[0]['email'], $ccUserData[0]['phone'], That should do it. Sorted.. Thanks Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.