You can use the following variables to include shipment dates in the Order Template.
- order.date_shipped: use this variable to show the date on which an order was shipped in its entirety.
- order.first_shipment_date: use this variable to show the configured date for the first recorded shipment in a multiple shipment order.
- order.last_shipment_date: use this variable to show the configured date for the last recorded shipment in a multiple shipment order.
Date Shipped Custom Code Example
Here is an example of how you can modify the default Order Template to show the date an order was fully shipped:
Default Code
{% if order.shipping_days %}
<li><label>Maximum Delivery Days</label><span>{{ order.shipping_days }}</span></li>
{% endif %}
{% if order.shipping_tracking_code %}
<li><label>Tracking Code</label><span>{{ order.shipping_tracking_code }}</span></li>
{% endif %}
Custom Code
Add the code in red to the default code shown above as follows:
{% if order.shipping_days %}
<li><label>Maximum Delivery Days</label><span>{{ order.shipping_days }}</span></li>
{% endif %}
{% if order.date_shipped %}
<li><label>Date Shipped</label><span>{{ order.date_shipped | date: "%d/%b/%Y" }}</span></li>
{% endif %}
{% if order.shipping_tracking_code %}
<li><label>Tracking Code</label><span>{{ order.shipping_tracking_code }}</span></li>
{% endif %}
Result
First & Last Ship Date Custom Code Example
Here is an example of how you can modify the default Order Template to show the first or the last shipment dates for a multiple shipment order:
Default Code
{% if order.shipping_days %}
<li><label>Maximum Delivery Days</label><span>{{ order.shipping_days }}</span></li>
{% endif %}
{% if order.shipping_tracking_code %}
<li><label>Tracking Code</label><span>{{ order.shipping_tracking_code }}</span></li>
{% endif %}
Custom Code
Add the code in red to the default code shown above as follows:
{% if order.shipping_days %}
<li><label>Maximum Delivery Days</label><span>{{ order.shipping_days }}</span></li>
{% endif %}
{% if order.first_shipment_date %}
<li><label>Date First Shipped</label><span>{{ order.first_shipment_date | date: "%d/%b/%Y" }}</span></li>
{% endif %}
{% if order.shipping_tracking_code %}
<li><label>Tracking Code</label><span>{{ order.shipping_tracking_code }}</span></li>
{% endif %}
Result
Still have questions? In your DecoNetwork Admin, use the Universal Search box in the top bar to find more related help guides. Need more help? Click the icon next to the search box to open the help menu and submit a support ticket. Our Client Services team is ready to assist!
Comments
0 comments
Please sign in to leave a comment.