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 %}
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.