Custom template

The app allows you to provide your own template to give complete control of how inventory  & location information is displayed on product pages.

Below is the default template used by the app:

<div class="iia-list-item">

<div class="iia-title-text">{{titleText}}</div>

<div class="iia-address">{{address1}} {{address2}} {{city}} {{zip}}</div>

<div class="iia-phone">{{phone}}</div>

<div class="iia-info">{{info}}</div>

</div>

{{titleText}} is the only required token which gets replaced by "Item availability text template " field OR "Inventory threshold based message".


Token details:

  • {{address1}}
    This token will be replaced by Address field from Location details.

  • {{address2}}
    This token will be replaced by Apartment, suite, etc field from Location details.

  • {{city}}
    This token will be replaced by City field from Location details.

  • {{zip}}
    This token will be replaced by Zip field from Location details.

  • {{phone}}
    This token will be replaced by Phone field from Location details.

  • {{info}}
    This token will be replafe by Info text set up using Location info menu under More actions menu on Product admin pages