How do I add a shipping method to my packing slip in Debut theme?

kristenmillican
Tourist
6 0 1

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 29 (29)

el_dombrovan
Shopify Partner
10 1 10

Hi @kristenmillican 

Can you provide entire code?

kristenmillican
Tourist
6 0 1
<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
Tourist
6 0 1
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 2

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
Excursionist
12 0 72

So was any resolution given for this?

PaulPucci
New Member
4 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
Visitor
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. 

missea
Tourist
3 0 9

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.

Brenda_Sturmer
Tourist
6 0 1

Thank you!

Frankiehorse
Visitor
1 0 17
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
4 0 0

This method worked perfectly.

Thank you very much for the fix.

PaulPucci
New Member
4 0 0
This worked perfectly. Thank you
Sheridan_Chaffe
Visitor
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
6 0 1

Thank you. That worked.

linzal
Explorer
70 0 16

This worked for me too, thanks!

DesignerJoe55
Explorer
45 0 22

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

TelescopesCan
Shopify Partner
41 1 44

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.

 

OUICHEF
Tourist
3 0 0

Very Handy! Well done! Infinitely better than the Shopify answer in that it actually works!! Bravo! Should be pinned to page 1!

jaymeemalkan
Visitor
1 0 0

Hello,

 

Thank you for this; very useful! 

I was wondering if you have the same thing but with centred text?

TelescopesCan
Shopify Partner
41 1 44

I believe (but haven't tested) that you can put <center> </center> tags around the text that you want to center.  There's probably a nicer CSS way too but don't know it.

lkoncar
Tourist
4 0 12

Worked like a charm, thank you!

 

breahnag
Shopify Partner
2 0 2

This works! Thanks!

bryan-revive
Visitor
1 0 3

Frustrating that Shopify doesn't document {{ order.shipping_method.title  }} on https://help.shopify.com/en/manual/shipping/setting-up-and-managing-your-shipping/packing-slips-vari... and we have to search the forums for solutions like this. 😐

xyao2000
Shopify Partner
1 0 0

It is working! How can I change the fonts to Arial or smilar?

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

SK23
Visitor
1 0 1

Hi where do you put the code I have tried its not working for me!

TelescopesCan
Shopify Partner
41 1 44

Here is a chunk of our code, the interesting stuff is near the end (order.shipping_method.title) and the Pick-Up bit:

 

<div class="customer-addresses">
<div class="shipping-address">
<p class="subtitle-bold to-uppercase">
{% if delivery_method.instructions != blank %}
Delivery to
{% else %}
Ship to
{% endif %}
</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 }}
{% if shipping_address.phone != blank %}
<br>
{{ shipping_address.phone }}
{% endif %}
{% else %}
No shipping address
{% endif %}
<br>Shipping Service:
{% if order.shipping_method.title != '<YOUR COMPANY NAME - CHANGE ME>' %}
{{ order.shipping_method.title }}
{% else %}
Pick Up
{% endif %}
</p>
</div>