> For the complete documentation index, see [llms.txt](https://docs.yaycommerce.com/yaycurrency/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.yaycommerce.com/yaycurrency/compatibility/learnpress.md).

# LearnPress

LearnPress is a popular Learning Management System (LMS) plugin for WordPress that allows users to create and manage online courses.&#x20;

To sell courses globally and handle multiple currencies in LearnPress, YayCurrency can be integrated to provide a seamless experience.

### Step 1: Set Up Default Currency for the Course

To access LearnPress dashboard, navigate to **LearnPress > Settings > General tab**

<figure><img src="/files/m95t2eWqQGgo9csm4WBi" alt=""><figcaption></figcaption></figure>

Scroll down and stop at the Currency section. Here you will find the options to configure and manage multiple currencies.

In the dropdown menu, choose the default currency you want to use.

<figure><img src="/files/G7oYBZafivOMosP6C1aB" alt=""><figcaption></figcaption></figure>

You can also customize the currency position, thousand separator, decimal separator, and the number of decimal places.

<figure><img src="/files/06nPzraiw4Cuo5dVsOuz" alt=""><figcaption></figcaption></figure>

When finished, click **Save Changes** to apply your settings.

<figure><img src="/files/2SdLIhXXB9eriw9N5MG1" alt=""><figcaption></figcaption></figure>

### Step 2: Create a New Course

Go to **LearnPress > Courses** to manage or add new courses.

In the Courses section, click on **Add** **New**.

At the top, add a title for your course.

<figure><img src="/files/SogQbtwB9Pmp4ichO3KM" alt=""><figcaption></figcaption></figure>

Scroll down to the **Course Settings** section. Here, you can configure key details of your course.

Choose **Pricing** to set your course as Free or Paid. If Paid, enter the price for the course in the Regular price and Sale price (optional) field.

Additionally, in YayCurrency Pro, you can add fixed price for each currency.

<figure><img src="/files/MwpHC34TYYbLi4SMBURX" alt=""><figcaption></figcaption></figure>

### Step 3: Add the Currency Switcher to Course Page

Before adding the widget, it’s essential first to configure the currencies you want to switch between.

Go to **YayCommerce > YayCurrency**&#x20;

Click on **Add New Currency** button and select the currencies you wish to enable. Then click **Save Changes.**&#x20;

<figure><img src="/files/qk0AJj4Sq4ahsqhrdcXt" alt=""><figcaption></figcaption></figure>

You can add the YayCurrency switcher widget to your desired widget area (eg: sidebar, header, footer) by using the shortcode: [`[yaycurrency-switcher]`](#user-content-fn-1)[^1]

Then, hit the **Publish** button.

Next, at the **Display Option** tab, you can find and copy the shortcode `[yaycurrency-switcher]`

<figure><img src="/files/8I8gvCf88oMauBtTYKd0" alt=""><figcaption></figcaption></figure>

Simply paste the shortcode into the widget area of your choice, whether it's the header, footer, or sidebar.

<figure><img src="/files/qtG1wF3FyDNdgwjVxdHY" alt=""><figcaption></figcaption></figure>

At the front end, the currency you set will be displayed like this.&#x20;

<figure><img src="/files/ZE2oAhdJeY3SRlU1Z6tb" alt=""><figcaption></figcaption></figure>

[^1]:
