We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 71e4a92 commit a9deb42Copy full SHA for a9deb42
13/umbraco-commerce/how-to-guides/add-item
@@ -16,7 +16,7 @@ The Product Page template can be implemented like the below code.
16
@{
17
var store = Model.Value<StoreReadOnly>("store", fallback: Fallback.ToAncestors);
18
var product = CommerceApi.Instance.GetProduct(store.Id, Model.Key.ToString(), "en-GB");
19
-var price = product.TryCalculatePrice();
+var price = product.TryCalculatePrice().ResultOrThrow("Unable to calculate product price");
20
}
21
```
22
0 commit comments