App reviews, troubleshooting, and recommendations
I need help adding a line of code to the app Order Printer so that it shows order notes. I'm trying to use the same line of code that I used in the legacy app, but it is not working. I also need code so that it shows the date the order was placed. My old code is not working for that either.
The code I was using for notes was
{% if note %}
<h3 style="margin: 0 0 1em 0;">Note</h3>
<p>{{ note }}</p>
{% endif %}
The code I was using to show the order date was
{{ created_at | date: "%m/%d/%y" }}
Order attributes being removed from the global namespace
To access order attributes, prepend them with order.. For instance, billing_address is now accessed as order.billing_address.
So your code should be like
{% if order.note %}
<h3 style="margin: 0 0 1em 0;">Note</h3>
<p>{{ order.note }}</p>
{% endif %}
{{ order.created_at | date: "%m/%d/%y" }}
Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025Discover opportunities to improve SEO with new guidance available from Shopify’s growth...
By Jacqui May 1, 2025