View Single Post
  #11  
Old 12-03-2005, 02:52 PM
  HWT's Avatar 
HWT HWT is offline
 

eXpert
  
Join Date: Jan 2005
Location: Massachusetts, USA
Posts: 392
 

Default

We have worked to personalize our business as much as possible, so I've played around with the e-mails to make them easier to edit the messages being given to the customer. I also took the invoices out of the e-mails because they were redundant. The e-mail already had the ordered item information in it.

I used two new language labels in each e-mail. One for the general text, and one for a signature (eml_order_status_signature) that was consistent throughout all the e-mails.

Create a new csv to be imported into languages, or add it to the lng.txt.csv from above. This can be used as a starting point for your language lable text:

Code:
eml_order_status_signature,Orders department,Orders department,E-Mail eml_oc_cancelled_text,I wanted to let you know that your order has been successfully been cancelled.,"I wanted to let you know that your order has successfully been cancelled. If there is anything that I can do for you further, please do not hesitate to contact me.",E-Mail eml_oc_back_in_stock_text,I wanted to drop you this note to let you know that your backordered items are back in stock.,"I wanted to drop you this note to let you know that your backordered items are back in stock and will soon be shipped. We will e-mail you your tracking numbers as soon as we receive them from the shipper. If you have any further questions or concerns, please do not hesitate to contact me.",E-Mail eml_oc_backordered_text,I wanted to drop you this note to let you know that your order is backordered.,"I wanted to drop you this note to let you know that your order is backordered. We will ship your items as soon as they are back in stock. If you have any questions or concerns, please do not hesitate to contact me.",E-Mail eml_oc_process_return_text,I wanted to drop you this note to let you know that your return is being processed.,I wanted to drop you this note to let you know that your return is being processed.,E-Mail eml_oc_shipping_text,I wanted to drop you this note to let you know that your order has been processed for shipping.,I wanted to drop you this note to let you know that your order has been processed for shipping.,E-Mail eml_oc_customer_refunded_text,"I wanted to drop you this note to let you know that your return has been processed, and a credit has been issued.","I wanted to drop you this note to let you know that your return has been processed, and a credit has been issues. ",E-Mail

now use these .tpl's for the e-mails:

order_customer_back_in_stock.tpl

Code:
{* mod.extended.order.status templates - order_customer_back_in_stock.tpl *} {* arthur: x-light *} {* work derived from Ruslan R. Fazliev, www.x-cart.com *} {* version 1.00, 4/09/05 *} {config_load file="$skin_config"} {include file="mail/html/mail_header.tpl"} {$lng.lbl_dear} {$customer.firstname} {$customer.lastname}, {$lng.eml_oc_back_in_stock_text} {$lng.eml_order_status_signature} <HR size="1" noshade> <TABLE border="0" cellpadding="2" cellspacing="1" width="100%"> <TR> <TD width="20%">{$lng.lbl_order_id}:</TD> <TD width="10"></TD> <TD width="80%"><TT>#{$order.orderid}</TT></TD> </TR> <TR> <TD>{$lng.lbl_order_date}:</TD> <TD width="10"></TD> <TD><TT>{$order.date|date_format:$config.Appearance.datetime_format}</TT></TD> </TR> {if $order.tracking} <TR> <TD>{$lng.lbl_tracking_number}:</TD> <TD width="10"></TD> <TD><TT>{$order.tracking}</TT></TD> </TR> {/if} <TR> <TD colspan="3">{include file="mail/html/order_data.tpl"}</TD> </TR> </TABLE> {include file="mail/html/order_invoice.tpl"} {include file="mail/html/signature.tpl"}

order_customer_backordered_tpl

Code:
{* mod.extended.order.status templates - order_customer_backordered.tpl *} {* arthur: x-light *} {* work derived from Ruslan R. Fazliev, www.x-cart.com *} {* version 1.00, 4/08/05 *} {config_load file="$skin_config"} {include file="mail/html/mail_header.tpl"} {$lng.lbl_dear} {$customer.title} {$customer.firstname} {$customer.lastname}, {$lng.eml_oc_backordered_text} {$lng.eml_order_status_signature} <HR size="1" noshade> <TABLE border="0" cellpadding="2" cellspacing="1" width="100%"> <TR> <TD width="20%">{$lng.lbl_order_id}:</TD> <TD width="10"></TD> <TD width="80%"><TT>#{$order.orderid}</TT></TD> </TR> <TR> <TD>{$lng.lbl_order_date}:</TD> <TD width="10"></TD> <TD><TT>{$order.date|date_format:$config.Appearance.datetime_format}</TT></TD> </TR> {if $order.tracking} <TR> <TD>{$lng.lbl_tracking_number}:</TD> <TD width="10"></TD> <TD><TT>{$order.tracking}</TT></TD> </TR> {/if} <TR> <TD colspan="3">{include file="mail/html/order_data.tpl"}</TD> </TR> </TABLE> {include file="mail/html/signature.tpl"}

order_customer_cancelled.tpl

Code:
{* mod.extended.order.status templates - order_customer_cancelled.tpl *} {* arthur: x-light *} {* work derived from Ruslan R. Fazliev, www.x-cart.com *} {* version 1.00, 4/08/05 *} {config_load file="$skin_config"} {include file="mail/html/mail_header.tpl"} {$lng.lbl_dear} {$customer.firstname} {$customer.lastname}, {$lng.eml_oc_cancelled_text} {$lng.eml_order_status_signature} <HR size="1" noshade> <TABLE border="0" cellpadding="2" cellspacing="1" width="100%"> <TR> <TD width="20%">{$lng.lbl_order_id}:</TD> <TD width="10"></TD> <TD width="80%"><TT>#{$order.orderid}</TT></TD> </TR> <TR> <TD>{$lng.lbl_order_date}:</TD> <TD width="10"></TD> <TD><TT>{$order.date|date_format:$config.Appearance.datetime_format}</TT></TD> </TR> <TR> <TD colspan="3">{include file="mail/html/order_data.tpl"}</TD> </TR> </TABLE> {include file="mail/html/signature.tpl"}

order_customer_process_return.tpl

Code:
{* mod.extended.order.status templates - order_customer_process_return.tpl *} {* arthur: x-light *} {* work derived from Ruslan R. Fazliev, www.x-cart.com *} {* version 1.00, 4/08/05 *} {config_load file="$skin_config"} {include file="mail/html/mail_header.tpl"} {$lng.lbl_dear} {$customer.title} {$customer.firstname} {$customer.lastname}, {$lng.eml_oc_process_return_text} {$lng.eml_order_status_signature} <HR size="1" noshade> <TABLE border="0" cellpadding="2" cellspacing="1" width="100%"> <TR> <TD width="20%">{$lng.lbl_order_id}:</TD> <TD width="10"></TD> <TD width="80%"><TT>#{$order.orderid}</TT></TD> </TR> <TR> <TD>{$lng.lbl_order_date}:</TD> <TD width="10"></TD> <TD><TT>{$order.date|date_format:$config.Appearance.datetime_format}</TT></TD> </TR> {if $order.tracking} <TR> <TD>{$lng.lbl_tracking_number}:</TD> <TD width="10"></TD> <TD><TT>{$order.tracking}</TT></TD> </TR> {/if} <TR> <TD colspan="3">{include file="mail/html/order_data.tpl"}</TD> </TR> </TABLE> {include file="mail/html/signature.tpl"}

order_customer_process_shipping.tpl

Code:
{* mod.extended.order.status templates - order_customer_process_shipping.tpl *} {* arthur: x-light *} {* work derived from Ruslan R. Fazliev, www.x-cart.com *} {* version 1.00, 4/08/05 *} {config_load file="$skin_config"} {include file="mail/html/mail_header.tpl"} {$lng.lbl_dear} {$customer.title} {$customer.firstname} {$customer.lastname}, {$lng.eml_oc_cancelled_text} {$lng.eml_order_status_signature} <HR size="1" noshade> <TABLE border="0" cellpadding="2" cellspacing="1" width="100%"> <TR> <TD width="20%">{$lng.lbl_order_id}:</TD> <TD width="10"></TD> <TD width="80%"><TT>#{$order.orderid}</TT></TD> </TR> <TR> <TD>{$lng.lbl_order_date}:</TD> <TD width="10"></TD> <TD><TT>{$order.date|date_format:$config.Appearance.datetime_format}</TT></TD> </TR> {if $order.tracking} <TR> <TD>{$lng.lbl_tracking_number}:</TD> <TD width="10"></TD> <TD><TT>{$order.tracking}</TT></TD> </TR> {/if} <TR> <TD colspan="3">{include file="mail/html/order_data.tpl"}</TD> </TR> </TABLE> {include file="mail/html/signature.tpl"}

order_customer_refunded.tpl

Code:
{* mod.extended.order.status templates - order_customer_refunded.tpl *} {* arthur: x-light *} {* work derived from Ruslan R. Fazliev, www.x-cart.com *} {* version 1.00, 4/08/05 *} {config_load file="$skin_config"} {include file="mail/html/mail_header.tpl"} {$lng.lbl_dear} {$customer.firstname} {$customer.lastname}, {$lng.eml_oc_customer_refunded_text} {$lng.eml_order_status_signature} <HR size="1" noshade> <TABLE border="0" cellpadding="2" cellspacing="1" width="100%"> <TR> <TD width="20%">{$lng.lbl_order_id}:</TD> <TD width="10"></TD> <TD width="80%"><TT>#{$order.orderid}</TT></TD> </TR> <TR> <TD>{$lng.lbl_order_date}:</TD> <TD width="10"></TD> <TD><TT>{$order.date|date_format:$config.Appearance.datetime_format}</TT></TD> </TR> {if $order.tracking} <TR> <TD>{$lng.lbl_tracking_number}:</TD> <TD width="10"></TD> <TD><TT>{$order.tracking}</TT></TD> </TR> {/if} <TR> <TD colspan="3">{include file="mail/html/order_data.tpl"}</TD> </TR> </TABLE> {include file="mail/html/signature.tpl"}

here is an example of the results of the language labels:

Quote:
Dear John Doe,

I wanted to let you know that your order has successfully been cancelled. If there is anything that I can do for you further, please do not hesitate to contact me.

Have a great day,

Nancy Doe
Personal Account Representative
Widgets, Inc.
nancy@widgets.com

I have changed all of my customer e-mails to use this two language label method so I can quickly change either the message being given to customers or the signature through the languages section in the admin, while keeping the look consistent.

Please look through the language csv before uploading to alter it to your needs. I also make no promises about spelling.

I hope some find this helpful!

A big thanks to x-ligh for sharing this great mod!!!!
__________________
x-cart 4.0.13 and 4.1.7 and 4.1.10
Reply With Quote