Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Formatting product text in Order Email


tatty

Recommended Posts

Posted

Hello, can anyone help with this?

 

I can't seem to get rid of the 'n's and 't's that crop up between products and attributes in my order email. I'd also love to get rid of the brackets where the model number would go, if I had model numbers. At the moment, by order email looks like this:

 

Here's what you ordered

******************************************

1 x Product A () = ?41.00ntColour Blackn1 x Product B () = ?85.00ntColour Blackn

Subtotal: ?126.00

 

I want it to look like this:

 

Here's what you ordered

******************************************

1 x Product A = ?41.00 Colour Black

1 x Product B = ?85.00 Colour Black

Subtotal: ?126.00

 

Here is my code from catalog/checkout_process.php:

 

$email_order .= EMAIL_TEXT_PRODUCTS . "\n" .

EMAIL_SEPARATOR . "\n" .

$products_ordered . "\n" ;

 

for ($i=0, $n=sizeof($order_totals); $i<$n; $i++) {

$email_order .= strip_tags($order_totals[$i]['title']) . ' ' . strip_tags($order_totals[$i]['text']) . "\n";

}

 

 

Any help gratefully received!

 

Thanks,

Tatty

Archived

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

×
×
  • Create New...