less than a minute read • Updated 8 minutes ago
Set product prices in a specific currency
How to add products in a specific currency using the price parameter, and how Foxy converts prices to the cart's currency
Append a 3-character ISO currency code to a product's price to set that product's currency, for example price=15.99usd.
How conversion behaves
If a product is added in a currency that doesn't match the cart's current currency, Foxy converts the price to the cart currency. For example, with a cart set to USD and a product added as price=50mxn, the 50 MXN is converted to USD.
If no currency code is appended, the price is assumed to be in your store's default currency, then converted to the cart's current currency if they differ.
Dynamic conversion requires at least two template sets with differing locales configured on your store. Rates come from openexchangerates.org.
Product option modifiers
When a product option modifier changes the price, append the currency code to the modifier's amount too. Without it, the amount is assumed to be in your store's default currency:
html
<input type="checkbox" name="gift_wrapping" value="Yes{p+15CAD}" />Notes
To add a product in its own currency instead of converting it, use a
template_setfor that locale so the whole cart is in that currency. See Set up multicurrency with template sets.