Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Invoice to show return address & order number above ship

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions
 
Thread Tools Search this Thread
  #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
  #2  
Old 12-28-2005, 05:46 PM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default

Moving to Custom Mods
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 06-07-2010, 10:00 PM
 
Learner Learner is offline
 

X-Adept
  
Join Date: Dec 2008
Posts: 807
 

Default Re: Invoice to show return address & order number above ship

Hi ShishaPipeUK Can I able to add manufacture's name, address,phone no,city in the invoice?
__________________
4.6.1 Platinum


Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 08:56 AM.

   

 
X-Cart forums © 2001-2020