StoreHippo allows you to edit the content of the notifications and modify them as per your brand requirement.
StoreHippo uses Handlebars as the programming language for notifications. For more details, please refer
Handlebars templates look like regular HTML, with embedded handlebars expressions. A handlebars expression is
<div class="entry">
<h1>{{title}}</h1>
<div class="body">
{{body}}
</div>
</div>
Handlers allow you to execute some logic on the data. StoreHippo provides a number of built-in handlers in addition to the ones provided with Handlebars.
It is used to display the default currency symbol of the store. If any currency is not selected, then Rs will be displayed.
Example
{{currency 'Rs' order.total}}
It returns the format of the date.
Examples:
{{date order.created_on}}
{{date order.created_on 'dd/mm/yy'}}
You can show the date in three formats:
You can also display the date/Time in Indian Standard Timezone :
{{date created_on 'dd-MMMM-yy'}}
It returns the full CDN path of the image path.
Example
{{resolveStorePath product.images[0}.image}}
It is used to check a particular condition.
Example
{{#compare order.total "1000" operator=">"}} {{/compare }}
It is used to check user had ordered in which language so you can modify your mail template accordignly by puttimg language check condition.
Example
{{#compare order.client_details.selected_language "AR" operator="=="}} arabic template {{/compare}}
It returns the
Example
{{resolveCdnPath store.logo}}
How to add and show the sum of two numbers.
Example
{{plus order.total 1000}}
How to show the difference of two numbers
Example
{{minus order.total 1000}}
Iterate through items in an array
{{#each order.items}}
{{this.name}}
{{this.price}}
{{/each}}
It is used to check if the value exists.
Example
{{#if order.items.length}} {{/if}}