View Single Post
  #83  
Old 03-09-2009, 07:59 AM
 
delboy2028 delboy2028 is offline
 

Advanced Member
  
Join Date: Jan 2009
Location: UK
Posts: 97
 

Default Re: Printable Packing Slip - 4.0.x

hi guys here is my layout i have made


as you can see i ave centred the graphics nd address for easy or printing for the plastic postal wallets now the problem i have is this uses customers billing address and does not change if the customer use a diffrent shipping address would there be any way to change it to auto detec if the shipping address fileds were used nd use them instead of standard billing address.

PHP Code:
{if $customer ne ''}{assign var="_userinfo" value=$customer}{else}{assign var="_userinfo" value=$userinfo}{/if}
{
config_load file="$skin_config"}
{if 
$is_nomail ne 'Y'}
{
literal}
<
STYLE type="text/css">
BODY {
    
MARGIN-TOP10px
    
FONT-SIZE12px
    
MARGIN-LEFT10px
    
FONT-FAMILYarial,helvetica,sans-serifcolor#000000;
background-color#FFFFFF;
}
TD {
    
FONT-SIZE12px
    
FONT-FAMILYarial,helvetica,sans-serifcolor#000000;
}
TH {
    
FONT-SIZE13px
    
FONT-FAMILYarial,helvetica,sans-serifcolor#000000;
}
H1 {
    
FONT-SIZE20px
}
</
STYLE>
{/
literal}

{/if}
<
TABLE cellSpacing="0" cellPadding="0" width="{if $is_nomail eq 'Y'}100%{else}600{/if}" border="0">
<
TR>
    <
TD style="padding: 10px;">
    <
TABLE cellSpacing="0" cellPadding="0" width="100%" border="0">
        <
TR>
<
td align="left">
{
$config.Company.location_address}<br />
{
$config.Company.location_city}, {$config.Company.location_state_name
{
$config.Company.location_zipcode}<br />
{
$config.Company.company_website}<br />
 {
$config.Company.company_phone}<br />

            </
TD>

            <
TD vAlign="top" align="right">
<
span style="FONT-SIZE: 25px"><B>Packing Slip</B></span>
<
br /><br />
<
B>{$lng.lbl_date}:</B> {$order.date|date_format:$config.Appearance.datetime_format}<br /><B>{$lng.lbl_order_id}:</B>  #{$order.orderid}<br /><B>{$lng.lbl_order_status}:</B> {include file="main/order_status.tpl" status=$order.status mode="static"}<br />
<B>{$lng.lbl_payment_method}:</B> {$order.payment_method}<br />
<
B>{$lng.lbl_delivery}:</B>  {$order.shipping|trademark|default:$lng.txt_not_available}<br><br>
            </
TD>

            
        </
TR>
        </
TABLE>

    <
TABLE cellSpacing="0" cellPadding="0" width="100%" border="0">
    <
TR>
        <
TD><IMG height="1" src="{$ImagesDir}/spacer.gif" width="1"></TD>
    </
TR>
    <
TR>
        <
TD bgcolor="#4F5FA9"><IMG height="1" src="{$ImagesDir}/spacer.gif" width="100%"></TD>
    </
TR>
    <
TR>
        <
TD><IMG height="1" src="{$ImagesDir}/spacer.gif" width="1"></TD>
    </
TR>
    </
TABLE>
    <
TABLE cellSpacing="0" cellPadding="0" width="100%" border="0"><td align="centre"> <p align="center"><IMG src="{$ImagesDir}/companyname_small.gif" border="0"></td>
    <
TR>
        <
TD width="98%" height="25">
        <
TD width="1%">  </TD>
        <
TD width="45%" height="25"> </TD>
    </
TR>
    <
TR>
        <
TD style="padding: 5px; border: 1px solid #; background-color: #" align="center">
        <
TABLE cellSpacing="0" cellPadding="0" width="41%" border="0">

        <
TR>
            <
TD><B><font size="2">{$lng.lbl_name}:</font></B><font size="2">
            </
font> </TD>
            <
TD><span style="font-size: 11pt; font-weight: 700">{$order.b_firstname} {$order.b_lastname}</span></TD>
        </
TR>


{if 
$_userinfo.default_fields.b_address}
        <
TR>
            <
TD><B><font size="2">{$lng.lbl_address}:</font></B><font size="2">
            </
font> </TD>
            <
TD><span style="font-size: 11pt; font-weight: 700">{$order.b_address}<br />{$order.b_address_2}</span></TD>
        </
TR>
{/if}
{if 
$_userinfo.default_fields.b_city}
        <
TR>
            <
TD><B><font size="2">{$lng.lbl_city}:</font></B><font size="2">
            </
font> </TD>
            <
TD><span style="font-size: 11pt; font-weight: 700">{$order.b_city}</span></TD>
        </
TR>
{/if}
{if 
$_userinfo.default_fields.b_county && $config.General.use_counties eq 'Y'}
        <
TR>
            <
TD><B><font size="2">{$lng.lbl_county}:</font></B><font size="2">
            </
font> </TD>
            <
TD><span style="font-size: 11pt; font-weight: 700">{$order.b_countyname}</span></TD>
        </
TR>
{/if}
{if 
$_userinfo.default_fields.b_state}
        <
TR>
            <
TD><B><font size="2">{$lng.lbl_state}:</font></B><font size="2">
            </
font> </TD>
            <
TD><span style="font-size: 11pt; font-weight: 700">{$order.b_statename}</span></TD>
        </
TR>
{/if}
{if 
$_userinfo.default_fields.b_country}
        <
TR>
            <
TD><B><font size="2">{$lng.lbl_country}:</font></B><font size="2">
            </
font> </TD>
            <
TD><span style="font-size: 11pt; font-weight: 700">{$order.b_countryname}</span></TD>
        </
TR>
{/if}
{if 
$_userinfo.default_fields.b_zipcode}
        <
TR>
            <
TD><B><font size="2">{$lng.lbl_zip_code}:</font></B><font size="2">
            </
font> </TD>
            <
TD><span style="font-size: 11pt; font-weight: 700">{$order.b_zipcode}</span></TD>
        </
TR>
{/if}
{foreach 
from=$_userinfo.additional_fields item=v}
{if 
$v.section eq 'B'}
        <
TR>
            <
TD><B><font size="2">{$v.title}:</font></B></TD>
            <
TD><span style="font-size: 11pt; font-weight: 700">{$v.value}</span></TD>
        </
TR>
    {/if}
{/foreach}
        </
TABLE>
        </
TD>
        <
TD align="center">  </TD>
        <
TD style="padding: 5px; border: 1px solid #; background-color: #;" align="center">
                 </
TD>
    </
TR>

{
assign var="is_header" value=""}
{foreach 
from=$_userinfo.additional_fields item=v}
{if 
$v.section eq 'A'}
{if 
$is_header eq ''}
<
TR>
    <
TD colspan="3"> </TD>
</
TR>
<
TR>
    <
TD width="98%" height="25"><B>{$lng.lbl_additional_information}</B></TD>
    <
TD colspan="2" width="2%"> </TD>
</
TR>
<
TR>
    <
TD bgColor="#000000" height="1"><IMG height="1" src="{$ImagesDir}/spacer_black.gif" width="100%"></TD>
    <
TD colspan="1" width="1%"><IMG height="1" src="{$ImagesDir}/spacer.gif" width="1"></TD>
</
TR>
<
TR>
    <
TD colSpan="3"><IMG height="1" src="{$ImagesDir}/spacer.gif" width="1"></TD>
</
TR>
<
TR>
    <
TD><TABLE cellSpacing="0" cellPadding="0" width="100%" border="0">
{
assign var="is_header" value="E"}
{/if}
<
TR valign="top">
    <
TD><B>{$v.title}</B></TD>
       <
TD>{$v.value}</TD>
</
TR>
{/if}
{/foreach}
{if 
$is_header eq 'E'}
</
TABLE></TD>
<
TD colspan="2" width="2%"> </TD>
</
TR>
{/if}


{if 
$config.Email.show_cc_info eq "Y" and $show_order_details eq "Y"}

    <
TR>
    <
TD colspan="3"> </TD>
    </
TR>

    <
TR>
    <
TD width="98%" height="25"><B>{$lng.lbl_order_payment_details}</B></TD>
    <
TD colspan="2" width="2%"> </TD>
    </
TR>
    
    <
TR>
    <
TD bgColor="#000000" height="2"><IMG height="2" src="{$ImagesDir}/spacer_black.gif" width="100%"></TD>
    <
TD colspan="2"><IMG height="2" src="{$ImagesDir}/spacer.gif" width="1"></TD>
    <
TR>
    <
TD colSpan="3"><IMG height="2" src="{$ImagesDir}/spacer.gif" width="1"></TD>
    </
TR>

    <
TR>
    <
TD colspan="3">{$order.details|replace:"\n":"<br />"}</TD>
    </
TR>

{/if}
{if 
$order.netbanx_reference}
<
TR>
    <
TD colspan="3">NetBanx Reference: {$order.netbanx_reference}</TD>
</
TR>
{/if}

    </
TABLE>
    <
br />
    <
br />

{include 
file="mail/html/order_data_packing.tpl"}

    </
TD>
</
TR>

<
TR>
<
TD align="center"><br /><br /><SPAN style="FONT-SIZE:12px">{$lng.txt_thank_you_for_purchase}</SPAN></TD>
</
TR>

</
TABLE
__________________
Version 5.3.1