Email Confirmation - Order Status Modification
As far as I know the order status will always display in the single letter format.
What I did was create a Smarty template to take care of this. This way I only have the order status descriptions in one location.
I created a new file named "modifier.orderstatus_format.php" and placed this file in the "Smarty-2.5.0/plugins" directory.
This file contains the following information:
<?php
/*
* Smarty plugin
* -------------------------------------------------------------
* Type: modifier
* Name: orderstatus_format
* Purpose: format order status
* Input: string: input order status code
* -------------------------------------------------------------
*/
function smarty_modifier_orderstatus_format($string)
{
if ($string == 'I') return 'Not finished';
elseif($string == 'Q') return 'Queued';
elseif($string == 'P') return 'Processed';
elseif($string == 'B') return 'Back ordered';
elseif($string == 'D') return 'Declined';
elseif($string == 'F') return 'Failed';
elseif($string == 'C') return 'Complete';
else return 'Unknown';
}
?>
I then changed the line in the file "skin1/mail" from:
{$lng.lbl_order_status}: {$order.status}
to:
{$lng.lbl_order_status}: {$order.status|orderstatus_format}
I have run this mod from version 3.3.4 to version 3.5.4 with no problems.
I hope this helps.
|