Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Missing vital product information from order email


crimsontree

Recommended Posts

I have a problem with my order email.

 

The 2nd half of the email is missing and the products ordered do not appear.. The customer has added comments to the order. Here is the amount of comments.

 

101 words

547 characters including spaces

451 characters excluding spaces

 

I assume that the customer has entered too much comments, as their comments are not complete. Am I right?

 

Does anyone know how I can fix this problem?

cheers,

 

Crimsontree

Link to comment
Share on other sites

you could convert html characters, where a "<" will show up as "<", ">" as ">". it will also convert "&" and quotes.

htmlentities() will convert all html chars.

 

or you could do it manually:

str_replace('<', ' ', tep_db_output($order->info['comments']))

 

in checkout_process.php

change

if ($order->info['comments']) {

   $email_order .= tep_db_output($order->info['comments']) . "nn";

 }

 

to

if ($order->info['comments']) {

   $email_order .= htmlspecialchars(tep_db_output($order->info['comments'])) . "nn";

 }

 

or use str_replace or htmlentities.

maybe there's another way.

 
Link to comment
Share on other sites

I searched for

if ($order->info['comments']) { 

   $email_order .= tep_db_output($order->info['comments']) . "nn"; 

 }

 

but could not find it in checkout_process.php.

 

Is there another way to fix it?

cheers,

 

Crimsontree

Link to comment
Share on other sites

I replaced

if ($order->info['comments']) {

   $email_order .= $order->info['comments'] . "nn";

 }

instead.

 

And that seems to have fixed the problem.

 

 

Many thanks josheli

 

:)

cheers,

 

Crimsontree

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...