You can use the order.has_sales_team_member and order.sales_team_member variables in the Order and Worksheet Templates to show the name of the assigned salesperson.
Order Template Custom Code Example
Here is an example of how you can modify the default Order Template to show the name of the salesperson the quote/order is assigned to:
Default Code
<div class="details">
<h1>
{% if from.account.company %}{{ from.account.company }}{% endif %}
{% if from.fc_settings.company_identification_number %}<br />{{ from.fc_settings.company_identification_number }}{% endif %}
{% if from.fc_settings.has_address? %}
<span>
{{ from.fc_settings.address }} {{ from.fc_settings.city }}, {{ from.fc_settings.state }} {{ from.fc_settings.zip }}<br />
{{ from.fc_settings.country_name }}
</span>
{% endif %}
<a href="http://{{ site.primary_domain }}">http://{{ site.primary_domain }}</a>
</h1>
</div>
Custom Code
Add the code in red to the default code shown above as follows:
<div class="details">
<h1>
{% if from.account.company %}{{ from.account.company }}{% endif %}
{% if from.fc_settings.company_identification_number %}<br />{{ from.fc_settings.company_identification_number }}{% endif %}
{% if from.fc_settings.has_address? %}
<span>
{{ from.fc_settings.address }} {{ from.fc_settings.city }}, {{ from.fc_settings.state }} {{ from.fc_settings.zip }}<br />
{{ from.fc_settings.country_name }}
</span>
{% endif %}
<a href="http://{{ site.primary_domain }}">http://{{ site.primary_domain }}</a>
<ul>
{% if order.has_sales_team_member? %}
<li><label>Salesperson</label> {{ order.sales_team_member }}</li>
{% endif %}
</ul>
</h1>
</div>
Result
Worksheet Template Custom Code Example
Here is an example of how you can modify the default Worksheet Template to show the name of the salesperson the order is assigned to:
Default Code
<div id="header_order_details_2">
<ul>
<li><label>Order date: </label>{{ order.date_ordered | date: "%b %d, %Y" }}</li>
<li><label>Due date: </label><span class="highlight">{{ order.date_due | date: "%b %d, %Y" }}</span></li>
<li><label>Ship by: </label><span class="highlight">{{ order.shipping_method_name }}</span></li>
</ul>
</div>
Custom Code
Add the code in red to the default code shown above as follows:
<div id="header_order_details_2">
<ul>
<li><label>Order date: </label>{{ order.date_ordered | date: "%b %d, %Y" }}</li>
<li><label>Due date: </label><span class="highlight">{{ order.date_due | date: "%b %d, %Y" }}</span></li>
<li><label>Ship by: </label><span class="highlight">{{ order.shipping_method_name }}</span><br /><br /></li>
{% if order.has_sales_team_member? %}
<li><label>Salesperson</label> {{ order.sales_team_member }}</li>
{% endif %}
</ul>
</div>
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.