Skip to content

Commit 2ca5381

Browse files
Update 13/umbraco-commerce/how-to-guides/add-item
Co-authored-by: Dinh Tran <[email protected]>
1 parent db7a256 commit 2ca5381

File tree

1 file changed

+1
-1
lines changed
  • 13/umbraco-commerce/how-to-guides

1 file changed

+1
-1
lines changed

13/umbraco-commerce/how-to-guides/add-item

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ To display this we need to add some markup or at least amend it to include a but
3535

3636
<p>Our price excluding VAT <strong>@price.Result?.WithoutTax.ToString("C0") </strong></p>
3737

38-
if (@Model.Stock == 0)
38+
if (@Model.Value<int>("stock") == 0)
3939
{
4040
<p>Sorry, out of stock</p>
4141
}

0 commit comments

Comments
 (0)