You can use the order.is_internal_order? and order.is_internet_order? condition variables to include the source of an order (Internet or Business Hub) in the Order Template.
Here is an example of how you can modify the default Order Template to include the order source:
Default Code
{% if is_quote %}
<li><h2><label>Quote #</label><span>{{order.quote_number}}</span></h2></li>
{% elsif order.is_invoiced? %}
<li><h2><label>INVOICE #</label><span>{{order.order_number}}</span></h2></li>
{% else %}
<li><h2><label>Order #</label><span>{{order.order_number}}</span></h2></li>
{% endif %}
{% if order.has_po_number? %}
<li><label>PO Number</label><span>{{ order.po_number }}</span></li>
{% endif %}
Custom Code
Add the code in red to the default code shown above as follows:
{% if is_quote %}
<li><h2><label>Quote #</label><span>{{order.quote_number}}</span></h2></li>
{% elsif order.is_invoiced? %}
<li><h2><label>INVOICE #</label><span>{{order.order_number}}</span></h2></li>
{% else %}
<li><h2><label>Order #</label><span>{{order.order_number}}</span></h2></li>
{% endif %}
{% if order.is_internal_order?? %}
<li><label>Order Source</label><span> Business Hub</span></li>
{% elsif order.is_internet_order? %}
<li><label>Order Source</label><span> Internet Order</span></li>
{% endif %}
{% if order.has_po_number? %}
<li><label>PO Number</label><span>{{ order.po_number }}</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.