{# # Frontend Package Pricing Display Template # # @package WC_Tier_Package_Prices # @var array packages #}

{{ 'Package Deals'|__('wc-tier-package-prices') }}

{% for index, package in packages %} {% set price_per_unit = package.qty > 0 ? package.price / package.qty : 0 %}
{% if package.label is not empty %}

{{ package.label|esc_html }}

{% endif %}
{{ package.qty|esc_html }} {{ 'pieces'|__('wc-tier-package-prices') }}
{{ wc_price(package.price)|raw }}
{{ wc_price(price_per_unit)|raw }} {{ 'per unit'|__('wc-tier-package-prices') }}
{% endfor %}