Shopify themes, liquid, logos, and UX
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?
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/
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.
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 %}
Portrait of Stephen positioned next to an image of planet Earth, with the Stephen's World ...
By JasonH Mar 18, 2024Digital marketers and app developers have tracked activity in apps and websites for yea...
By Ollie Mar 13, 2024February was an exciting month with Shopify Editions, informative webinars, and more! F...
By JasonH Mar 7, 2024