You can use the date_payment_due variable to include the payment due date in the Order Template.
Here is an example of how you can modify the default Order Template to show the payment due date:
Default Code
{% if is_quote %}
<li><label>Date</label><span>{{ order.date_quoted | date: "%d/%b/%Y"}}</span></li>
<li><label>Valid Until</label><span>{{ order.date_quote_valid_until | date: "%d/%b/%Y"}}</span></li>
{% else %}
<li><label>Date</label><span>{{ order.date_ordered | date: "%d/%b/%Y"}}</span></li>
% if order.order_invoice_dates_differ? %}
<li><label>Invoiced</label><span>{{ order.date_invoiced | date: "%d/%b/%Y"}}</span></li>
{% endif %}
Custom Code
Add the code in red to the default code shown above as follows:
{% if is_quote %}
<li><label>Date</label><span>{{ order.date_quoted | date: "%d/%b/%Y"}}</span></li>
<li><label>Valid Until</label><span>{{ order.date_quote_valid_until | date: "%d/%b/%Y"}}</span></li>
{% else %}
<li><label>Date</label><span>{{ order.date_ordered | date: "%d/%b/%Y"}}</span></li>
<li><label>Payment Due</label><span>{{ order.date_payment_due | date: "%d/%b/%Y"}}</span></li>
% if order.order_invoice_dates_differ? %}
<li><label>Invoiced</label><span>{{ order.date_invoiced | date: "%d/%b/%Y"}}</span></li>
{% endif %}
Result
Still have questions? Use the Search Tool at the top of the page to find more related guides. Need help? Click the icon to submit a support ticket – our Client Services team is ready to assist!
Comments
0 comments
Please sign in to leave a comment.