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

Printable Packing Slip - 4.0.x

 
Closed Thread
   X-Cart forums > X-Cart 4 > Dev Questions
 
Thread Tools Search this Thread
  #81  
Old 02-02-2009, 04:08 PM
  imexhouse's Avatar 
imexhouse imexhouse is offline
 

eXpert
  
Join Date: May 2006
Location: Canada
Posts: 377
 

Default Re: Printable Packing Slip - 4.0.x

RC1, as of Jan 30.
But, you're right. I wouldn't install it on my main computer.
__________________
Jack@AquasanaCA
X-CART GOLD 4.0.19 Live
DSEFU, AOM, ezCheckout, ezUpsell, ezRecommends, RememberMe, RememberAnonCarts
AquasanaCanada.com - Aquasana╝ - #1 Rated Water Filters in America!
X-CART GOLD 4.4.5 Live
CDSEO Pro v. 1.8.4
AquasanaMontreal.com
Aquasana╝ & Rhino Water Filtration Systems
  #82  
Old 02-02-2009, 04:09 PM
 
balinor balinor is offline
 

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

Default Re: Printable Packing Slip - 4.0.x

RC1 = not production ready. Don't waste your time just yet - there will be plenty of headaches when the time comes!
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
  #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
  #84  
Old 03-09-2009, 09:09 AM
  imexhouse's Avatar 
imexhouse imexhouse is offline
 

eXpert
  
Join Date: May 2006
Location: Canada
Posts: 377
 

Default Re: Printable Packing Slip - 4.0.x

If you want the shipping address to be printed, instead of the billing address, use s_ for all your address fields instead of b_.
__________________
Jack@AquasanaCA
X-CART GOLD 4.0.19 Live
DSEFU, AOM, ezCheckout, ezUpsell, ezRecommends, RememberMe, RememberAnonCarts
AquasanaCanada.com - Aquasana╝ - #1 Rated Water Filters in America!
X-CART GOLD 4.4.5 Live
CDSEO Pro v. 1.8.4
AquasanaMontreal.com
Aquasana╝ & Rhino Water Filtration Systems
  #85  
Old 03-10-2009, 02:38 AM
 
noddy noddy is offline
 

Advanced Member
  
Join Date: Jan 2009
Location: Sydney
Posts: 90
 

Default Re: Printable Packing Slip - 4.0.x

could someone please tell me if this is likely to work on 4.2:

1. no chance, don't even try it.
2. no harm in trying - give it a go and let us know.
3. wait for someone to make a 4.2 version.
4. stop asking us, you're really annoying.
__________________
x-cart 4.4.1 gold
CDSEOPro
BCS Advanced Product Ratings and Reviews
BCS Reward Points
BCS Photo Gallery
Skateboard Express UK
Skateboard Express Australia
Skateboard Express on Facebook
  #86  
Old 05-20-2009, 06:48 AM
 
presson83 presson83 is offline
 

Senior Member
  
Join Date: Sep 2008
Posts: 143
 

Default Re: Printable Packing Slip - 4.0.x

Hi all,

Same question as Noddy - what are the chances this works in 4.2?
__________________
v 4.1.11, v 4.2
  #87  
Old 05-20-2009, 02:02 PM
 
FrankAllen FrankAllen is offline
 

Newbie
  
Join Date: May 2008
Posts: 6
 

Default Re: Printable Packing Slip - 4.0.x

Hello,

We just added the code + notes from Post 1 & 34. Work like a charm, no issues on 4.1.9. Thank you greatly!
__________________
X-Cart Pro 4.1.9
  #88  
Old 06-23-2009, 01:54 PM
 
Regs Regs is offline
 

Senior Member
  
Join Date: Apr 2003
Location: Vancouver BC
Posts: 134
 

Default Re: Printable Packing Slip - 4.0.x

Just installed this on 4.2.1 - no problems, excellent!

Thanks to everyone who contributed code throughout this thread.

(haven't implemented batch yet but will in the coming days).

Cheers,

Regs.
__________________
x-cart 4.2.3 & 4.6.0
  #89  
Old 09-03-2009, 06:22 PM
 
gary02140 gary02140 is offline
 

Advanced Member
  
Join Date: Apr 2008
Posts: 58
 

Default Re: Printable Packing Slip - 4.0.x

Works well with 4.1.12!

Many thanks to all the contributors!
__________________
Version 4.1.12
  #90  
Old 09-11-2009, 08:48 PM
 
delboy2028 delboy2028 is offline
 

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

Default Re: Printable Packing Slip - 4.0.x

I have got this mod working a little in 4.2.2 i can print packing slips via selection the order and opening the order then clicking the link in there but if tick the check boxs and click the button i get no order selected
__________________
Version 5.3.1
Closed Thread
   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 02:25 AM.

   

 
X-Cart forums © 2001-2020