@Component(value="blPriceVariableExpression") @ConditionalOnTemplating public class PriceVariableExpression extends Object implements org.broadleafcommerce.presentation.expression.BroadleafVariableExpression
| Constructor and Description |
|---|
PriceVariableExpression() |
| Modifier and Type | Method and Description |
|---|---|
String |
getName() |
String |
getPrice(String amount)
Returns the price at the correct scale and rounding for the default currency
|
public String getName()
getName in interface org.broadleafcommerce.presentation.expression.BroadleafVariableExpressionpublic String getPrice(String amount)
amount - Money.defaultCurrency()Copyright © 2017. All rights reserved.