What's your biggest current challenge? Have your say in Community Polls along the right column.

How to display order payment terms in a customer's account using liquid template?

How to display order payment terms in a customer's account using liquid template?

Jamie_Sterling
Shopify Partner
4 0 1

We've started setting Payment Terms on orders (ie payment due later) - is there a way to expose this within a customer's account? We'd ideally like to show the due date as we see it in admin. 

 

There doesn't seem to be a suitable Liquid variable for this, and I'm hoping to have to avoid fetching it via the admin/storefront API to show it. 

Replies 2 (2)

amper
Shopify Partner
1 0 0

Hi, nearly two years later - did you find a solution to this in liquid?

Jamie_Sterling
Shopify Partner
4 0 1

No... I ended up writing / hosting a private API endpoint which takes the order ID and fetches this info from the Shopify API. 

 

If I was doing this now, I'd probably use Shopify Flow. It's easy to check on order create/edit if the order object has paymentTerms; then save this to a metafield which would be available to access.