PDA

View Full Version : Email format problem


AnnaWilde
16-Jul-2003, 12:37 PM
Hi

Trivial but annoying:

The confirmation of order received that the customer gets is formatted wrongly - mostly left justified but parts centred (see below)>>>>>>>>>>>

Thank you for shopping at The Nail Care Club .
We have received and are processing the following order:

******************************************************
Order Number: AW79DW10000320
Order Date: 16/7/2003 12:18 GMT

Ship To:
Anna Wilde
Peaton Rough
Craven Arms
sy7 9dw
United Kingdom
01584 841555
annawilde@perfectarc.com



Shopping Cart (Prices in £s)
DESCRIPTION QUANTITY Price: COST
----------------------------------------------------------------------
SuperNail Supershine 1 £2.34 £2.34
======================================================================
Subtotal: £2.34
Shipping (Standard Charge): £2.50
VAT: £0.41
Total price (BEFORE any discounts schemes applied): £5.25


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


Sincerely,
Carolyn Sears
The Nail Care Club

>>>>>>>>

I can't find out how to correct this - it's the part from below the line beginning 'Subtotal' that is centred.

Anyone help?

Cheers

Anna
PerfectArc Ltd

cdicken
18-Jul-2003, 09:13 AM
I don't think it is that it is centred. I think it is that the Perl (which generates the email) puts tabs before the valaues you identify in order to make it look right-justified.

Of course, if you are using a non-proportional font in your email reader, then it will look out of alignment.

No ideas how to fix it I'm afriad. Maybe if Zoltan is around he can advise.

zmagyar
18-Jul-2003, 11:10 AM
Correct, the lines are not centered but aligned to have a nice layout with proportional fonts. If you want to get rid of this formatting then you can do this only by some script customisation. The appropriate fragments can be found in GenerateCustomerMail function of Orderscript.pl. If you can see lines like $ACTINIC::B2B->AppendXML('CART', sprintf(sprintf(" %%%ds\r\n", $nPriceColumnWidth), $sSubTotal)); then you are looking to the right place. But I wouldn't suggest to do any customisation without perl skills.

Regards,