You are here

commerce-checkout-progress.html.twig in Commerce Core 8.2

Default theme implementation for the checkout progress.

Available variables:

  • steps: An array of steps, where each step has the following keys:

    • id: The step ID.
    • label: The step label.
    • position: 'previous', 'current' or 'next'.

File

modules/checkout/templates/commerce-checkout-progress.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Default theme implementation for the checkout progress.
  5. *
  6. * Available variables:
  7. * - steps: An array of steps, where each step has the following keys:
  8. * - id: The step ID.
  9. * - label: The step label.
  10. * - position: 'previous', 'current' or 'next'.
  11. *
  12. * @ingroup themeable
  13. */
  14. #}
  15. <ol class="checkout-progress clearfix">
  16. {% for step in steps %}
  17. <li class="checkout-progress--step checkout-progress--step__{{ step.position }}">{{ step.label }}</li>
  18. {% endfor %}
  19. </ol>