How to code a discount code and table columns into a packing slip?

Topic summary

A user seeks help coding two customizations for their packing slip:

1. Display Discount Code:

  • Wants the discount code shown above the order number
  • This helps identify “Open Box” orders that shouldn’t ship immediately
  • Attempted using {{ order.discountCode }} without success
  • Mentioned needing a loop structure but unsure how to implement it

2. Restructure Item List:

  • Convert current layout to a 4-column table
  • Add “Picked by” and “Packed by” fields on the right side for staff to complete when printed
  • Included an image showing desired layout (image appears corrupted in the thread)

Status: Two other users later asked if a solution was ever found. The original poster confirmed they abandoned the discount code feature and never found a working solution. The discussion remains unresolved with no code solutions provided.

Summarized with AI on November 20. AI used: claude-sonnet-4-5-20250929.

Hey,

Hoping someone can help me with some coding for our packing slip.

We’re trying to add the Discount Code if used above the order number (this is because we allow an Open Box option for our customers and tells us not to ship the items yet) and also would like to turn the item list into a 4 column table and have picked by and packed by on the right hand side for our staff to complete once printed.

If someone can share the liquid variable for the discount code that would be awesome. I have tried {{ order.discountCode }} but that didn’t work.
I read somewhere else that it may need to be a loop of some kind but I don’t know how to code that.

And for the table, any code replacement i can use would be much appreciated.

Thanks all!

I’m currently looking for this as well! Did you ever find a solution?

Hi,

I’m currently looking for this as well :grinning_face: Did you ever find a solution?

I gave up on the discount code, never found a solution sorry!