Jump to content


How to Add Ship Method to Packing Slip?


4 replies to this topic

#1 Dirty Butter

  • Moderator
  • 631 posts

Posted 06 December 2011 - 01:41 AM

Can someone suggest the code needed to add the customer's chosen Shipping Method to the Invoice/Packing Slip? I'm using the USPS Shipping Module.

#2 Dirty Butter

  • Moderator
  • 631 posts

Posted 06 December 2011 - 02:19 AM

View PostDirty Butter, on 06 December 2011 - 01:41 AM, said:

Can someone suggest the code needed to add the customer's chosen Shipping Method to the Invoice/Packing Slip? I'm using the USPS Shipping Module.
I figured it out! Whoopie! Small victory in understanding all this code. I added
  {$order.ship_method}
to admin/skins/default/templates/orders.print.php.

<span class="orderid"><strong>{$LANG.common.order_id}</strong> &nbsp; {$order.cart_order_id}&nbsp; {$order.ship_method}</span>

That put the Shipping Method right under the Order ID number in my modified packing slip, so it's less likely that I won't notice if someone paid extra for an expedited shipping method.

#3 PoolPartsOnline

  • Members
  • 8 posts

Posted 30 January 2012 - 04:32 AM

Hi Dirty Butter
I would like to do something similar but to show the payment method in the same spot.
I have tried the following code
<span class="orderid"><strong>{$LANG.common.order_id}</strong> &nbsp; {$order.cart_order_id}&nbsp; {$order.payment_method}&nbsp; {$order.ship_method}</span>
on line 31 of orders.print.php but it does not do anything.
I have tried every variation of payment method, paid by I can find in languages but it will not do anything on the order print.
Any ideas?

#4 bsmither

  • Members
  • 1,868 posts

Posted 30 January 2012 - 04:42 AM

Please do not use $order.payment_method but rather use $order.gateway

It matches the column name in the order_summary table.

#5 PoolPartsOnline

  • Members
  • 8 posts

Posted 30 January 2012 - 05:05 AM

Perfect thank you Dirty Butter.
Look forward to getting the other info you mentioned.

These forums are a fantastic resource.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users