Access a community of over 900,000 Shopify Merchants and Partners and engage in meaningful conversations with your peers.
I'm trying to add the Shipping Method to my packing slip but it isn't working. This is the code I used.
{{ shipping_method.title }}
I'm using the Debut theme. Any suggestions?
Can you provide entire code?
Try this
{% for shipping_method in order.shipping_methods %} <p> Ship Via: {{ shipping_method.title }} </p> {% endfor%}
Hello @kristenmillican
https://help.shopify.com/en/manual/orders/packing-slips-variable-list#store-variables
As per the variables mentioned above, there is no way to show shipping method title in packing slip but you can use ajax method to achieve this.
Please let me know if you need any further assistance or you can mail me at "support@psdwebdesigns.com".
Shopify is supposed to be drop ship friendly. If you can not put shipping method on the packslip how is the drop shipper supposed to know what method was chosen? Are you saying we can only give 1 shipping option for drop shipped products?
Interesting. I was told via chat that this was supported which it clearly is not.
Kate M (Shopify)
Oct 20, 2020, 16:26 EDT
Hi again, Paul,
You can definitely customise your packing slip template - you would find it in Settings > Shipping > 'Packing slips' > Edit Template
Keep a copy of the current template, and then just test out adding the shipping method tag in different spots until you're happy with it. The shipping method tag you're after is the last entry on this page: shipping_method.title
Otherwise you can use a template generating app from the App Store or reach out to a Shopify Expert for help with that.
Let me know if you have any further questions 🙂
All the best,
Kate | Shopify Support Advisor
Did you manage to get a resolution to this? I still cannot get it to add and i desperately need to have it on my packing slip.
This method worked perfectly.
Thank you very much for the fix.
Worked for us too.... extremely helpful.
Wonder why the standard template doesn't easily allow things like this. Should be in the Shopify examples!
Thank you.
I came across this trying to solve for myself and I discovered the answer.
You need to identify that it's from the order.
"{% for shipping_method in order.shipping_methods %}
{% endfor%}
<div>
<p><b>Shipping Method:</b> {{ order.shipping_method.title }}</p>
</div>"
Thank you! The variable {{ order.shipping_method.title }} works perfectly
Interestingly it seems that once a packing slip is generated, it's static, so changes to the code don't get reflected on a packing slip unless you pick a different one every time to test what changes look like (apart from the Preview function in the editor)... This caused a few gray hairs until we clued in.
Hi all! I have found the solution that worked for me:
<p>Ship Via: {{ order.shipping_method.title }}</p>
Just have to add "order" before shipping_method, no need to loop through all shipping methods.
User | RANK |
---|---|
238 | |
92 | |
88 | |
55 | |
42 |