Table of Contents

Interface IPriceFormatter

Namespace
CMS.Commerce
Assembly
CMS.Commerce.dll

Interface for price formatting.

public interface IPriceFormatter
Extension Methods

Remarks

Formatter should use same number of decimal places as used in IPriceCalculationRoundingService.

Methods

Format(decimal, PriceFormatContext)

Formats the price.

string Format(decimal price, PriceFormatContext context)

Parameters

price decimal

Price to format.

context PriceFormatContext

Object containing context data for formatting the price.

Returns

string