call to replace anchor tags contains '/admin' in href

Editing Notifications

StoreHippo allows you to edit the content of the notifications and modify them as per your brand requirement.

Handlebars

StoreHippo uses Handlebars as the programming language for notifications. For more details, please refer handlebarsjs.

Simple Usage

Handlebars templates look like regular HTML, with embedded handlebars expressions. A handlebars expression is{{,some contents, followed by a }}.

<div class="entry">
  <h1>{{title}}</h1>
  <div class="body">
    {{body}}
  </div>
</div>

Handlers

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.

Built-in Handlers

Currency

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' some contents}}

Date

It returns the format of the date.

Example:

{{date content}} or {{date content format}}

You can show the date in three formats:

  • data-month-year: dd/mm/yy 
  • month-date-year: mm/dd/yy
  • year-month-date: yy/mm/dd

resolveStorePath

It returns the path of the product image.

Example:

{{resolveStorePath content}}

isObjectHasKeys

It is used to check if objects have keys or not.

Example:

{{# isObjectHasKeys content}}

compare

It is used to check a particular condition.

Example:

{{#compare this.content "1" operator=">"}}
{{/compare }}

resolveCdnPath

It returns thecdnpath that is used to display the store logo.

Example:

{{resolveCdnPath content}}

each

If data is in Array  - use  {{#each}} --data which are repeated in this array lies--{{/each}} . e.g
If we know some content are coming in an array so we used
{{#each content}}--{{/each}}

if

It is used to check if the value exists.

Example:

{{# if content}} {{/if}}

this

It is used to get data in an array.

Example:

If we know we are getting date and name in content array.

{{#each content}}

{{this.date}}   //it will provide the data lies in order.date

{{this.name}}   //it will provide the data lies in order.seller_name

{{/each}}

Words

It is used to display the order value in words.

Examples

Value of order total: {{order.total}} as 1870

Value of order total in words: {{words order.total}} as one thousand eight hundred and seventy only.

2019-03-04T05:32:13.109Z