Skip to content

Commit

Permalink
docs: Add docs on multiple currency support.
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelbromley committed Nov 15, 2023
1 parent 6f34d06 commit b3e832e
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions docs/docs/guides/core-concepts/money/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,16 @@ If you are building an Admin UI extension, you can use the built-in [`LocaleCurr
</div>
```

## Support for multiple currencies

Vendure supports multiple currencies out-of-the-box. The available currencies must first be set at the Channel level
(see the [Channels, Currencies & Prices section](/guides/core-concepts/channels/#channels-currencies--prices)), and then
a price may be set on a `ProductVariant` in each of the available currencies.

When using multiple currencies, the [ProductVariantPriceSelectionStrategy](/reference/typescript-api/configuration/product-variant-price-selection-strategy/)
is used to determine which of the available prices to return when fetching the details of a `ProductVariant`. The default strategy
is to return the price in the currency of the current session request context, which is determined firstly by any `?currencyCode=XXX` query parameter
on the request, and secondly by the `defaultCurrencyCode` of the Channel.

## The GraphQL `Money` scalar

Expand Down

0 comments on commit b3e832e

Please sign in to comment.