You are here

commerce-price-plain.html.twig in Commerce Core 8.2

Default theme implementation for displaying a price.

Used by the 'commerce_price_plain' formatter. Available variables:

  • number: The number.
  • currency: The currency entity.

File

modules/price/templates/commerce-price-plain.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Default theme implementation for displaying a price.
  5. *
  6. * Used by the 'commerce_price_plain' formatter.
  7. * Available variables:
  8. * - number: The number.
  9. * - currency: The currency entity.
  10. *
  11. * @ingroup themeable
  12. */
  13. #}
  14. {{ number|number_format(2, '.', ',') }} {{ currency.currencyCode }}