The Vue Storefront Essentials Course is now available! Learn More
Money normalizer

Money normalizer

The normalizeMoney function maps SFCC price values into Unified SfMoney.


NameTypeDefault valueDescription
pricePrice in SFCC Product it's float.SFCC price


The SfMoney is returned as a part of multiple models, as for example SfProduct, SfProductCatalogItem, and SfCart.

If you want to change the global attributes representation, you should override all root normalizers, so for example normalizeCart, normalizeProduct etc. Overriding the normalizeMoney function will not have an impact of the image normalization inside these functions, it is just an utils function which may be then used in writing other custom normalizers or methods.


🔴 ../../node_modules/@vsf-enterprise/unified-api-sfcc/src/normalizers/money/money.ts | Snippet does not exist 🔴