Skip to content

Commit a5d93d4

Browse files
committed
Fixed typo, grammar, broken links
1 parent 22b9bb4 commit a5d93d4

File tree

8 files changed

+28
-34
lines changed

8 files changed

+28
-34
lines changed

13/umbraco-commerce/how-to-guides/delete-item.md

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,19 @@ description: Learn how to remove items added to the shopping cart.
55
# Delete item from cart
66

77
{% hint style="info" %}
8-
This guide builds on the guide on [update-cart.md). It is recommended to follow that guide before starting this one.
8+
This guide builds on the [Update Cart](update-cart.md) guide. It is recommended to follow that guide before starting this one.
99
{% endhint %}
1010

1111
This will teach you how to delete an item from the cart.
1212

13-
Your view for the `cart.cshtml` page will be similar the example below.
13+
Your view for the `cart.cshtml` page will be similar to the example below.
1414

1515
```csharp
1616
@inherits UmbracoViewPage
1717
@{
18-
var store = Model.Value<StoreReadOnly>("store", fallback: Fallback.ToAncestors);
19-
var currentOrder = CommerceApi.Instance.GetCurrentOrder(store!.Id);
20-
if (currentOrder == null) return;
18+
var store = Model.Value<StoreReadOnly>("store", fallback: Fallback.ToAncestors);
19+
var currentOrder = CommerceApi.Instance.GetCurrentOrder(store!.Id);
20+
if (currentOrder == null) return;
2121

2222
@using (Html.BeginUmbracoForm("UpdateCart", "CartSurface"))
2323
{
@@ -64,7 +64,7 @@ Create a new Controller called `CartSurfaceController.cs`
6464

6565
The namespaces used in this Controller are important and need to be included.
6666

67-
```
67+
```cs
6868
using Microsoft.AspNetCore.Mvc;
6969
using Umbraco.Cms.Core.Cache;
7070
using Umbraco.Cms.Core.Logging;
@@ -115,8 +115,6 @@ public class CartSurfaceController(IUmbracoContextAccessor umbracoContextAccesso
115115
}
116116
```
117117

118-
119-
120118
The `CartDto` is a class used to pass data to the Controller. In this instance, it passes over the `OrderLineId`.
121119

122120
```csharp

13/umbraco-commerce/how-to-guides/update-cart.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
description: Learn how to update your cart when one or more quantities have changed.
33
---
44

5-
# Update Card
5+
# Update Cart
66

77
Functionality is needed to update the cart once an item has been added. In this guide, you can learn how to add this functionality.
88

@@ -13,9 +13,9 @@ Create a new Document With a Template. Call it "Cart Page" and update the templa
1313
```csharp
1414
@inherits UmbracoViewPage
1515
@{
16-
var store = Model.Value<StoreReadOnly>("store", fallback: Fallback.ToAncestors);
17-
var currentOrder = CommerceApi.Instance.GetCurrentOrder(store!.Id);
18-
if (currentOrder == null) return;
16+
var store = Model.Value<StoreReadOnly>("store", fallback: Fallback.ToAncestors);
17+
var currentOrder = CommerceApi.Instance.GetCurrentOrder(store!.Id);
18+
if (currentOrder == null) return;
1919
}
2020
```
2121

@@ -77,7 +77,7 @@ This is setting the product reference in the cart/order so there is a way to dis
7777

7878
{% hint style="warning" %}
7979

80-
The `remove` button is added here but is not covered in this guide. Learn more in the [Remove from card](delete-item.md) article.
80+
The `remove` button is added here but is not covered in this guide. Learn more in the [Delete item from Cart](delete-item.md) article.
8181

8282
{% endhint %}
8383

@@ -91,7 +91,7 @@ Create a new Controller called `CartSurfaceController.cs`
9191

9292
The namespaces used in this Controller are important and need to be included.
9393

94-
```
94+
```cs
9595
using Microsoft.AspNetCore.Mvc;
9696
using Umbraco.Cms.Core.Cache;
9797
using Umbraco.Cms.Core.Logging;

14/umbraco-commerce/how-to-guides/add-item.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ description: How-To Guide to add an item to your cart.
44

55
# Add item to Cart
66

7-
To add an item to the cart, configure Umbraco with a store and add the necessary properties for interaction. Learn more by following the [Getting started with Umbraco Commerce: The Backoffice tutorial](../tutorials/getting-started-with-commerce).
7+
To add an item to the cart, configure Umbraco with a store and add the necessary properties for interaction. Learn more by following the [Getting started with Umbraco Commerce: The Backoffice tutorial](../tutorials/getting-started-with-commerce.md).
88

99
You will need the front end to be set up to allow an item to be added to the cart. This can be done by adding a button to the front end to call the Action to add the item to the cart.
1010

1111
Create a new Document Type with the template. Call it **Product Page** with the following property aliases: `productTitle`, `productDescription`, `price`, `stock`.
1212

13-
The following property editors are recommeded to be used for the above:
13+
The following property editors are recommended to be used for the above:
1414

1515
* `productTitle`: TextString
1616
* `productDescription`: TextArea

14/umbraco-commerce/how-to-guides/delete-item.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@ description: Learn how to remove items added to the shopping cart.
55
# Delete item from cart
66

77
{% hint style="info" %}
8-
This guide builds on the guide on [update-cart.md). It is recommended to follow that guide before starting this one.
8+
This guide builds on the [Update Cart](update-cart.md) guide. It is recommended to follow that guide before starting this one.
99
{% endhint %}
1010

1111
This will teach you how to delete an item from the cart.
1212

13-
Your view for the `cart.cshtml` page will be similar the example below.
13+
Your view for the `cart.cshtml` page will be similar to the example below.
1414

1515
```csharp
1616
@inherits UmbracoViewPage
@@ -64,7 +64,7 @@ Create a new Controller called `CartSurfaceController.cs`
6464

6565
The namespaces used in this Controller are important and need to be included.
6666

67-
```
67+
```cs
6868
using Microsoft.AspNetCore.Mvc;
6969
using Umbraco.Cms.Core.Cache;
7070
using Umbraco.Cms.Core.Logging;
@@ -115,8 +115,6 @@ public class CartSurfaceController(IUmbracoContextAccessor umbracoContextAccesso
115115
}
116116
```
117117

118-
119-
120118
The `CartDto` is a class used to pass data to the Controller. In this instance, it passes over the `OrderLineId`.
121119

122120
```csharp

14/umbraco-commerce/how-to-guides/update-cart.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
description: Learn how to update your cart when one or more quantities have changed.
33
---
44

5-
# Update Card
5+
# Update Cart
66

77
Functionality is needed to update the cart once an item has been added. In this guide, you can learn how to add this functionality.
88

@@ -77,7 +77,7 @@ This is setting the product reference in the cart/order so there is a way to dis
7777

7878
{% hint style="warning" %}
7979

80-
The `remove` button is added here but is not covered in this guide. Learn more in the [Remove from card](delete-item.md) article.
80+
The `remove` button is added here but is not covered in this guide. Learn more in the [Delete item from Cart](delete-item.md) article.
8181

8282
{% endhint %}
8383

@@ -91,7 +91,7 @@ Create a new Controller called `CartSurfaceController.cs`
9191

9292
The namespaces used in this Controller are important and need to be included.
9393

94-
```
94+
```cs
9595
using Microsoft.AspNetCore.Mvc;
9696
using Umbraco.Cms.Core.Cache;
9797
using Umbraco.Cms.Core.Logging;

15/umbraco-commerce/how-to-guides/add-item.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ description: How-To Guide to add an item to your cart.
44

55
# Add item to Cart
66

7-
To add an item to the cart, configure Umbraco with a store and add the necessary properties for interaction. Learn more by following the [Getting started with Umbraco Commerce: The Backoffice tutorial](../tutorials/getting-started-with-commerce).
7+
To add an item to the cart, configure Umbraco with a store and add the necessary properties for interaction. Learn more by following the [Getting started with Umbraco Commerce: The Backoffice tutorial](../tutorials/getting-started-with-commerce.md).
88

99
You will need the front end to be set up to allow an item to be added to the cart. This can be done by adding a button to the front end to call the Action to add the item to the cart.
1010

1111
Create a new Document Type with the template. Call it **Product Page** with the following property aliases: `productTitle`, `productDescription`, `price`, `stock`.
1212

13-
The following property editors are recommeded to be used for the above:
13+
The following property editors are recommended to be used for the above:
1414

1515
* `productTitle`: TextString
1616
* `productDescription`: TextArea

15/umbraco-commerce/how-to-guides/delete-item.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@ description: Learn how to remove items added to the shopping cart.
55
# Delete item from cart
66

77
{% hint style="info" %}
8-
This guide builds on the guide on [update-cart.md). It is recommended to follow that guide before starting this one.
8+
This guide builds on the [Update Cart](update-cart.md) guide. It is recommended to follow that guide before starting this one.
99
{% endhint %}
1010

1111
This will teach you how to delete an item from the cart.
1212

13-
Your view for the `cart.cshtml` page will be similar the example below.
13+
Your view for the `cart.cshtml` page will be similar to the example below.
1414

1515
```csharp
1616
@inherits UmbracoViewPage
@@ -64,7 +64,7 @@ Create a new Controller called `CartSurfaceController.cs`
6464

6565
The namespaces used in this Controller are important and need to be included.
6666

67-
```
67+
```cs
6868
using Microsoft.AspNetCore.Mvc;
6969
using Umbraco.Cms.Core.Cache;
7070
using Umbraco.Cms.Core.Logging;
@@ -115,8 +115,6 @@ public class CartSurfaceController(IUmbracoContextAccessor umbracoContextAccesso
115115
}
116116
```
117117

118-
119-
120118
The `CartDto` is a class used to pass data to the Controller. In this instance, it passes over the `OrderLineId`.
121119

122120
```csharp

15/umbraco-commerce/how-to-guides/update-cart.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
description: Learn how to update your cart when one or more quantities have changed.
33
---
44

5-
# Update Card
5+
# Update Cart
66

77
Functionality is needed to update the cart once an item has been added. In this guide, you can learn how to add this functionality.
88

@@ -77,7 +77,7 @@ This is setting the product reference in the cart/order so there is a way to dis
7777

7878
{% hint style="warning" %}
7979

80-
The `remove` button is added here but is not covered in this guide. Learn more in the [Remove from card](delete-item.md) article.
80+
The `remove` button is added here but is not covered in this guide. Learn more in the [Delete item from Cart](delete-item.md) article.
8181

8282
{% endhint %}
8383

@@ -91,7 +91,7 @@ Create a new Controller called `CartSurfaceController.cs`
9191

9292
The namespaces used in this Controller are important and need to be included.
9393

94-
```
94+
```cs
9595
using Microsoft.AspNetCore.Mvc;
9696
using Umbraco.Cms.Core.Cache;
9797
using Umbraco.Cms.Core.Logging;

0 commit comments

Comments
 (0)