X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Dev Questions (https://forum.x-cart.com/forumdisplay.php?f=20)
-   -   Invoice to show return address & order number above ship (https://forum.x-cart.com/showthread.php?t=18916)

ShishaPipeUK 12-28-2005 02:37 PM

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>


balinor 12-28-2005 05:46 PM

Moving to Custom Mods

Learner 06-07-2010 10:00 PM

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?


All times are GMT -8. The time now is 05:02 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.