You can use the following variable to show the name of the store group in the Order Template.
- site.store_group_name
Here is an example of how you can modify the default Order Template to show the name of the store group for the store that the order originates from.
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.account.has_address? %}
<span>
{{ from.account.address }} {{ from.account.city }}, {{ from.account.state }} {{ from.account.zip }}<br />
{{ from.account.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 site.store_group_name %}
<p>Group: {{ site.store_group_name }}</p>
{% else %}
<p>No Group</p>
{% endif %}
{% if from.account.has_address? %}
<span>
{{ from.account.address }} {{ from.account.city }}, {{ from.account.state }} {{ from.account.zip }}<br />
{{ from.account.country_name }}
</span>
{% endif %}
<a href="http://{{ site.primary_domain }}">http://{{ site.primary_domain }}</a>
</h1>
</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.