Adding more detail on packing slips

Kcostello
Tourist
5 0 0

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? 

0 Likes
Nick_Marketing
Shopify Partner
709 174 215

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/

- I am an eCommerce and Marketing Technology consultant based in Toronto, CANADA.
- To inquire about consulting work availability, please send me a Private Message.
- For Shopify Tutorials, Subscribe to my YouTube Channel.
0 Likes
Kcostello
Tourist
5 0 0

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. 

 

0 Likes
Kcostello
Tourist
5 0 0

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 %}

0 Likes