{% block _body_widget %} {% if selected_currency is defined %} {% set attr = layout_attr_defaults(attr, { '~class': ' currency--' ~ selected_currency|lower }) %} {% endif %} {{ parent_block_widget(block) }} {% endblock %} {% block currency_switcher_widget %} {% if currencies|length > 1 %}
{% set togglerId = 'dropdown-'|uniqid %}
{% endif %} {% endblock %} {% block price_totals_widget %} {% set options = { route: route, events: events|default({}), entityClassName: oro_url_class_name(entityClassName), entityId: entityId, skipMaskView: skipMaskView, data: totals, }%} {% if selectors is defined %} {% set options = options|merge({selectors: selectors}) %} {% endif %} {% placeholder oro_pricing_totals_before %} {% if totalsConainerClassName is not defined %} {% set totalsConainerClassName = 'order-checkout-widget__container order-checkout-widget__container--fixed-width' %} {% endif %} {% set pageComponent = pageComponent|default('oropricing/js/app/components/totals-component') %}
{% block data_totals_container %}
{% if itemsCount is defined %} {% endif %}
{{ 'oro.pricing.frontend.summary'|trans }} {{ 'oro.pricing.frontend.summary_count'|trans({'%count%': itemsCount}) }}
{% endblock data_totals_container %}
{% placeholder oro_pricing_totals %} {% placeholder oro_pricing_totals_after %} {% endblock %} {% block product_price_hint_content_js_widget %} {# qty#} {# Unit Price #} <% var addNewLine = false %> <% var modelPrices = _.sortBy(model.prices, 'quantity'); %> <% _.each(model.product_units, function(val, unit) { %> <% var prices = _.filter(modelPrices, function(price){return price.unit === unit}); %> <% if (prices.length) { %> <% addNewLine = true %> <% _.each(prices, function(price) { %> <% }) %> <% } %> <% }) %>
{{ 'oro.pricing.frontend.product.quantity.short_label'|trans }}{{ 'oro.pricing.frontend.product.unit_price.long_label'|trans }}
<% if (addNewLine) { %>
<% } %> <%- _.__('oro.product.product_unit.' + unit + '.label.full') %>
<%- price.quantity %> <% if (clickable) { %> <%- formatter.formatCurrency(price.price, price.currency) %> <% } else { %> <%- formatter.formatCurrency(price.price, price.currency) %> <% } %>
{% endblock %} {% block product_price_hint_trigger_js_widget %} {% set productTierClass = productTierClass|default('btn btn--default btn--size-s product-tier-prices') %} {% set productTierIcon = productTierIcon|default('fa-caret-down fa--no-offset') %} {% set productAriaLabel = productAriaLabel|default('oro.pricing.view_all_prices'|trans) %} {% if toggleAttrValue is not defined %} {% set toggleAttrValue = 'popover' %} {% endif %} {% endblock %} {% block product_price_hint_trigger_info_js_widget %} {% set productTierIcon = 'link link--none-decoration fa-info-circle fa--no-offset' %} {{ block('product_price_hint_trigger_js_widget') }} {% endblock %}