Click or drag to resize
ShippingOptionInfoProviderGetFormattedWeight Method
Returns weight formatted according site specific weight format string. If no format string specified, uses x.xx format instead.

Namespace: CMS.Ecommerce
Assembly: CMS.Ecommerce (in CMS.Ecommerce.dll) Version: 8.2.23
Syntax
C#
public static string GetFormattedWeight(
	double weight,
	string siteName,
	bool encode = true
)

Parameters

weight
Type: SystemDouble
Weight
siteName
Type: SystemString
Name of the site for obtaining format string
encode (Optional)
Type: SystemBoolean
Encode output

Return Value

Type: String
See Also