Adding more detail on packing slips

Kcostello
Shopify Partner
6 0 2

We have a product called "Build Your Own (BYO)" where customers customize their order.  We need these options to be listed on the packing slip.  The logic would be something like:

if (productname == "BYO") {

  list content }

How can I do this? 

Replies 3 (3)

Nick_Marketing
Shopify Partner
1487 336 462

You have to edit the packing slip template, add a liquid code, and style it with HTML/CSS. Please refer to the Shopify cheat sheet for more info.
https://www.shopify.ca/partners/shopify-cheat-sheet

Here's a very generic example of a liquid 'If' statement:

 

 

{% if product.title == 'Awesome Shoes' %}
  These shoes are awesome!
{% endif %}

 

 

In case, you find this too technical, Shopify devs are available here: https://experts.shopify.com/

Nick | Ecommerce & Marketing Technology Consultant | Toronto, CANADA
- For consulting work availability, please send me a Private Message or submit a ✍️Contact Form.
- For FREE Shopify Tutorials, Subscribe to my YouTube channel (▶️ Ecommerce TV).
Kcostello
Shopify Partner
6 0 2

Thanks, following your example here's what I've have working and here's what I need.

{% if line_item.title contains "Build Your Own" %}

     <P> ... </P>

{% endif %}

I need to replace the <P> ... </P> with the variables for the BYO data.  I don't know where to look for this. 

 

Kcostello
Shopify Partner
6 0 2

I figured it out by doing a deep dive into this help community.  Here is the complete code for adding user entered data into the packing slip.

{% if line_item.title contains "Build Your Own" %}

  {% for prop in line_item.properties %}
     {{ prop }}<br>
  {% endfor %}

{% endif %}