Peg FX

By Peg

0+ active installationsVersion 0.2.0

Let shoppers see and pay in their own currency. One extra currency at your exchange rate, picked by country or with a switcher.

Description

Peg FX shows your WooCommerce prices in the shopper’s own currency and charges them in it. You keep entering prices in your store’s currency. Peg FX converts them for each visitor at the exchange rate you set.

A shopper in Germany sees your $24.00 mug as €22.08, pays €22.08 at checkout, and the order is recorded in euros.

What Peg FX does

  • One extra currency. Pick any currency WooCommerce supports and set its exchange rate yourself.
  • Chosen by country. Peg FX can pick the currency from the visitor’s country, using WooCommerce geolocation or Cloudflare’s country header. Assign the countries that should see it.
  • A switcher for your shop. Add the Peg FX currency switcher block anywhere in the site editor, or use the [pegfx_currency_switcher] shortcode. Shoppers can always switch. In checkout-only mode the switcher stays hidden, since every page is in your currency.
  • Checkout in the shopper’s currency. Products, sale prices, shipping, taxes and coupons all use the selected currency. Prices round to that currency’s decimals.
  • Or only at checkout. Keep the whole shop and the payment in your currency, and let the cart and checkout show the shopper what the total comes to in theirs, with the exchange rate. Their bank or card converts the payment.
  • Orders keep their currency. Every order records the currency it was placed in.
  • Your prices stay as they are. Peg FX converts prices when they are shown and never saves converted prices to your products.
  • Modern WooCommerce. Works with the block cart and checkout, the Store API and High-Performance Order Storage (HPOS).
  • Page caches stay correct. Pages in the extra currency are never cached. On cached pages in your base currency, Peg FX refreshes the prices in the browser.

Free, with nothing locked

Peg FX is free and complete. It needs no account or licence key, makes no external requests, and never shows upgrade prompts inside WordPress.

Need more currencies?

Peg FX Pro is a separate paid add-on, available from pegfx.fyi. It adds any number of currencies, daily central-bank exchange rates with your own markup or discount, and price rounding such as .99 endings. Peg FX works fully on its own.

Privacy

Peg FX makes no external requests and sends no data to us. It stores the visitor’s chosen currency in the pegfx_currency cookie and the currency it resolved in the pegfx_resolved cookie. WooCommerce geolocation, if you enable it, follows WooCommerce’s own privacy settings. Orders store their currency through WooCommerce.

Installation

  1. Install and activate WooCommerce.
  2. Install Peg FX from Plugins > Add New, or upload the pegfx ZIP with Upload Plugin, then activate it.
  3. Open WooCommerce > Settings > Currencies.
  4. Choose your extra currency, set a positive exchange rate, and pick the countries that should see it.
  5. Add the Peg FX currency switcher block to your header or shop, or use the [pegfx_currency_switcher] shortcode.

FAQ

Does Peg FX fetch exchange rates?

No. You set the rate by hand, and Peg FX makes no external requests. Peg FX Pro adds daily central-bank rates.

How many currencies can I use?

Your store’s base currency plus one extra currency.

Does checkout charge in the displayed currency?

Yes, as long as your payment gateway accepts that currency. Check your gateway’s supported currencies before you enable one. Existing orders keep their original currency.

Can I keep my prices in my currency and only help shoppers at checkout?

Yes. Under WooCommerce > Settings > Currencies, choose “Checkout only”. Prices, the cart, the payment and the order all stay in your store’s currency. The cart and checkout add a line with the total in the shopper’s currency and the rate, so a shopper from Canada or New Zealand knows roughly what their bank will charge.

The line appears for visitors located in a country you assigned to the extra currency. Shoppers can’t pick a different currency for it in Peg FX, which offers one extra currency; with Peg FX Pro and two or more other currencies, the line has a currency picker.

Does Peg FX change my saved product prices?

No. Prices stay in your store’s base currency. Peg FX converts them only when it shows them.

Does it work with page caching or a CDN?

Yes. Pages in the extra currency are never cached, and cached base-currency pages get their prices refreshed in the browser.

Does it work with the block checkout?

Yes. Peg FX supports the block cart and checkout, the classic checkout and the Store API.

What happens when I uninstall Peg FX?

Peg FX removes its settings. Currency cookies expire in the browser. Existing orders keep their currency.

Screenshots

Changelog

0.2.0

  • Free Peg FX offers a base currency plus one extra currency at a hand-set rate.
  • Supports block checkout, HPOS and cached base-currency pages.