You can use the order.date_scheduled variable to show the production date in the Order Template.
Here is an example of how you can modify the default Order Template to show the production date.
Default Code
{% else %}
<li><label>Date<label><span>{{ order.date_ordered | date: "%d/%b/%Y"}}</span></li>
{% if order.date_due %}
<li><label>Date Ship By</label><span>{{ order.date_due | date: "%d/%b/%Y"}}</span></li>
{% endif %}
{% endif %}
<li><label>Shipping</label><span>{{ order.shipping_method_name }}</span></li>
{% if order.shipping_days %}
<li><label>Maximum Delivery Days</label><span>{{ order.shipping_days }}</span></li>
{% endif %}
Custom Code
Add the code in red to the default code shown above as follows:
{% else %}
<li><label>Date<label><span>{{ order.date_ordered | date: "%d/%b/%Y"}}</span></li>
<li><label>Production Date</label><span>{{ order.date_scheduled | date: "%d/%b/%Y"}}</span></li>
{% if order.date_due %}
<li><label>Date Ship By</label><span>{{ order.date_due | date: "%d/%b/%Y"}}</span></li>
{% endif %}
{% endif %}
<li><label>Shipping</label><span>{{ order.shipping_method_name }}</span></li>
{% if order.shipping_days %}
<li><label>Maximum Delivery Days</label><span>{{ order.shipping_days }}</span></li>
{% endif %}
Comments
0 comments
Please sign in to leave a comment.