You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: 16/umbraco-commerce/how-to-guides/show-discounted-prices.md
+8-8Lines changed: 8 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,24 +4,24 @@ description: Learn how to show discounted prices on product pages in Umbraco Com
4
4
5
5
# Showing Discounted Prices
6
6
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.
8
8
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?
10
10
11
-
This guide walks you through exactly how to do that.
11
+
This guide walks you through the process.
12
12
13
13
{% hint style="info" %}
14
14
The calculate adjusted prices feature was introduced in Umbraco Commerce version 16.2.0
15
15
{% endhint %}
16
16
17
17
## Prepare the Discount
18
18
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.
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.
25
25
{% endhint %}
26
26
27
27
## Display the Discounted Price
@@ -104,14 +104,14 @@ public class AdjustedProductPriceCalculatorResult
104
104
105
105
## Displaying the Discounted Price via the Storefront API
106
106
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:
0 commit comments