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
- {#
- /**
- * @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 %}