docs: clarify prices are stored in major units (#13897)
* update package * docs: clarify prices are stored in major units * revert change * revert change --------- Co-authored-by: adrien2p <adrien.deperetti@gmail.com>
This commit is contained in:
co-authored by
adrien2p
parent
38d486bec0
commit
3518ba1694
@@ -1876,11 +1876,11 @@ In Medusa v2, the price selection process is now implemented in the [Pricing Mod
|
||||
|
||||
If your use case is complex and these rules are not enough, you can create a new [module](../../fundamentals/modules/page.mdx) with the necessary logic, then use that module in your custom workflows.
|
||||
|
||||
## Prices are Stored in Base Units
|
||||
## Prices are Stored in Major Units
|
||||
|
||||
In Medusa v1, prices were stored in the smallest currency unit. For example, a price of $10.00 was stored as `1000` (cents).
|
||||
|
||||
In Medusa v2, prices are stored in the base unit. For example, a price of $10.00 is stored as `10` (dollars).
|
||||
In Medusa v2, prices are stored in the major unit. For example, a price of $10.00 is stored as `10` (dollars).
|
||||
|
||||
Learn more in the [Pricing Concepts](!resources!/commerce-modules/pricing/concepts) guide.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user