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" }}
As 2024 wraps up, the dropshipping landscape is already shifting towards 2025's trends....
By JasonH Nov 27, 2024Hey Community! It’s time to share some appreciation and celebrate what we have accomplis...
By JasonH Nov 14, 2024In today’s interview, we sat down with @BSS-Commerce to discuss practical strategies f...
By JasonH Nov 13, 2024