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>{{ 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 %}
Comments
0 comments
Please sign in to leave a comment.