themes/BootstrapTheme/templates/bundles/SyliusShopBundle/Product/Show/_variantsPricing.html.twig line 1

Open in your IDE?
  1. {% import "@SyliusShop/Common/Macro/money.html.twig" as money %}
  2. <div id="sylius-variants-pricing" data-unavailable-text="{{ 'sylius.ui.unavailable'|trans }}" data-choose-option-text="{{ "app.ui.choose"|trans }}">
  3.     {% set context = {"channel": sylius.channel} %}
  4.     {% for price in pricing %}
  5.         <div {% for option, value in price %}data-{{ option }}="{% if option == 'value' or option == 'original-value' %}{{ money.calculatePriceWithTax(price.variant, context) }}{% elseif option == 'original-price' %}{{ money.calculateOriginalPriceWithTax(price.variant, context) }}{% else %}{{ value|replace({'\"': '\''}) }}{% endif %}" {{ sylius_test_html_attribute('variant-price') }}{% endfor %}></div>
  6.     {% endfor %}
  7. </div>