Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Weird symbols in order confirmation email


Webcraft

Recommended Posts

The order confirmation emails received from my store have spurious double brackets after the product name and Shipping description and A-circumflex characters in front of the currency symbol:

 

 

1 x 0001 Product 1 () = £5.00

 

------------------------------------------------------

Sub-Total: £5.00

Post and Packing (): £2.50

15% VAT: £1.13

Total: £8.63

 

I can't find any reference to this problem in the forums and can;t see anywhere in any language files that this can be happening, so I am stuck at the moment.

 

Can anyone please point me in the right direction?

 

Thanks very much.

Link to comment
Share on other sites

OK,

 

I have successfully changed the charset to UTF-8 in the default language file, so the £ sign in emails is now displaying correctly.

 

I cannot for the life of me work out o=how to get rid of the () after the Product Name and the Shipping:

 

1 x Product ID () = £7.50

Gemstone Blue Topaz

------------------------------------------------------

Sub-Total: £7.50

Post and Packing (): £2.50

Link to comment
Share on other sites

Right . . . .

 

I have now added a way to the shipping (Post and Packing) so there is something in those brackets.

 

That just leaves the brackets after the product description. I believe these are for the Model ,which is switched off in Admin - so how can I get rid of these?

 

Also - is there a way to stop product attributes being listed in the confirmation email??

 

Thanks in advance for help with these last two points.

Link to comment
Share on other sites

/catalog/checkout_process.php

 

Old code:

 

	$products_ordered .= $order->products[$i]['qty'] . ' x ' . $order->products[$i]['name'] . ' (' . $order->products[$i]['model'] . ') = ' . $currencies->display_price($order->products[$i]['final_price'], $order->products[$i]['tax'], $order->products[$i]['qty']) . $products_ordered_attributes . "\n";

New code:

 

	$products_ordered .= $order->products[$i]['qty'] . ' x ' . $order->products[$i]['name'] . ' = ' . $currencies->display_price($order->products[$i]['final_price'], $order->products[$i]['tax'], $order->products[$i]['qty']) . "\n";

That removes the model and the parentheses and the product attributes.

 

BACKUP THE FILE BEFORE EDITING.

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...