Skip to content

Commit e7db213

Browse files
authored
Changed to use "you" instead of "we"
1 parent 4a94ec6 commit e7db213

File tree

1 file changed

+14
-10
lines changed

1 file changed

+14
-10
lines changed

15/umbraco-commerce/how-to-guides/currency-switching.md

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,31 +6,32 @@ description: Learn how to implement a currency switcher in Umbraco Commerce.
66

77
In a globalized world, it is essential to provide users with the ability to switch between different currencies. This feature is especially important for e-commerce websites that cater to customers from different countries.
88

9-
In this guide, we will show you how to implement a currency switcher in Umbraco Commerce.
9+
In this guide, you can learn how to implement a currency switcher in Umbraco Commerce.
1010

1111
{% hint style="info" %}
12-
In this guide we've assumed that each country has a single currency. If your store supports multiple currencies per country, you will need to adjust the implementation accordingly.
12+
In this guide, it is assumed that each country has a single currency. If your store supports multiple currencies per country, you must adjust the implementation accordingly.
1313
{% endhint %}
1414

1515
## Configure Countries and Currencies
1616

17-
In the Umbraco backoffice, define the countries and currencies you want to support.
17+
1. Define the countries and currencies you want to support, in the Umbraco backoffice.
1818

1919
![Countries](images/localization/store-countries.png)
2020

2121
![Currencies](images/localization/store-currencies.png)
2222

23-
Then in the content section, populate the product prices for each currency.
23+
2. Navigate to the Content section.
24+
3. Populate the product prices for each currency.
2425

2526
![Product Prices](images/localization/product-prices.png)
2627

2728
## Create a Currency Switcher Component
2829

29-
On our website's frontend we will be using a partial view to allow users to toggle between existing currencies.
30+
A partial view is used on the frontend to allow users to toggle between existing currencies.
3031

3132
![Currency Switcher](images/localization/country-switch.png)
3233

33-
With the following implementation:
34+
This is done by using the following implementation:
3435

3536
````csharp
3637
@using Umbraco.Commerce.Core.Api;
@@ -62,7 +63,9 @@ With the following implementation:
6263

6364
## Handle Switching Currencies
6465

65-
Switching the culture will be handled by a Surface controller. We will create a new Surface controller called `CultureSurfaceController`.
66+
Switching the culture is handled by a Surface controller.
67+
68+
Create a new Surface controller called `CultureSurfaceController` and add the following code:
6669

6770
````csharp
6871
public class CultureSurfaceController : SurfaceController
@@ -113,7 +116,8 @@ public class CultureSurfaceController : SurfaceController
113116
}
114117
}
115118
````
116-
The `ChangeCountryDto` class is used to bind the country ISO code from the form.
119+
120+
The `ChangeCountryDto` class binds the country ISO code from the form.
117121

118122
````csharp
119123
public class ChangeCountryDto
@@ -124,9 +128,9 @@ public class ChangeCountryDto
124128

125129
## Result
126130

127-
With the currency switcher implemented, users can now switch between different countries/currencies on your website.
131+
With the currency switcher implemented, users can switch between countries/currencies on your website.
128132

129-
The changes will reflect on the product details pages
133+
The changes are reflected on the product details pages.
130134

131135
![product-gb](images/localization/product-gb.png)
132136

0 commit comments

Comments
 (0)