Show message when item is out of stock

master
Mark Moffat 2019-02-10 14:25:31 +10:30
parent 52828cbd40
commit 1b32393b2b
3 changed files with 27 additions and 0 deletions

View File

@ -38,6 +38,15 @@
{{/each}} {{/each}}
</div> </div>
{{/if}} {{/if}}
{{#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}}
<div class="col-md-10 productOptions"> <div class="col-md-10 productOptions">
<p class="product-option-text">Quantity</p> <p class="product-option-text">Quantity</p>
<div class="input-group"> <div class="input-group">

View File

@ -38,6 +38,15 @@
{{/each}} {{/each}}
</div> </div>
{{/if}} {{/if}}
{{#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}}
<div class="col s10 productOptions"> <div class="col s10 productOptions">
<p class="product-option-text">Quantity</p> <p class="product-option-text">Quantity</p>
<div class="input-group"> <div class="input-group">

View File

@ -38,6 +38,15 @@
{{/each}} {{/each}}
</div> </div>
{{/if}} {{/if}}
{{#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}}
<div class="col s10 productOptions"> <div class="col s10 productOptions">
<p class="product-option-text">Quantity</p> <p class="product-option-text">Quantity</p>
<div class="input-group"> <div class="input-group">