# Currency

### Base currency

{% hint style="info" %}
WooCommerce allows only one base currency.&#x20;
{% endhint %}

To set the currency for your store, go to `WooCommerce > Settings > General > Currency Options`.

Target websites may have prices in a different currency from your store's currency. If you import products as simple products, the plugin will try to **convert prices** to the default currency.

For External/Affiliate products, you can either convert prices or keep the original currency. For settings, go to `External Importer > Settings > Import > Currency`.

![](https://2204606725-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MJHhS3qgDA1lCM6b1Nw%2F-MJI32ltNvgdwcSL8sjW%2F-MJI37J0UystkXillSp1%2Fexternal-importer-20.png?alt=media\&token=dafff7bc-7eb8-4b5f-bcc4-a607f6f5430a)

Selecting 'Add original' does not make your website multicurrency. This option only replaces the currency symbol on the frontend of your WooCommerce catalog. Since external products can't be added to the cart, this is usually sufficient.

### Automatic exchange rates&#x20;

To convert currencies, External Importer will use [European Central Bank](https://www.ecb.europa.eu/stats/policy_and_exchange_rates/euro_reference_exchange_rates/html/index.en.html) exchange rates. This service doesn't require sign-up, but the set of currencies for which rates are provided is limited. If the desired currency is not listed, you can use Fixer.io as an alternative.

Fixer API has a free plan, but you have to [sign up](https://fixer.io/signup/free) to get your own API access key.

![](https://2204606725-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MJHhS3qgDA1lCM6b1Nw%2F-MJI4NYOdifOrjXgzBta%2F-MJI4T98ElIFWWL6Aa8Q%2Fexternal-importer-21.png?alt=media\&token=21bc4954-2c7e-475f-81d5-c89f7b26dac9)

To set your key, go to `External Importer > Settings > General > Fixer API key`.

You can set the exchange rate manually. Add the following code to *functions.php* of your theme or child theme:

```php
function my_ei_currency_rate ($rate, $from, $to)
{
    if ($from == 'USD' && $to == 'KES')
        return 100.15; // <--- rate
    if ($from == 'KES' && $to == 'USD')
        return 0.01; // <--- rate
}
add_filter( 'ei_currency_rate', 'my_ei_currency_rate', 0, 3 );

```

### How to change the currency when extracting products&#x20;

Some target websites display prices in different currencies based on the visitor's IP address (in this case, your server IP). For example, if your server is located in the United States, prices will usually appear in USD. However, many sites also allow you to manually set the currency in their settings.

![](https://2204606725-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MJHhS3qgDA1lCM6b1Nw%2F-MJI4NYOdifOrjXgzBta%2F-MJI53i7WzhK8XNuBMcU%2Fexternal-importer-22.png?alt=media\&token=99e993b7-04dd-4b31-94ba-ea14be6e0a01)

To extract prices in a specific currency:

1. Visit the target website and manually set your desired currency and language.
2. Follow the [Custom Cookies Guide](https://ei-docs.keywordrush.com/custom-cookies) to capture and apply the cookie settings.

This ensures that all requests are made with the appropriate currency preferences.

{% hint style="warning" %}
Note: This method doesn't work for all websites.
{% endhint %}

Some Chinese online marketplaces (such as bangproduct.com, geekbuying.com, and gearbest.com) also support changing the currency via the address bar. To do this, add the `currency=EUR` parameter to the product URL.

![](https://2204606725-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MJHhS3qgDA1lCM6b1Nw%2F-MJI5cclwJROUr5DQmsw%2F-MJI6KjJraVxG0ynNhHr%2Fexternal-importer-25.png?alt=media\&token=d799852a-7319-4c3b-8572-28cec0f61252)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://ei-docs.keywordrush.com/importing-to-woocommerce/currency.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
