ShippingOptionInfoProviderGetFormattedWeight Method |
Returns weight formatted according site specific weight format string. If no format string specified, uses x.xx format instead.
Namespace: CMS.EcommerceAssembly: CMS.Ecommerce (in CMS.Ecommerce.dll) Version: 8.2.23
Syntax 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:
StringSee Also