You are here

uc-attribute-option.html.twig in Ubercart 8.4

{#
/**
 * @file
 * Default theme implementation to display an attribute option with price.
 *
 * Available variables:
 * - option: The option name.
 * - price: The price total or adjustment, if any.
 *
 * @see _uc_attribute_alter_form()
 *
 * @ingroup themeable
#}
{% spaceless %}
{% if price %}
  {{ option }}, {{ price }}
{% else %}
  {{ option }}
{% endif %}
{% endspaceless %}

File

uc_attribute/templates/uc-attribute-option.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Default theme implementation to display an attribute option with price.
  5. *
  6. * Available variables:
  7. * - option: The option name.
  8. * - price: The price total or adjustment, if any.
  9. *
  10. * @see _uc_attribute_alter_form()
  11. *
  12. * @ingroup themeable
  13. #}
  14. {% spaceless %}
  15. {% if price %}
  16. {{ option }}, {{ price }}
  17. {% else %}
  18. {{ option }}
  19. {% endif %}
  20. {% endspaceless %}