We have a digital product that is being printed on our packing slips. The product is Route, the insurance that customers can buy to insure their product during shipping. Does anyone know how we can remove the product from packing slips? It’s causing issues with our 3rd party packing company.
Hi @kelly93
You can add a condition in your packing slip template based condition that this product does not require shipping
Something like
{% unless line_item.requires_shipping == true %}
...
{% endunless %}
Make sure that Shipping for this product is disabled
I’m also having this issue with Route. Can you explain a bit more about how to incorporate this code into the packing slip template?
Hi @Lodestar
In the packing template,
1> check for below piece of code
{% for line_item in line_items_in_shipment %}
and add this line just below it
{% unless line_item.requires_shipping == true %}
2> check for closing tag for line_items (step #1)
{% endfor %}
and just above it add
{% endunless %}
NOTE: There might be multiple instance for {% endfor %}. Please check for appropriate position.
Save and test.
Let me know for any issue or concerns
Like and mark it as a solution it helps.
Best Regards
Jasmeet Kaur
Hi Jasmeet,
Thanks, but this hasn’t worked!
Any other suggestions?
Hello @kelly93
Can you please share the code which you have implemented and the output which you received so that I can guide you more with it.
or If you’d like to discuss this more, don’t hesitate to send me a PM.
Having a similar issue. When I try your solution I get this error from Shopify. Any other ideas? It’s a serious problem for us.
Hi @nettlestudios
In your case the code has not been added at the appropriate position which is resulting in code break as above.
I can only guide you further by reviewing the code. If you’d like to discuss this more, don’t hesitate to send me a PM.
The following did not work for me
{{ shop.name }}
Order {{ order.name }}
{% if order.po_number != blank %}
PO number #{{ order.po_number }}
{% endif %}
{{ order.created_at | date: format: "date" }}
{% if delivery_method.instructions != blank %}
Delivery to
{% else %}
Ship to
{% endif %}
{% if shipping_address != blank %}
{{ shipping_address.name }}
{% if shipping_address.company != blank %}
{{ shipping_address.company }}
{% endif %}
{{ shipping_address.address1 }}
{% if shipping_address.address2 != blank %}
{{ shipping_address.address2 }}
{% endif %}
{% if shipping_address.city_province_zip != blank %}
{{ shipping_address.city_province_zip }}
{% endif %}
{{ shipping_address.country }}
{% if shipping_address.phone != blank %}
{{ shipping_address.phone }}
{% endif %}
{% else %}
No shipping address
{% endif %}
Bill to
{% if billing_address != blank %}
{{ billing_address.name }}
{% if billing_address.company != blank %}
{{ billing_address.company }}
{% endif %}
{{ billing_address.address1 }}
{% if billing_address.address2 != blank %}
{{ billing_address.address2 }}
{% endif %}
{% if billing_address.city_province_zip != blank %}
{{ billing_address.city_province_zip }}
{% endif %}
{{ billing_address.country }}
{% else %}
No billing address
{% endif %}
---
Items
Quantity
{% comment %}
To adjust the size of line item images, change desired_image_size.
The other variables make sure your images print at high quality.
{% endcomment %}
{% assign desired_image_size = 58 %}
{% assign resolution_adjusted_size = desired_image_size | times: 300 | divided_by: 72 | ceil %}
{% capture effective_image_dimensions %}
{{ resolution_adjusted_size }}x{{ resolution_adjusted_size }}
{% endcapture %}
{% for line_item in line_items_in_shipment %}
{% unless line_item.requires_shipping == true %}
{% if line_item.image != blank %}
{{ line_item.image | img_url: effective_image_dimensions | img_tag: '', 'aspect-ratio__content' }}
{% endif %}
{{ line_item.title }}
{% if line_item.variant_title != blank %}
{{ line_item.variant_title }}
{% endif %}
{% if line_item.sku != blank %}
{{ line_item.sku }}
{% endif %}
{{ line_item.final_line_price }}
{% for property in line_item.properties %}
{% assign property_first_char = property.first | slice: 0 %}
{% if property.last != blank and property_first_char != '_' %}
{{ property.first }}: {{ property.last }}
{% endif %}
{% endfor %}
{% for group in line_item.groups %}
Part of: {{ group.title }}
{% endfor %}
{{ line_item.shipping_quantity }} of {{ line_item.quantity }}
{% endunless %}
{% endfor %}
---
{% if order.note != blank %}
Notes
{{ order.note }}
{% endif %}
**Ship Via: {{ order.shipping_method.title }}**
**Shipping Price: {{ order.shipping_price | money }}**
**Total Price: {{ order.total_price | money }}**
{% if delivery_method.instructions != blank %}
Delivery instructions
{{ delivery_method.instructions }}
{% endif %}
Thank you for shopping with us!
<strong>
{{ shop.name }}
</strong>
{{ shop_address.summary }}
{{ shop.email }}
{{ shop.domain }}
Hi @JasmeetVT14313 , if the remaining item from order on the packing slip is a digital product, can we skip the line: “There are other items from your order not included in this shipment”.
Currently I have a service fee as a digital product with every order, when I print the packing slip Shopify splits it to two fulfilments/packing slips. On both packing slips it prints “There are other items from your order not included in this shipment”. I want to remove this message if the remaining item is a digital product from the packing slip.
There are occasions we have to do multiple shipments and we fulfil separately and I want it to display in this scenario.
Any suggestions?
Hi Jasmeet, I’ve also tried this and it hasn’t worked. The code seems to be saved just fine but when I test print a packing slip it is still showing the digital items. Can you help?
Has there been a solution to the route/packing slip issue? I need to fix this as well