Skip to content

Commit 88820b8

Browse files
authored
Fix grammar and formatting
1 parent e94653d commit 88820b8

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

16/umbraco-commerce/how-to-guides/show-discounted-prices.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,24 +4,24 @@ description: Learn how to show discounted prices on product pages in Umbraco Com
44

55
# Showing Discounted Prices
66

7-
Imagine the scenario - You’re preparing for a big sale and want to offer a 10% discount on all your products. With Umbraco Commerce’s powerful discount engine, setting up the discount is simple.
7+
Imagine the following scenario: You’re preparing for a big sale and want to offer a 10% discount on all your products. With Umbraco Commerce’s powerful discount engine, discounts like these can be set up.
88

9-
But there's a catch — discounts are only applied once the product is added to the cart. So how do you show the discounted price before that, right on the product page?
9+
But there's a catch. Discounts are only applied once the product is added to the cart. So how do you show the discounted price before that, right on the product page?
1010

11-
This guide walks you through exactly how to do that.
11+
This guide walks you through the process.
1212

1313
{% hint style="info" %}
1414
The calculate adjusted prices feature was introduced in Umbraco Commerce version 16.2.0
1515
{% endhint %}
1616

1717
## Prepare the Discount
1818

19-
To start with you'll want to set up an automatic discount with no rules but an Order Line Amount Reward set to apply a 10% discount to the unit price.
19+
To start, set up an automatic discount with no rules but an Order Line Amount Reward set to apply a 10% discount to the unit price.
2020

2121
![Configure Discount](images/discounted-prices/discount-config.png)
2222

2323
{% hint style="info" %}
24-
It is important that the discount applies an order line level reward as it is only order line rewards that will form part of the calculation.
24+
It is important that the discount applies an order line level reward. It is only order line rewards that will form part of the calculation.
2525
{% endhint %}
2626

2727
## Display the Discounted Price
@@ -104,14 +104,14 @@ public class AdjustedProductPriceCalculatorResult
104104

105105
## Displaying the Discounted Price via the Storefront API
106106

107-
If you are working with a headless solution the `GET /umbraco/commerce/storefront/api/v1/products` endpoint can be passed the following query paramters:
107+
If you are working with a headless solution, the `GET /umbraco/commerce/storefront/api/v1/products` endpoint can be passed the following query parameters:
108108

109109
| Key | Value | Description |
110110
| -- | -- | -- |
111111
| `calculateAdjustedPrices` | `boolean` (default: `false`) | Toggles whether to return calculated adjusted prices |
112112
| `adjustedPriceCalculationQuantity` | `decimal` (defualt: 1) | Set the quantity to use for the calculation |
113113
| `adjustedPriceCalculationDiscountCodes` | `string` | Any discount codes to apply for the calculation |
114114

115-
Returned products will now have an additonal `priceWithAdjustments` property containing the same properties as detailed above.
115+
Returned products will now have an additional `priceWithAdjustments` property containing the same properties as detailed above.
116116

117-
See the [Product Storefront Endpoint](../reference/storefront-api/endpoints/product.md) fore more details.
117+
See the [Product Storefront Endpoint](../reference/storefront-api/endpoints/product.md) for more details.

0 commit comments

Comments
 (0)