Contents
On this page
Margins and rounding - Plugixa Multi Currency for WooCommerce
A converted price is never a raw multiplication. Each currency adds its margin, then rounds the result with its own rule. This page shows the formula, the options and a few worked examples.

How a price is converted
For every product price shown in another currency, the plugin works it out in this order:
- Store price × rate. A product at 24.00 USD with a euro rate of 0.92 gives 22.08.
- × (1 + margin %). With a Margin (%) of 2, 22.08 becomes 22.5216.
- + fixed amount. With a Fixed amount added to each product price of 0.50, it becomes 23.0216.
- Rounding. The currency’s rounding rule for that kind of amount gives the price shown, for example 23.05 when rounding up to 0.05.
Shipping costs and cart fees follow steps 1, 2 and 4, with their own rounding rule: the fixed amount is for product prices only.
The calculation uses exact decimals, never floating-point numbers, so a price never ends up one cent off. Your stored prices are not changed: the conversion happens each time a price is shown.
Taxes and order totals are then calculated by WooCommerce from the converted prices, in the shopper’s currency. Totals are not rounded a second time, so the order adds up exactly.
Margin
A margin raises your prices in one currency compared with the market rate. Shops use it to cover card or bank conversion fees, or the risk of the rate moving between the sale and the payout.
| Field | Example | Effect |
|---|---|---|
| Margin (%) | 2 |
Every converted amount is 2% higher than the plain rate gives. |
| Fixed amount added to each product price | 0.50 |
0.50 in this currency is added to each product price, after the percentage. |
The percentage can be negative, to make a currency cheaper, down to just above -100%. The
Margin column of the currencies list shows both values, for example +2% +0.5.
The margin is part of the rate saved on each order. The order note says so: Paid in EUR at 1 USD = 0.9384 EUR (including margin).
Rounding rules
Each currency has three rules:
| Rule | Used for |
|---|---|
| Product prices | Regular and sale prices of products and variations. |
| Shipping | Shipping rates in the cart and checkout. |
| Fees | Cart fees added by other plugins, such as a handling fee. |
Each rule has two settings:
| Setting | Options |
|---|---|
| Round to | Currency decimals only, or a step: 0.01, 0.05, 0.1, 0.5, 1, 5, 10, 100 or 1000. |
| Direction | Nearest, Up or Down. |
Currency decimals only rounds to the currency’s Decimals, for example to the cent for two decimals and to the whole yen for none. A step rounds to a multiple of that step in the currency itself.
Worked examples
| Exact converted amount | Round to | Direction | Price shown |
|---|---|---|---|
| 23.0216 | Currency decimals only | Nearest | 23.02 |
| 23.0216 | 0.05 | Up | 23.05 |
| 23.0216 | 0.5 | Nearest | 23.00 |
| 23.0216 | 1 | Up | 24.00 |
| 3,428.6 (yen, 0 decimals) | 10 | Nearest | 3,430 |
| 3,428.6 (yen, 0 decimals) | 100 | Up | 3,500 |
Rounding up to a whole unit is a common choice for currencies with large numbers, such as the
yen or the Indian rupee. Rounding shipping to 1 keeps shipping rates simple.
Check before you save
The Preview card beside the currency form converts four sample store prices with the rate, margin and rounding you are typing, before you save. The Preview column of the currencies list shows the same for a product priced 100 in your store currency.
The preview and the shop use the same rounding, so what you see in the preview is what shoppers pay.
What is converted without a rounding rule
Some amounts are converted with the currency’s decimals only, never with a step, because a rounded value would change their meaning:
- Fixed-amount coupons, and the minimum and maximum spend of a coupon.
- The minimum order amount for free shipping.
- Taxes on shipping rates.
Percentage coupons are not converted: a 10% coupon is 10% in every currency.
Pro: charm endings and fixed prices
Pro can end prices with a charm ending such as .99 or .95, with other endings for price bands PRO. It can also take your own price per product and currency instead of a converted one, used as it is with no rate, margin or rounding. See Charm pricing and Fixed prices.
Quick Links
Share