Code to show customization on packing slip

Solved

Code to show customization on packing slip

RainbowGlitter
Shopify Partner
18 1 3

I have a customization box on product pages for customer to input a name or other data. It shows up in check out and on the orders page but when I print the packing slips it doesn't show. How can I get it to be added to the packing slip? 

Thanks

If I was able to help you please Like it and Mark it as Solution!
Accepted Solution (1)

LitExtension
Shopify Partner
4895 1004 1175

This is an accepted solution.

Hi @RainbowGlitter,

 

Please go to Settings > Shipping and delivery > Packing slips > Packing slip template > Edit.

Screenshot.png

then you just need to add the code here, it will display fine:

Screenshot.png

Code:

{%- for property in line_item.properties -%}
              {%- assign property_first_char = property.first | slice: 0 -%}
              {%- if property.last != blank and property_first_char != '_' -%}
              <span class="line-item-description-line">
                {{ property.first }}:{%- if property.last contains '/uploads/' -%}{{ property.last | split: '/' | last }}{%- else -%}{{ property.last }}{%- endif -%}
              </span>
              {%- endif -%}
              {%- endfor -%}
LitExtension - Shopping Cart Migration Expert
Check out our Shopify migration app to migrate your online store to Shopify
Contact us:
- Email: contact@litextension.com

View solution in original post

Replies 7 (7)

LitExtension
Shopify Partner
4895 1004 1175

This is an accepted solution.

Hi @RainbowGlitter,

 

Please go to Settings > Shipping and delivery > Packing slips > Packing slip template > Edit.

Screenshot.png

then you just need to add the code here, it will display fine:

Screenshot.png

Code:

{%- for property in line_item.properties -%}
              {%- assign property_first_char = property.first | slice: 0 -%}
              {%- if property.last != blank and property_first_char != '_' -%}
              <span class="line-item-description-line">
                {{ property.first }}:{%- if property.last contains '/uploads/' -%}{{ property.last | split: '/' | last }}{%- else -%}{{ property.last }}{%- endif -%}
              </span>
              {%- endif -%}
              {%- endfor -%}
LitExtension - Shopping Cart Migration Expert
Check out our Shopify migration app to migrate your online store to Shopify
Contact us:
- Email: contact@litextension.com
sashiwatashi
Visitor
2 0 1

I had exact same problem and this solved it! thank you!

LitExtension
Shopify Partner
4895 1004 1175

Hi @sashiwatashi,

You can create a question on the community and send me the link. I will check it.
Because this will help build a better community.
Thank you.

LitExtension - Shopping Cart Migration Expert
Check out our Shopify migration app to migrate your online store to Shopify
Contact us:
- Email: contact@litextension.com
7RockMarketing
Shopify Partner
14 0 3

Excellent! Thank you for the code. Works very well for one of my clients as well. Just implemented it. 

 

KristenDScott
Excursionist
35 1 54

Thank you thank you thank you! I looked this up on the web to see if anyone could do this for me (because I didn't want to initially), and they wanted $65 and only listed a few templates they would work on. You saved me a lot of money, and time, too. Thank you again!!

FireflyBazaarTX
Tourist
5 0 6

Absolutely perfect. Thank you so much

MattGSAM
Tourist
9 0 5

Hi, 

 

Thank you for your posted solution. Although this seems to show free of charge customisations on the packing slip, it does not show paid for customisations. We offer additional printing on garmens which incurs a cost, I'd like this to show on the packing slip as well. Is this possible?