Line Item Fulfillment in Order Packing Slip

Hello,

I’m trying to customise the packing slip - the template when you fulfill an item.

I’d like to have 3 sections on the packing slip:

  1. Items which are being fulfilled in this shipment.

  2. Items that still need to be fulfilled at a later date.

  3. Items that have already been fulfilled.

For the first sections, I am referencing the line item by using {% for line_item in line_items_in_shipment %}, which works perfectly fine. However, I’m not sure which objects/variables to use for the second and third sections.

Can anyone help please?

Thank you!

Can anyone help?

Hi @cathyho ,

For #2 use

{% unless includes_all_line_items_in_order %}
  There are other items from your order not included in this shipment.
{% endunless %}

For #3 use:

https://shopify.dev/api/liquid/objects/line_item#line_item-successfully_fulfilled_quantity

Let me know if this helps.

Best,

Sam - Owner/Lead Developer

Thank you for your reply.

For #2, that only displays a message. I needed to display the line items.

For #3, I couldn’t use https://shopify.dev/api/liquid/objects/line_item#line_item-successfully_fulfilled_quantity because that would also pull in the line items that are in the current shipment - because technically they have not been fulfilled yet.

After contacting Shopify multiple times, I was told it is not possible to achieve what we wanted. In the end, I had to change the whole format of the packing slip, so that it shows:

  1. Items which are being fulfilled in this shipment.
  2. Items that have already been fulfilled.
  3. All items in the order.

The customer would be able to see how the quantity ordered and how many have already been fulfilled and how many are in the current shipment, and then work out what’s leftover that needs to be shipped at a later date.

Hi Cathy,

I am trying to implement the same type of packing slip for split orders. Were you able to achieve your solution within the Shopify packing slip code? Or did you need to implement a 3rd party app to change the format? I’d appreciate any advice you have.

Thank you!

Hi there,

I wasn’t able to achieve the above but have managed to do a work-around though. We’ve now got the following three sections:

  1. Items that are being fulfilled in this shipment.

  2. Items that have already been fulfilled.

  3. All items in the order.

Our staff and customers will have to work out if there are any outstanding items to be fulfilled at a later date, by looking at all the items in the order and seeing if they have already been fulfilled yet. It’s not ideal but seems to be the best we can get it without using a third party app.

The Shopify documentation isn’t great to be honest and I had to do a lot of digging around to see what other objects are supported within the order packing slip.

Hope that helps!