Skip to content

Commit a9deb42

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

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
@@ -16,7 +16,7 @@ The Product Page template can be implemented like the below code.
1616
@{
1717
var store = Model.Value<StoreReadOnly>("store", fallback: Fallback.ToAncestors);
1818
var product = CommerceApi.Instance.GetProduct(store.Id, Model.Key.ToString(), "en-GB");
19-
var price = product.TryCalculatePrice();
19+
var price = product.TryCalculatePrice().ResultOrThrow("Unable to calculate product price");
2020
}
2121
```
2222

0 commit comments

Comments
 (0)