External Importer Pro
  • External Importer Pro Plugin
  • Getting started
    • Installation and activation
    • Plugin updating
  • Extracting products
    • General information
    • Supported stores
    • Custom advanced parsers
    • How to avoid getting blocked
    • Crawling services
  • Custom cookies
  • Importing to WooCommerce
    • General information
    • Importing images and galleries
    • Currency
    • Importing attributes
    • Auto import
    • Products limit
    • EAN import
  • 🪄AI
    • General information
    • OpenRouter API
    • OpenAI API
    • Claude API
    • Custom prompts
  • Synchronizing products
    • General information
    • Out of Stock products
    • Why prices don't update
  • Monetization
    • Creating affiliate links
    • Dropshipping
  • Frontend
    • General information
    • Translation
  • Integration
    • Affiliate Egg plugin
    • Content Egg plugin
    • External Importer VS Content Egg VS Affiliate Egg
  • For developers
    • Useful hooks
    • Custom parsers
Powered by GitBook
On this page
  • Base currency
  • Automatic exchange rates
  • How to change the currency when extracting products

Was this helpful?

  1. Importing to WooCommerce

Currency

PreviousImporting images and galleriesNextImporting attributes

Last updated 1 month ago

Was this helpful?

Base currency

WooCommerce allows only one base currency.

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.

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

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:

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

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.

To extract prices in a specific currency:

  1. Visit the target website and manually set your desired currency and language.

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

Note: This method doesn't work for all websites.

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.

To convert currencies, External Importer will use 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 to get your own API access key.

Follow the to capture and apply the cookie settings.

European Central Bank
sign up
Custom Cookies Guide