What's your biggest current challenge? Have your say in Community Polls along the right column.

How to add line for each items in packing slip ?

How to add line for each items in packing slip ?

Greenswift
Visitor
3 0 1

How to add line for each items in packing slip ?

thanks for helping

like that

Screenshot 2024-07-27 122920.jpg

Reply 1 (1)

DaisyVo
Shopify Partner
1070 134 150

Hi @Greenswift 

To add a line for each item in the packing slip as shown in the image:

  1. Go to Shopify Admin > Settings > Shipping and Delivery > Packing Slips.
  2. Click Edit next to your packing slip template.
  3. Locate the code that generates the line items section, typically inside {% for line in shipping_label.line_items %}.
  4. Add the following CSS to style lines for each item:

hr {

    border: 0;

    border-top: 1px solid #ddd;

    margin: 10px 0;

}

 

Then, Insert <hr> after the </tr> tag for each line item row.

Lastly, Save changes and test the packing slip.

This will create a horizontal line separating items.


Regards,

Please let us know if our reply is helpful by giving it a Like or marking it as a Solution!

Avada SEO & Image Optimizer - The #1 SEO solution