Comments not posting to Order Confirmation email
Posted: Thu Mar 13, 2025 5:48 pm
1.0.9.9 store running php 8.3.17
Recently migrated from osc 2.3.4.1 CE
When an order is placed, the order confirmation email is not listing the order comments. The comments are posting to the db and show in the order history. Looking at tpl_n_checkout.php, the code looks very similar to the code used in CE (a few changes, presumably to account for php updates)...but the comments were posting to the email in CE.
Relevant Phoenix code:
if (!empty($order->info['comments'])) {
echo htmlspecialchars($order->info['comments']) . "\n";
Previous OSC code:
if ($order->info['comments']) {
$email_order .= tep_db_output($order->info['comments']) . "\n\n";
The only change I can see in the process is that previously the comments block was listed on every step of the checkout process with a text of the comments on the confirmation page, while the new way has the comment entry block only on the confirmation page.
I found this thread that seems to be pointing to the same issue, but there was no resolution.
viewtopic.php?f=10&t=848&p=6409&hilit=c ... ents#p6409
Thank you for any input.
Recently migrated from osc 2.3.4.1 CE
When an order is placed, the order confirmation email is not listing the order comments. The comments are posting to the db and show in the order history. Looking at tpl_n_checkout.php, the code looks very similar to the code used in CE (a few changes, presumably to account for php updates)...but the comments were posting to the email in CE.
Relevant Phoenix code:
if (!empty($order->info['comments'])) {
echo htmlspecialchars($order->info['comments']) . "\n";
Previous OSC code:
if ($order->info['comments']) {
$email_order .= tep_db_output($order->info['comments']) . "\n\n";
The only change I can see in the process is that previously the comments block was listed on every step of the checkout process with a text of the comments on the confirmation page, while the new way has the comment entry block only on the confirmation page.
I found this thread that seems to be pointing to the same issue, but there was no resolution.
viewtopic.php?f=10&t=848&p=6409&hilit=c ... ents#p6409
Thank you for any input.