Changing currency symbol in the confirmation email

Problems installing or using the NOP Design Free Shopping Cart. **ARCHIVE** Please post new topics to one of the groups below.

Moderator: scott

Changing currency symbol in the confirmation email

Postby Rich » Thu Feb 20, 2003 10:19 am

Everything's fine on site (I.E. all currency symbols are in £'s), but I just noticed in the confirmation email that is sent after the order has taken place, the curreny remains as $'s. What part of the code in the php script do I need to alter this please?

Any help would be much appreciated.
Rich
 
Posts: 7
Joined: Fri Jan 03, 2003 10:13 pm

Postby Steven Nyland » Thu Feb 20, 2003 11:44 am

Hey Rich,

Replace the '\$' in the php script with the currency symbol you want to use (leave out the '\' when using f.i. the € symbol).

Hope this helps,

Steven
[ If it ain't Dutch ... it ain't Much ]
Steven Nyland
Guru
 
Posts: 274
Joined: Thu Jan 02, 2003 1:20 pm
Location: Still here ...

Postby Rich » Thu Feb 20, 2003 12:33 pm

You mean as follows:(?)

$strMessageBody .= "Qty Price(\£) Product ID - Product Name\n";

Do I need to change any of the $ symbols in the part below to the £ symbol as well, E.G. £TOTAL rather than $TOTAL?

$strMessageBody .= "SUBTOTAL: $SUBTOTAL \n";
$strMessageBody .= "TOTAL: $TOTAL \n";
$strMessageBody .= "\n";
$strMessageBody .= "FREIGHT: $SHIPPING \n";
$strMessageBody .= "\n\n";
$strMessageBody .= "Comments: \n";
$strMessageBody .= "--------- \n";
$strMessageBody .= "$comment \n";
$strMessageBody .= " \n";

Many thanks!
Rich
 
Posts: 7
Joined: Fri Jan 03, 2003 10:13 pm

Postby Steven Nyland » Thu Feb 20, 2003 12:45 pm

Onlye change the $ into another currency symbol in the e-mail body section:

$strMessageBody .= "Qty Price(£) Product ID - Product Name\n";

Note that I removed the backslash!

Do not remove $ from strings else your script will return an error.

Also change the other cart details from the e-mail body section:

For instance:
if( $NAME_2 ) {$strMessageBody .= "$QUANTITY_2 \$$PRICE_2 $ID_2 - $NAME_2 $ADDTLINFO_2 \n";}

With the currency symbol replace:
if( $NAME_2 ) {$strMessageBody .= "$QUANTITY_2 £$PRICE_2 $ID_2 - $NAME_2 $ADDTLINFO_2 \n";}

Steven
[ If it ain't Dutch ... it ain't Much ]
Steven Nyland
Guru
 
Posts: 274
Joined: Thu Jan 02, 2003 1:20 pm
Location: Still here ...

Postby Rich » Thu Feb 20, 2003 12:53 pm

Cheers Steve - I'm certain I got it all covered now; change all \$ to simply "£" right? Lol, you truly are a "Guru"!
Rich
 
Posts: 7
Joined: Fri Jan 03, 2003 10:13 pm


Return to Installation and Setup Problems

Who is online

Users browsing this forum: No registered users and 0 guests

cron