Is there a way to add shipping method to the packing slip (under payment method)
Is there a way to add shipping method to the packing slip (under payment method)
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.
I no longer provide installation support on forum for all my modules. However, if there are real bugs with the modules please feel free to contact me
how would someone do that?
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!
Im not sure how you got on however this resolved my issue in super orders packing slip..
http://www.zen-cart.com/forum/showpo...&postcount=720
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:
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!<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>
What am I doing wrong?
in case anyone is wondering, <?php echo ENTRY_SHIPPING_METHOD; ?> won't work
the whole thing should be
Code:<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:
and then modified the language file at includes/[YOUR_ADMIN_DIR]/languages/[YOUR_LANGUAGE]/packingslip.php to add the following:Code:<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>
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 cartCode:define('ENTRY_SHIPPING_METHOD', 'Shipping Method:');
thanks for the correction, only that the path should be
[YOUR_ADMIN_DIR]/includes/languages/[YOUR_LANGUAGE]/packingslip.php
Bookmarks