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? 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.