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 amount in the standard currency format. For order notifications, the currency used at the time of placing order is used, otherwise store's default currency is used.
Example
{{currency 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 six 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}}
{{plus1 order.total 1000}}
How to show the difference of two numbers
Example
{{minus order.total 1000}}
Order total in words
Example
{{words order.total}}
Iterate through items in an array
{{#each order.items}}
{{this.name}}
{{this.price}}
{{/each}}
Iterate through items of object
{{#each object}}
{{@key}}: {{this}}
{{/each}}
It is used to check if the value exists.
Example
{{#if order.items.length}} {{/if}}
You can send notifications in different languages. You can put a language check condition to check in which language the user has ordered so you can modify your mail template accordingly. This will help you to send notifications to your customer in the language they have ordered.
You can customize the invoice templates by putting a language check condition to check in which language the user has ordered. You can modify your mail invoice template accordingly. This will help you to send invoices to your customers in the language they have placed the order.