View Single Post
  #1  
Old 12-28-2005, 02:37 PM
  ShishaPipeUK's Avatar 
ShishaPipeUK ShishaPipeUK is offline
 

Senior Member
  
Join Date: Jul 2005
Location: London, England.
Posts: 118
 

Default Invoice to show return address & order number above ship

Because some orders we have the billing address different to the shipping address and the name is also different we found it hard at times to easily identify what orders where completed with out opening the document enclosed label.

We use the documents enclosed label on our parcels where the invoice goes in which of cause is used for displaying the delivery address.

So we edited the invoice template in shopcart/skin1/mail/html/order_invoice.tpl to show the shipping method, Order ID and also the return address details in case the parcel did not get delivered. This way anyone can look at the shipping label and know instantly the order number and the shipping method.

Below are the details:


Code:
<TABLE cellSpacing="0" cellPadding="0" width="100%" border="0"> {if $_userinfo.default_fields.company} <TR> <TD width="21%">{$lng.lbl_company}:</TD> <TD width="22%">{$order.company}</TD> <TD width="10%"></TD> <TD width="18%"></TD> <TD width="29%"></TD> </TR> {/if} {if $_userinfo.default_fields.firstname} <TR> <TD noWrap>{$lng.lbl_first_name}:</TD> <TD>{$order.firstname}</TD> <TD></TD> <TD></TD> <TD></TD> </TR> {/if} {if $_userinfo.default_fields.lastname} <TR> <TD noWrap>{$lng.lbl_last_name}:</TD> <TD>{$order.lastname}</TD> <TD></TD> <TD></TD> <TD></TD> </TR> {/if} {if $_userinfo.default_fields.phone} <TR> <TD>{$lng.lbl_phone}:</TD> <TD>{$order.phone}</TD> <TD></TD> <TD>If undelivered, </TD> <TD>{$config.Company.location_address}</TD> </TR> {/if} {if $_userinfo.default_fields.fax} <TR> <TD>{$lng.lbl_fax}:</TD> <TD>{$order.fax}</TD> <TD></TD> <TD>please return to: </TD> <TD>{$config.Company.location_zipcode}</TD> </TR> {/if} {if $_userinfo.default_fields.email} <TR> <TD>{$lng.lbl_email}:</TD> <TD>{$order.email}</TD> <TD></TD> <TD></TD> <TD></TD> </TR> {/if} {if $_userinfo.default_fields.url} <TR> <TD>{$lng.lbl_url}:</TD> <TD>{$order.url}</TD> <TD></TD> <TD colspan="2">{$order.shipping|trademark|default:$lng.txt_not_available} - <font color="#0000FF">{$lng.lbl_order_id}: {$order.orderid}</font></TD> </TR> {/if} {foreach from=$_userinfo.additional_fields item=v} {if $v.section eq 'C' || $v.section eq 'P'} <TR> <TD>{$v.title}:</TD> <TD>{$v.value}</TD> <TD></TD> <TD></TD> <TD></TD> </TR> {/if} {/foreach} </TABLE>

The below picture gives you an idea what the format looks like:
http://www.shisha.co.uk/images/xcart_test_invoice.jpg

Because people also order more than 5 items and it can stretch to 2 pages, we also made it clear for the total price at the top of the invoice next to "Products Ordered" so that it was easy to process the manual handling of the credit card for the main total.

We edited the shopcart/skin1/mail/html/order_data.tpl from:

Code:
<TR> <TD align="center"><FONT style="FONT-SIZE: 14px; FONT-WEIGHT: bold;">{$lng.lbl_products_ordered}</FONT></TD> </TR>

to:
Code:
<TR> <TD align="center"><FONT style="FONT-SIZE: 14px; FONT-WEIGHT: bold;"><font color="#FF0000">Order Total: {include file="currency.tpl" value=$order.total}</font> - {$lng.lbl_products_ordered}</FONT></TD> </TR>
__________________
Apache/2.0.55 (Red Hat) & MYSQL Server: 5.0.24
PERL: 5.008005 / PHP: 4.4.4 - 4.3.1 X-CART

Shop carts at
http://www.nightscene.co.uk/shop/home.php
http://www.theshisha.net/shopcart/home.php
http://www.system-maintenance.com/maint/home.php
http://www.tabac4u.com
Reply With Quote