Add shipping method on packing slip

kristenmillican
New Member
6 0 0

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?

Replies 25 (25)
el_dombrovan
Shopify Partner
10 1 10

Hi @kristenmillican 

Can you provide entire code?

kristenmillican
New Member
6 0 0
<div class="customer-addresses">
<div class="shipping-address">
<p class="subtitle-bold to-uppercase">
Ship to
</p>
<p class="address-detail">
{% if shipping_address != blank %}
{{ shipping_address.name }}
{% if shipping_address.company != blank %}
<br>
{{ shipping_address.company }}
{% endif %}
<br>
{{ shipping_address.address1 }}
{% if shipping_address.address2 != blank %}
<br>
{{ shipping_address.address2 }}
{% endif %}
{% if shipping_address.city_province_zip != blank %}
<br>
{{ shipping_address.city_province_zip }}
{% endif %}
<br>
{{ shipping_address.country }}
{% else %}
No shipping address
{% endif %}
</p>
<p class="customer-email">
{{customer.email}}
</p>
<p>
Note: {{order.note}}
</p>
<p>Ship Via: {{ shipping_method.title }} </p>
</div>
el_dombrovan
Shopify Partner
10 1 10

Try this

{% for shipping_method in order.shipping_methods %}
    <p> Ship Via: {{ shipping_method.title }} </p>
{% endfor%}
kristenmillican
New Member
6 0 0
That didn’t work. Do I need to put it in a certain class? Or should it be in a different section of the packing slip code?
PSD_Webdesigns
Shopify Partner
80 6 18

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".

Regards,
PSD Webdesigns
support@psdwebdesigns.com
hhthompson
Tourist
4 0 1

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?

roehamptonorchi
Tourist
8 0 21

So was any resolution given for this?

PaulPucci
New Member
3 0 0

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

ferryfish
New Member
1 0 0

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. 

Frankiehorse
New Member
1 0 9
Adding the code below to our packing slip template worked for us! Give it a go. Hoping this is helpful. 
 
</div>
              <br>
    <br>
        <div class=“shipping-methods”>
      <p class="subtitle-bold to-uppercase">
        Shipping Method
      </p>
                <p class=“shipping-methods”>
        {% if order.shipping_method != blank %}
          {{ order.shipping_method.title }}
        {% else %}
          No shipping required
        {% endif %}                       
           </p>
         </div>
  </div>
PaulPucci
New Member
3 0 0

This method worked perfectly.

Thank you very much for the fix.

PaulPucci
New Member
3 0 0
This worked perfectly. Thank you
Sheridan_Chaffe
New Member
1 0 1

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.

Brenda_Sturmer
Tourist
3 0 0

Thank you. That worked.

Daniel_Young
Tourist
10 0 1

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>"

linzal
Excursionist
42 0 8

This worked for me too, thanks!

DesignerJoe55
Explorer
38 0 15

Thank you! The variable {{ order.shipping_method.title }} works perfectly

TelescopesCan
Shopify Partner
28 0 34

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.

 

missea
New Member
3 0 0

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.