Class PriceTextDisplayProcessor

java.lang.Object
org.broadleafcommerce.presentation.dialect.AbstractBroadleafTagTextModifierProcessor
org.broadleafcommerce.core.web.processor.PriceTextDisplayProcessor
All Implemented Interfaces:
org.broadleafcommerce.presentation.dialect.BroadleafProcessor, org.broadleafcommerce.presentation.dialect.BroadleafTagTextModifierProcessor

@Component("blPriceTextDisplayProcessor") @ConditionalOnTemplating public class PriceTextDisplayProcessor extends org.broadleafcommerce.presentation.dialect.AbstractBroadleafTagTextModifierProcessor
A Thymeleaf processor that renders a Money object according to the currently set locale options. For example, when rendering "6.99" in a US locale, the output text would be "$6.99". When viewing in France for example, you might see "6,99 (US)$". Alternatively, if currency conversion was enabled, you may see "5,59 (euro-symbol)"
Author:
apazzolini
  • Field Details

    • localeToChange

      @Value("#{${currency.locale.change:{}}}") protected Map<String,String> localeToChange
  • Constructor Details

    • PriceTextDisplayProcessor

      public PriceTextDisplayProcessor()
  • Method Details

    • getName

      public String getName()
    • getPrecedence

      public int getPrecedence()
      Specified by:
      getPrecedence in interface org.broadleafcommerce.presentation.dialect.BroadleafProcessor
      Overrides:
      getPrecedence in class org.broadleafcommerce.presentation.dialect.AbstractBroadleafTagTextModifierProcessor
    • getTagText

      public String getTagText(String tagName, Map<String,String> tagAttributes, String attributeName, String attributeValue, org.broadleafcommerce.presentation.model.BroadleafTemplateContext context)