Page 1 of 2
Wrong Name & Email address
Posted: Tue Apr 14, 2026 6:21 pm
by AsTecModels
Hi All,
I have done something wrong, in messages sent out and order confirmations instead of who they are to it is putting my store email and store owner name.
Example below shows Customer Name as Administrator but should show Jonathan, and Customer Email as
Enquires@AsTecModels.Co.Uk but should be
shop@nimrifrc.co.uk
Re: Wrong Name & Email address
Posted: Wed Apr 15, 2026 8:56 am
by burt
That seems strange. Have you made `customised changes` to the checkout notification ?
Post the code from /includes/modules/notifications/templates/tpl_n_checkout.php
Or any override of it.
Re: Wrong Name & Email address
Posted: Wed Apr 15, 2026 10:20 am
by AsTecModels
burt wrote: ↑Wed Apr 15, 2026 8:56 am
That seems strange. Have you made `customised changes` to the checkout notification ?
Post the code from /includes/modules/notifications/templates/tpl_n_checkout.php
Or any override of it.
It is everything, the checkout is just one example.
Here is the code you asked about.
Code: Select all
<?php
/*
$Id$
CE Phoenix, E-Commerce made Easy
https://phoenixcart.org
Copyright (c) 2021 Phoenix Cart
Released under the GNU General Public License
*/
// let's start with the email confirmation
echo STORE_NAME . "\n"
. MODULE_NOTIFICATIONS_CHECKOUT_SEPARATOR . "\n"
. MODULE_NOTIFICATIONS_CHECKOUT_TEXT_ORDER_NUMBER . ' ' . $order->get_id() . "\n"
. MODULE_NOTIFICATIONS_CHECKOUT_TEXT_INVOICE_URL . ' '
. $GLOBALS['Linker']->build('account_history_info.php', ['order_id' => $order->get_id()], false) . "\n"
. MODULE_NOTIFICATIONS_CHECKOUT_TEXT_DATE_ORDERED . ' ' . $GLOBALS['long_date_formatter']->format(time()) . "\n\n";
if (!empty($order->info['comments'])) {
echo htmlspecialchars($order->info['comments']) . "\n";
}
echo MODULE_NOTIFICATIONS_CHECKOUT_TEXT_PRODUCTS . "\n"
. MODULE_NOTIFICATIONS_CHECKOUT_SEPARATOR . "\n";
foreach ($order->products as $product) {
echo "\n" . $product['qty']
. ' x ' . $product['name']
. (empty($product['model']) ? '' : ' (' . $product['model'] . ')')
. ' = ' . $GLOBALS['currencies']->display_price($product['final_price'], $product['tax'], $product['qty']);
//------insert customer chosen options to order--------
foreach (($product['attributes'] ?? []) as $attribute) {
echo "\n\t" . $attribute['option'] . ' ' . $attribute['value'];
}
//------insert customer chosen options eof ----
}
echo "\n" . MODULE_NOTIFICATIONS_CHECKOUT_SEPARATOR . "\n";
foreach ($order->totals as $order_total) {
echo strip_tags($order_total['title']) . ' ' . strip_tags($order_total['text']) . "\n";
}
if ($order->content_type != 'virtual') {
echo "\n" . MODULE_NOTIFICATIONS_CHECKOUT_TEXT_DELIVERY_ADDRESS . "\n"
. MODULE_NOTIFICATIONS_CHECKOUT_SEPARATOR . "\n"
. $customer->make_address_label($order->delivery, 0, '', "\n") . "\n";
}
echo "\n" . MODULE_NOTIFICATIONS_CHECKOUT_TEXT_BILLING_ADDRESS . "\n"
. MODULE_NOTIFICATIONS_CHECKOUT_SEPARATOR . "\n"
. $customer->make_address_label($order->billing, 0, '', "\n") . "\n\n";
$payment = $GLOBALS[$_SESSION['payment']];
if (is_object($payment)) {
echo MODULE_NOTIFICATIONS_CHECKOUT_TEXT_PAYMENT_METHOD . "\n"
. MODULE_NOTIFICATIONS_CHECKOUT_SEPARATOR . "\n";
echo $order->info['payment_method'] . "\n\n";
if (isset($payment->email_footer)) {
echo $payment->email_footer . "\n\n";
}
}
?>
Re: Wrong Name & Email address
Posted: Wed Apr 15, 2026 10:23 am
by burt
Strange then, as that email comes from that Notification.
Search your files for "Customer Name:" and see where it appears.
You must have made a change to code somewhere?
Re: Wrong Name & Email address
Posted: Wed Apr 15, 2026 10:45 am
by Dan Cole
Could in be a database issue where the customer_id is mixed up?
Dan
Re: Wrong Name & Email address
Posted: Wed Apr 15, 2026 1:05 pm
by AsTecModels
Dan Cole wrote: ↑Wed Apr 15, 2026 10:45 am
Could in be a database issue where the customer_id is mixed up?
Dan
Hi Dan,
It would be every account wrong in the database, but they all look right. If I change the Config->My Store->Store Owner or E-Mail Address they change the customer and email address no matter who is being emailed.
Re: Wrong Name & Email address
Posted: Wed Apr 15, 2026 1:10 pm
by burt
burt wrote: ↑Wed Apr 15, 2026 10:23 am
Search your files for "Customer Name:" and see where it appears.
This is the first step.
Re: Wrong Name & Email address
Posted: Wed Apr 15, 2026 4:42 pm
by Dan Cole
You're best to follow
@burt's advise. I'm just guessing, but if it is just the email address and name that are incorrect, could it be related to the change you referenced here?
viewtopic.php?p=22589#p22589
Dan
Re: Wrong Name & Email address
Posted: Wed Apr 15, 2026 5:04 pm
by AsTecModels
Dan Cole wrote: ↑Wed Apr 15, 2026 4:42 pm
You're best to follow @burt's advise. I'm just guessing, but if it is just the email address and name that are incorrect, could it be related to the change you referenced here?
viewtopic.php?p=22589#p22589
Dan
Good spot, that is it. Without it is correct but contact us does not give sender user name and email. I will go and play with it.
Re: Wrong Name & Email address
Posted: Thu Apr 16, 2026 6:37 am
by AsTecModels
I have modified that file and now works

thank you for noticing where the issue was.