Hi everyone, I’d like to add two new lines called Payment Due Date and Payment Term in my invoice template which generated with Order Printer App. I’d also like to link the Payment Due Date and Payment Term with the information listed in the payment section for the order. May I ask if someone can help me to check the code and provide me a solution? Many thanks in advance!
HTML code
Invoice
Invoice {{ order.order_name }}
Order {{ order.order_name }}
{% if order.po_number %}PO # {{ order.po_number }}
{% endif %}
Invoice Date: {{ order.created_at | date: “%B %e, %Y” }}
Screenshot of the Payment Due Date and Term from Shopify order:
Are you storing these two fields as metafields on your orders?
Then you could access them in the Order Printer App Template like so:
Payment Due Date {{ order.metafields.your_metafield_namespace.payment_due_date }}
Payment Term {{order.metafields.your_metafield_namespace.payment_term }}
The your_metafield_namespace is a name that’s entirely up to you. I would recommend using your brand’s name so that way it’s clear these are metafields belonging to your brand, and not to other apps.
Hi,
My app will automatically display payment terms, due dates, and show overdue invoices without needing to mess with liquid. You can check it out here:
ezInvoices | One‑Click Invoice - Create and generate invoices for your customers in one click | Shopify App Store