A merchant wants to display customer acceptance of terms and conditions (captured as “additional details” during checkout) on printed invoices using the Order Printer app, but lacks coding expertise.
Solution Provided:
A community member shares code to access additional details in print templates using {{ attributes }} with a loop structure:
{% for attr in attributes %}
**{{ attr.first }}:** {{ attr.last }}
{% endfor %}
This code extracts the label (first) and value (last) of additional information fields.
Implementation Challenges:
The exact placement depends on the specific template structure
Multiple users report the code snippet didn’t work with their setup, particularly when using third-party apps like Pify Cart & Customer Attribute or ShopFields: POS Custom Fields
One user needs similar functionality for POS receipts specifically
Recommendations:
OrderDocs Pro Print & Email app suggested as an alternative with better support
Users offered personalized coding assistance via direct message
Another solution thread referenced for customer notes on packing slips
The discussion remains open with users seeking individualized help for their specific template configurations.
Summarized with AI on October 31.
AI used: claude-sonnet-4-5-20250929.
I have installed an app from Shopify app store called Order printer which allows me to print my invoices. I have a store policy where customers have to tick a box to accept the terms and conditions before checking out. As Well as this, i can see that a customer has accepted the terms and conditions box when placing the order as it shows up on the additional details section of the order history. I would like to attach the additional details section on the invoice so one its printed, it shows up on the invoice slip. To attach this, the app requires coding. so it shows on the invoice slip that the customer has accepted the terms of use. To do this, the app requires coding which i am not an expert at. Could i kindly ask help from someone to add a coding or is their an app where i can.
The additional details can be accessed in the print templates with {{ attributes }}.
Here’s an example snippet.
{% for attr in attributes %}
**{{ attr.first }}:** {{ attr.last }}
{% endfor %}
We loop over the attributes. This divides it up in first and last, where “first” is the label/title of the additional information and “last” the actual value.
If you need additional help with this to get this in your code, please shoot me a DM.
Otherwise I could recommend the app OrderDocs Pro Print & Email for this and future template challenges. I know Thomas, the app builder, and he built an excellent app and provides stellar support.
Thanks for your reply. So do I copy this code in the order printer app I am using and where do I paste it? And once the code is entered, will the additional information be shown on the invoice.
It highly depends on the template you’re currently working with. If you reach out to me via private message I’m willing to help you further. If you share all the code in your template and perhaps a redacted image of an invoice on which you indicate where you want it, I’m willing to add the code for you. It wouldn’t take me more time than responding here to you.
We need to show additional details on the POS receipt once it is printed. Please note that we have POS Pro, so we can add code to the receipt from the backend system, but we need your help with the coding.
Please note that we are using the app “ShopFields: POS Custom Fields” to add these additional details.
If it’s a small thing I’m happy to help. You can send me a private message on this forum with more info (the current code and the stuff you want added) or send an email to contact[at]marqueedevelopment.tech.
I am needing additional details added to the Shopify packing slip. I tried the code above but it didn’t work. Pify Cart & Customer Attribute is the app I’m using, but am open to another option in order to get the info I need on the packing slip. How do I get a hold of you, I can’t find where to private message you?