Exam4Training

Which handlebars helper function is used on Salesforce B2B Commerce pages and components for formatting price values?

Which handlebars helper function is used on Salesforce B2B Commerce pages and components for formatting price values?
A . formatPrice
B . priceAbs
C . showprice
D . price

Answer: A

Explanation:

The handlebars helper function that is used on Salesforce B2B Commerce pages and components for formatting price values is formatPrice. This function will format a numeric value as a price according to the currency settings and locale of the storefront.

For example, {{formatPrice price}} will format the price value as $1,234.56 for US dollars or 1.234,56 for euros.

Salesforce Reference: B2B Commerce and D2C Commerce Developer Guide, Handlebars Helpers

Exit mobile version