I’m trying to edit my Packing slip template to include a sku along with the product and variant.
But the sku is not showing up on my slips. The code is below, What should I try?
I’m trying to edit my Packing slip template to include a sku along with the product and variant.
But the sku is not showing up on my slips. The code is below, What should I try?
Hi. Firstly, please check if you have specified the SKU.
Also check if the item is available in F12.
Could you please share the entirety of your packing slip template with us here? You can use the </> button in the toolbar above the reply box to insert the code. This way we can have a look and see if we can find the proper way to add the SKU.
{{ 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 %}
{% if line_item.image != blank %}
{{ line_item.image | img_url: effective_image_dimensions | img_tag: '', 'aspect-ratio__content' }}
{% endif %}
{{ line_item.title }}
{{ line_item.variant_title }}
{{ line_item.sku }}
{{ line_item.shipping_quantity }} of {{ line_item.quantity }}
{% endfor %}
{% unless includes_all_line_items_in_order %}
---
There are other items from your order not included in this shipment.
{% endunless %}
---
{% if order.note != blank %}
Notes
{{ order.note }}
{% endif %}
{% 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 }}
I sincerely apologize for my delay in following up with you here! I took a look at your template code and when I use it on my own store I am generating the product details and the sku correctly.
In the order printer app do you have this template set as the default template for your packing slips? When you open the order printer app and manage your templates there is a check box to select the template that should be default:
If this is set to the active template and the issue is persisting, please reach out to our authenticated support team for some additional support. To access our authenticated support, please follow this link: Shopify Help Center.