Zen Cart Logo
Forums / Managing Customers and Orders / Add shipping method to packing slip ?

Add shipping method to packing slip ?

Views: 3,707

Results 1 to 10 of 10
11 Feb 2008, 11:36 AM
#1
nullmind avatar

nullmind

Zen Follower

Join Date:
Jul 2007
Posts:
129
Plugin Contributions:
0

Add shipping method to packing slip ?

Is there a way to add shipping method to the packing slip (under payment method)

11 Feb 2008, 11:43 AM
#2
yellow1912 avatar

yellow1912

Totally Zenned

Join Date:
Oct 2006
Posts:
5,422
Plugin Contributions:
0

Re: Add shipping method to packing slip ?

Well, I dont think there is a short way to do that, just edit the file and add it in. I did that for my site a while ago.

24 Feb 2008, 11:34 PM
#3
hzp avatar

hzp

New Zenner

Join Date:
Sep 2007
Posts:
35
Plugin Contributions:
0

Re: Add shipping method to packing slip ?

how would someone do that?

16 Aug 2008, 1:17 AM
#4
ebaobao avatar

ebaobao

Zen Follower

Join Date:
Jul 2008
Posts:
495
Plugin Contributions:
0

Re: Add shipping method to packing slip ?

Hi,
You can do this by editing admin/packingslip.php

add this code to where ever you want it to display.

<?php echo $order->info['shipping_method'] ?>

Good Luck!

4 Dec 2008, 9:52 PM
#6
beergeek avatar

beergeek

New Zenner

Join Date:
Sep 2008
Location:
Santa Monica, CA
Posts:
3
Plugin Contributions:
0

Re: Add shipping method to packing slip ?

ebaobao:

Hi,
You can do this by editing admin/packingslip.php

add this code to where ever you want it to display.

<?php echo $order->info['shipping_method'] ?>

Good Luck!

Works great, thanks!

6 Dec 2008, 3:21 PM
#7
mamat avatar

mamat

Zen Follower

Join Date:
Nov 2008
Posts:
222
Plugin Contributions:
0

Re: Add shipping method to packing slip ?

I'm trying to follow this guideline, but I can't seem to figure it out. I added the above to the packingslip.php like this:

<tr> <td class="main"><b><?php echo ENTRY_PAYMENT_METHOD; ?></b></td> <td class="main"> <?php echo $order->info['payment_method']; ?></td> </tr> <tr> <td class="main"><b><?php echo ENTRY_SHIPPING_METHOD; ?></b></td> <td class="main"><?php echo $order->info['shipping_method'] ?></td> </tr>

I left the payment method in there for you to see that I laid it out the same way. Instead of it titling it correctly it shows on the packing slip as "ENTRY_SHIPPING_METHOD". If I type it correctly in the php I get an error. If I type it as Shipping_Method, it shows just like that on the packing slip!

What am I doing wrong?

23 May 2011, 3:59 PM
#8
kmcheng avatar

kmcheng

New Zenner

Join Date:
May 2011
Posts:
40
Plugin Contributions:
0

Re: Add shipping method to packing slip ?

in case anyone is wondering, <?php echo ENTRY_SHIPPING_METHOD; ?> won't work
the whole thing should be

<tr>
	  
<td class="main"><b><?php echo "Shipping Method:" ?></b></td>
<td class="main"><?php echo $order->info['shipping_method']; ?></td>

</tr>
2 Jun 2011, 1:06 AM
#9
pfabrick avatar

pfabrick

New Zenner

Join Date:
Jan 2006
Posts:
66
Plugin Contributions:
0

Re: Add shipping method to packing slip ?

kmcheng:

in case anyone is wondering, <?php echo ENTRY_SHIPPING_METHOD; ?> won't work
the whole thing should be

<tr> <td class="main"><b><?php echo "Shipping Method:" ?></b></td> <td class="main"><?php echo $order->info['shipping_method']; ?></td> </tr> ``` Nope, you should have left it like this: ``` <tr> <td class="main"><b><?php echo ENTRY_PAYMENT_METHOD; ?></b></td> <td class="main"> <?php echo $order->info['payment_method']; ?></td> </tr> <tr> <td class="main"><b><?php echo ENTRY_SHIPPING_METHOD; ?></b></td> <td class="main"><?php echo $order->info['shipping_method'] ?></td> </tr> ```and then modified the language file at includes/[YOUR_ADMIN_DIR]/languages/[YOUR_LANGUAGE]/packingslip.php to add the following: ``` define('ENTRY_SHIPPING_METHOD', 'Shipping Method:'); ```ZenCart constants (those all uppercase terms) are either defined within the admin or the language files. It's best to keep to the core structure in case someone "down the line" has to work on your cart :D
2 Jun 2011, 2:38 AM
#10
kmcheng avatar

kmcheng

New Zenner

Join Date:
May 2011
Posts:
40
Plugin Contributions:
0

Re: Add shipping method to packing slip ?

thanks for the correction, only that the path should be
[YOUR_ADMIN_DIR]/includes/languages/[YOUR_LANGUAGE]/packingslip.php