From 1b32393b2b71fd74b2b4dabc713d4c4936d6d39a Mon Sep 17 00:00:00 2001 From: Mark Moffat Date: Sun, 10 Feb 2019 14:25:31 +1030 Subject: [PATCH] Show message when item is out of stock --- views/themes/Cloth/product.hbs | 9 +++++++++ views/themes/Material/product.hbs | 9 +++++++++ views/themes/Mono/product.hbs | 9 +++++++++ 3 files changed, 27 insertions(+) diff --git a/views/themes/Cloth/product.hbs b/views/themes/Cloth/product.hbs index aa486c3..fc7cbcd 100644 --- a/views/themes/Cloth/product.hbs +++ b/views/themes/Cloth/product.hbs @@ -38,6 +38,15 @@ {{/each}} {{/if}} + {{#if config.trackStock}} + {{#ifCond result.productStock '==' 0}} +
+

+ Out of stock +

+
+ {{/ifCond}} + {{/if}}

Quantity

diff --git a/views/themes/Material/product.hbs b/views/themes/Material/product.hbs index 9341091..ef9005a 100644 --- a/views/themes/Material/product.hbs +++ b/views/themes/Material/product.hbs @@ -38,6 +38,15 @@ {{/each}}
{{/if}} + {{#if config.trackStock}} + {{#ifCond result.productStock '==' 0}} +
+

+ Out of stock +

+
+ {{/ifCond}} + {{/if}}

Quantity

diff --git a/views/themes/Mono/product.hbs b/views/themes/Mono/product.hbs index a231e88..746e4bc 100644 --- a/views/themes/Mono/product.hbs +++ b/views/themes/Mono/product.hbs @@ -38,6 +38,15 @@ {{/each}}
{{/if}} + {{#if config.trackStock}} + {{#ifCond result.productStock '==' 0}} +
+

+ Out of stock +

+
+ {{/ifCond}} + {{/if}}

Quantity