2018-02-14 06:22:33 +10:00
|
|
|
{{> themes/Material/front-menu}}
|
|
|
|
<div class="product-layout s12 col m8 offset-m2">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col s12 m6 pull-right">
|
|
|
|
<div class="row">
|
|
|
|
<h1 class="col s12 m10 product-title">{{result.productTitle}}</h1>
|
|
|
|
<h4 class="col s12 m10 product-price">{{currencySymbol config.currencySymbol}}{{result.productPrice}}</h4>
|
|
|
|
{{#if productOptions}}
|
2019-11-06 18:31:25 +10:00
|
|
|
<h4 class="col s12 m10 product-option">{{ @root.__ "Options" }}</h4>
|
2018-02-14 06:22:33 +10:00
|
|
|
<div class="col s12 m10">
|
|
|
|
{{#each productOptions}}
|
|
|
|
{{#ifCond this.optType '==' "select"}}
|
2019-12-16 12:29:35 +10:00
|
|
|
<strong>{{../this.optName}}</strong>
|
|
|
|
<select name="opt-{{../this.optName}}" class="form-control product-opt">
|
2019-06-17 20:21:45 +10:00
|
|
|
{{#each ../this.optOptions}}
|
2018-02-14 06:22:33 +10:00
|
|
|
<option value="{{this}}">{{this}}</option>
|
|
|
|
{{/each}}
|
|
|
|
</select>
|
|
|
|
{{/ifCond}}
|
|
|
|
{{#ifCond this.optType '==' "radio"}}
|
2019-06-17 20:21:45 +10:00
|
|
|
{{#each ../this.optOptions}}
|
2019-12-16 12:29:35 +10:00
|
|
|
<strong>{{../this.optName}}</strong>
|
2018-02-14 06:22:33 +10:00
|
|
|
<div class="radio">
|
|
|
|
<label>
|
2019-06-17 20:21:45 +10:00
|
|
|
<input type="radio" class="product-opt" name="opt-{{../../this.optName}}" value="{{this}}">
|
2018-02-14 06:22:33 +10:00
|
|
|
{{this}}
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
{{/each}}
|
|
|
|
{{/ifCond}}
|
|
|
|
{{#ifCond this.optType '==' "checkbox"}}
|
|
|
|
<div class="checkbox">
|
|
|
|
<label>
|
2019-06-17 20:21:45 +10:00
|
|
|
<input type="checkbox" class="product-opt" name="opt-{{../this.optName}}" value="{{../this.optName}}"><strong>{{../this.optName}}</strong>
|
2018-02-14 06:22:33 +10:00
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
{{/ifCond}}
|
|
|
|
{{/each}}
|
|
|
|
</div>
|
|
|
|
{{/if}}
|
2019-02-10 13:55:31 +10:00
|
|
|
{{#if config.trackStock}}
|
|
|
|
{{#ifCond result.productStock '==' 0}}
|
|
|
|
<div class="col-md-10">
|
|
|
|
<h4 class="text-danger text-center">
|
|
|
|
Out of stock
|
|
|
|
</h4>
|
|
|
|
</div>
|
|
|
|
{{/ifCond}}
|
|
|
|
{{/if}}
|
2018-02-14 06:22:33 +10:00
|
|
|
<div class="col s10 productOptions">
|
2019-11-06 18:31:25 +10:00
|
|
|
<p class="product-option-text">{{ @root.__ "Quantity" }}</p>
|
2018-02-14 06:22:33 +10:00
|
|
|
<div class="input-group">
|
|
|
|
<span class="input-group-btn">
|
|
|
|
<button class="btn waves-effect waves-light blue darken-3 qty-btn-minus" type="button">-</button>
|
|
|
|
</span>
|
|
|
|
<div class="input-field col s12">
|
|
|
|
<input type="text" class="add-color text-center" id="product_quantity" maxlength="3" value="1">
|
|
|
|
</div>
|
|
|
|
<span class="input-group-btn">
|
|
|
|
<button class="btn waves-effect waves-light blue darken-3 qty-btn-plus" type="button">+</button>
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
2018-10-05 21:54:42 +10:00
|
|
|
{{#if result.productComment}}
|
|
|
|
<div class="col-md-10">
|
2019-11-06 18:31:25 +10:00
|
|
|
{{ @root.__ "Leave a comment?" }}
|
2018-10-05 21:54:42 +10:00
|
|
|
<textarea class="form-control" id="product_comment"></textarea>
|
|
|
|
</div>
|
|
|
|
{{/if}}
|
2018-02-14 06:22:33 +10:00
|
|
|
<div class="btnAddToCart">
|
2019-11-06 18:31:25 +10:00
|
|
|
<button class="btn waves-effect waves-light blue darken-3 col s10 product-add-to-cart" type="button">{{ @root.__ "Add to cart" }}</button>
|
2018-02-14 06:22:33 +10:00
|
|
|
</div>
|
|
|
|
<div class="col s10 body_text">
|
|
|
|
{{{productDescription}}}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="col s12 m6 pull-left">
|
|
|
|
{{#if result.productImage}}
|
|
|
|
<div class="title-image-container">
|
|
|
|
<div class="image-prev image-button"> <i class="fa fa-chevron-left" aria-hidden="true"></i></div>
|
|
|
|
<img src="{{result.productImage}}" id="product-title-image" class="product-title-image img-responsive materialboxed" alt="...">
|
|
|
|
<div class="image-next image-button"> <i class="fa fa-chevron-right" aria-hidden="true"></i></div>
|
|
|
|
</div>
|
|
|
|
{{else}}
|
|
|
|
<div class="title-image-container">
|
|
|
|
<img src="/uploads/placeholder.png" id="product-title-image" class="product-title-image img-responsive" alt="...">
|
|
|
|
</div>
|
|
|
|
{{/if}}
|
|
|
|
{{#ifCond images.length '>' 1}}
|
|
|
|
<div class="product-image-container">
|
|
|
|
{{#each images}}
|
|
|
|
<div class="vertical-center top-pad-20 col s6 l6 xl6">
|
|
|
|
<img src="{{this.path}}" class="thumbnail-image img-responsive">
|
|
|
|
</div>
|
|
|
|
{{/each}}
|
|
|
|
</div>
|
|
|
|
{{/ifCond}}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<input type="hidden" id="productId" value="{{result._id}}">
|