2018-02-12 05:47:26 +10:00
|
|
|
{{> themes/Cloth/front-menu}}
|
2019-12-28 15:43:20 +10:00
|
|
|
<div class="productsWrapper col-sm-12 col-md-8 offset-md-2">
|
2018-01-07 04:55:48 +10:00
|
|
|
{{#if filtered}}
|
2020-01-24 14:42:49 +10:00
|
|
|
<div class="product-layout product-results col-sm-12">
|
2019-12-18 19:22:23 +10:00
|
|
|
{{#ifCond @root.paginateUrl '==' 'category'}}
|
2020-01-24 14:42:49 +10:00
|
|
|
<h1>{{ @root.__ "Category" }}: <strong>{{@root.searchTerm}}</strong></h1>
|
2018-01-07 04:55:48 +10:00
|
|
|
{{else}}
|
2020-01-24 14:42:49 +10:00
|
|
|
<h1>{{ @root.__ "Search results" }}: <strong>{{@root.searchTerm}}</strong></h1>
|
2019-12-18 19:22:23 +10:00
|
|
|
{{/ifCond}}
|
2018-01-07 04:55:48 +10:00
|
|
|
</div>
|
|
|
|
{{/if}}
|
|
|
|
<div class="row product-layout">
|
|
|
|
{{#ifCond results.length '==' 0}}
|
2019-12-26 13:23:21 +10:00
|
|
|
<div class="col-sm-12">
|
2019-11-06 18:31:25 +10:00
|
|
|
<p class="text-danger">{{ @root.__ "No products found" }}</p>
|
2018-01-07 04:55:48 +10:00
|
|
|
</div>
|
|
|
|
{{/ifCond}}
|
|
|
|
{{#each results}}
|
|
|
|
<div class="{{perRowClass ../config.productsPerRow}}">
|
2019-12-28 15:43:20 +10:00
|
|
|
<div class="thumbnail">
|
2018-01-07 04:55:48 +10:00
|
|
|
{{#if productPermalink}}
|
2019-12-26 13:23:21 +10:00
|
|
|
<div class="product-wrapper">
|
2018-01-07 04:55:48 +10:00
|
|
|
<a href="/product/{{this.productPermalink}}">
|
2019-12-26 13:23:21 +10:00
|
|
|
<div class="vertical-center img-thumbnail">
|
2018-01-07 04:55:48 +10:00
|
|
|
{{#if productImage}}
|
2019-12-26 13:23:21 +10:00
|
|
|
<img class="img-fluid" src="{{this.productImage}}" alt="...">
|
2018-01-07 04:55:48 +10:00
|
|
|
{{else}}
|
2019-12-26 13:23:21 +10:00
|
|
|
<img class="img-fluid" src="/uploads/placeholder.png" alt="...">
|
2018-01-07 04:55:48 +10:00
|
|
|
{{/if}}
|
|
|
|
</div>
|
|
|
|
<h3 class="product-title product-title-home top-pad-10">
|
|
|
|
{{this.productTitle}}
|
|
|
|
</h3>
|
|
|
|
</a>
|
|
|
|
</div>
|
2018-02-12 05:47:26 +10:00
|
|
|
{{else}}
|
2018-01-07 04:55:48 +10:00
|
|
|
<a href="/product/{{this._id}}">
|
2019-12-26 13:23:21 +10:00
|
|
|
<div class="vertical-center img-thumbnail">
|
2018-01-07 04:55:48 +10:00
|
|
|
{{#if productImage}}
|
2019-12-26 13:23:21 +10:00
|
|
|
<img class="img-fluid" src="{{this.productImage}}" alt="...">
|
2018-01-07 04:55:48 +10:00
|
|
|
{{else}}
|
2019-12-26 13:23:21 +10:00
|
|
|
<img class="img-fluid" src="/uploads/placeholder.png" alt="...">
|
2018-01-07 04:55:48 +10:00
|
|
|
{{/if}}
|
|
|
|
</div>
|
|
|
|
<h3 class="product-title product-title-home top-pad-10">
|
|
|
|
{{this.productTitle}}
|
|
|
|
</h3>
|
|
|
|
</a>
|
|
|
|
{{/if}}
|
2020-02-01 10:50:41 +10:00
|
|
|
<h3 class="product-price mp-0 text-center">
|
2018-01-07 04:55:48 +10:00
|
|
|
{{currencySymbol ../config.currencySymbol}}{{formatAmount productPrice}}
|
|
|
|
</h3>
|
|
|
|
<p class="text-center">
|
2020-01-21 17:36:46 +10:00
|
|
|
<a class="btn btn-primary add-to-cart" data-id="{{this._id}}" data-link="{{this.productPermalink}}" data-has-options="{{checkProductOptions this.productOptions}}" role="button">{{ @root.__ "Add to cart" }}</a>
|
2018-01-07 04:55:48 +10:00
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{/each}}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<input type="hidden" id="productsPerPage" value="{{productsPerPage}}" >
|
|
|
|
<input type="hidden" id="pageNum" value="{{pageNum}}">
|
|
|
|
<input type="hidden" id="totalProductCount" value="{{totalProductCount}}">
|
|
|
|
<input type="hidden" id="paginateUrl" value="{{paginateUrl}}">
|
|
|
|
<input type="hidden" id="searchTerm" value="{{searchTerm}}">
|
|
|
|
<div class="col-md-12">
|
2019-12-26 13:23:21 +10:00
|
|
|
<div id="pager" class="d-flex justify-content-center"></div>
|
2018-01-07 04:55:48 +10:00
|
|
|
</div>
|