How can I add a shipping method to packing slips?

Solved

How can I add a shipping method to packing slips?

ChelseaColgan
New Member
13 0 0

Hi there,

 

I'm new to Shopify and I've looked through the other postings regarding adding the shipping method to the packing slips, but I can't find any solution that actually works.

 

I've had a look at the liquid variables, however it's not clear what I should add. Adding shipping_method doesn't seem to actually provide the info?

 

Any help would be really appreciated! 🙂

Accepted Solution (1)

ClaireMonkey
Shopify Partner
5 1 3

This is an accepted solution.

I just needed to do that myself, and eventually found (through the forums, not the documentation) that the liquid variable needed is: {{ order.shipping_method.title }}

Hope that helps!

View solution in original post

Replies 12 (12)

ClaireMonkey
Shopify Partner
5 1 3

This is an accepted solution.

I just needed to do that myself, and eventually found (through the forums, not the documentation) that the liquid variable needed is: {{ order.shipping_method.title }}

Hope that helps!

ChelseaColgan
New Member
13 0 0

Ah, that's absolutely brilliant! That's working for me now! 

 

Thanks so much 🙂 

spanky1975
Tourist
4 0 2

Hi, I'm new to this but wanted to add shipping method to my packing lists too.

Where do i add this code?

ClaireMonkey
Shopify Partner
5 1 3

Settings > Shipping and delivery > Packing Slips > Edit template

soulchild37
Shopify Partner
230 9 77

Hi Spanky1975, assuming you haven't modify the packing list template previously,

You can find the line `<div class="shipping-address">` in the template , and add `<h2>{{ order.shipping_method.title }}</h2>` below that line .

And then find the line `<div class="billing-address">` in the template, and add `<h2>&nbsp;</h2>` below that line. (This step is to make the spacing so that the billing address will align vertically with shipping address, as the shipping method is added to shipping address layout)

I have written a tutorial for this with step by step screenshot on where to add the code here : https://yagisoftware.com/articles/how-to-add-shipping-delivery-method-name-into-packing-slip-templat...

Hope this helps!


Spent too much support time dealing with order cancellation request from customer? Wouldn't it be good if customer can cancel order on their own without bugging your support? Try out Cancellable app! https://apps.shopify.com/cancellable . I also write articles about store customization that can improve your customer shopping experience here : Yagi Software Blog
CocoMediworld
Visitor
3 0 0

Thank you, is working now.

CocoMediworld
Visitor
3 0 0

This helps, but where do you need to add this variable line???

ClaireMonkey
Shopify Partner
5 1 3

You put it into your packing slip template wherever you want it. It's just basic HTML in there essentially, so it's entirely your choice as to where you want to display in within the page. I put it between the addresses and the items, but it's really just wherever you want it.

Or if you mean where do you find the template, that was the answer to the previous question in this thread:
Settings > Shipping and delivery > Packing Slips > Edit template

ChelseaColgan
New Member
13 0 0

Thanks to everyone replying, but is there a way to add this depending on which location the exact item of the product is available in at the moment that it's ordered? Most of our products will be split between two locations, as they will be in our warehouse and in our shop. 

ClaireMonkey
Shopify Partner
5 1 3

I'm not really sure what you are asking here. An order only has one shipping method selected when it's ordered. So that's all you can work with in the packing slip. It's possible to do if/else logic within your packing slip, but I'm not understanding your scenario enough to recommend how to structure that? If you know what variables you need to query, then you should be able to work it out with the liquid conditional logic, check the docs out here: https://shopify.dev/docs/api/liquid/tags/conditional-else

CocoMediworld
Visitor
3 0 0
Thanks for your response, though I must say the tone felt a little off-putting. I was asking if there’s a way to dynamically include the name of the shipping method used on each order directly on the packing slip, as this would help us streamline fulfilment. (We use three to four channels/providers for shipping from three warehouses) for If you're saying there's only one shipping method per order - great - then I'd just need help displaying that field clearly. Could you clarify which Liquid variable handles that? Appreciate any help you can offer.


ClaireMonkey
Shopify Partner
5 1 3

As in the accepted answer for this post, the liquid variable for the name of the chosen shipping method for an order is: 
{{ order.shipping_method.title }}