Skip to content

Commit 553417a

Browse files
Updated how to guides
1 parent 0a2de70 commit 553417a

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

15/umbraco-commerce/how-to-guides/limit-orderline-quantity.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,12 @@ public class ProductAddValidationHandler : ValidationEventHandlerBase<ValidateOr
2323
_productService = productService;
2424
}
2525

26-
public override void Validate(ValidateOrderProductAdd evt)
26+
public override async Task ValidateAsync(ValidateOrderProductAdd evt)
2727
{
2828
var order = evt.Order;
2929
var productReference = evt.ProductReference;
3030

31-
var stock = _productService.GetProductStock(productReference);
31+
var stock = await _productService.GetProductStockAsync(productReference);
3232

3333
var totalQuantities = order?.OrderLines.Where(x => x.ProductReference == productReference).Sum(x => x.Quantity) ?? 0;
3434

@@ -53,12 +53,12 @@ public class OrderLineQuantityValidationHandler : ValidationEventHandlerBase<Val
5353
_productService = productService;
5454
}
5555

56-
public override void Validate(ValidateOrderLineQuantityChange evt)
56+
public override async Task ValidateAsync(ValidateOrderLineQuantityChange evt)
5757
{
5858
var orderLine = evt.OrderLine;
5959
var productReference = orderLine.ProductReference;
6060

61-
var stock = _productService.GetProductStock(productReference);
61+
var stock = await _productService.GetProductStockAsync(productReference);
6262

6363
if (stock.HasValue && evt.Quantity.To > stock.Value)
6464
evt.Fail($"Only {stock} quantities can be purchased for {productReference}.");

15/umbraco-commerce/upgrading/version-specific-upgrades.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,17 @@ description: >-
55

66
# Version Specific Upgrade Notes
77

8-
This page covers specific upgrade documentation for when migrating to major 14 of Umbraco Commerce.
8+
This page covers specific upgrade documentation for when migrating to major 15 of Umbraco Commerce.
99

1010
{% hint style="info" %}
1111
If you are upgrading to a new minor or patch version, you can find information about the breaking changes in the [Release Notes](../release-notes.md) article.
1212
{% endhint %}
1313

1414
## Version Specific Upgrade Notes History
1515

16-
#### 14.0.0
16+
#### 15.0.0
1717

18-
* UI Config file configurations will need to use the new UI Extensions API
18+
* API method calls will need to use the async alternatives
1919

2020
#### Umbraco Commerce Launch
2121

0 commit comments

Comments
 (0)