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)
Views: 3,707
Zen Follower
Is there a way to add shipping method to the packing slip (under payment method)
Totally Zenned
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.
New Zenner
how would someone do that?
Zen Follower
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!
New Zenner
Im not sure how you got on however this resolved my issue in super orders packing slip..
http://www.zen-cart.com/forum/showpost.php?p=456907&postcount=720
New Zenner
ebaobao:
Hi,
You can do this by editing admin/packingslip.phpadd this code to where ever you want it to display.
<?php echo $order->info['shipping_method'] ?>Good Luck!
Works great, thanks!
Zen Follower
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?
New Zenner
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>
New Zenner
<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 :Dkmcheng:
in case anyone is wondering, <?php echo ENTRY_SHIPPING_METHOD; ?> won't work
the whole thing should be
New Zenner
thanks for the correction, only that the path should be
[YOUR_ADMIN_DIR]/includes/languages/[YOUR_LANGUAGE]/packingslip.php
Tell staff why this post should be reviewed.