{#** * Copyright since 2007 PrestaShop SA and Contributors * PrestaShop is an International Registered Trademark & Property of PrestaShop SA * * NOTICE OF LICENSE * * This source file is subject to the Open Software License (OSL 3.0) * that is bundled with this package in the file LICENSE.md. * It is also available through the world-wide-web at this URL: * https://opensource.org/licenses/OSL-3.0 * If you did not receive a copy of the license and are unable to * obtain it through the world-wide-web, please send an email * to license@prestashop.com so we can send you a copy immediately. * * DISCLAIMER * * Do not edit or add to this file if you wish to upgrade PrestaShop to newer * versions in the future. If you wish to customize PrestaShop for your * needs please refer to https://devdocs.prestashop.com/ for more information. * * @author PrestaShop SA and Contributors * @copyright Since 2007 PrestaShop SA and Contributors * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) *#}

{{ 'Cart summary'|trans({}, 'Admin.Orderscustomers.Feature') }}

{% for product in cartView.cartSummary.products %} {% if product.customization is not empty %} {% endif %} {% if product.customization is empty or product.cart_quantity > product.customization_quantity %} {% endif %} {% endfor %} {% if cartView.cartSummary.total_discounts %} {% endif %} {% if cartView.cartSummary.total_wrapping %} {% endif %} {% if cartView.cartSummary.total_shipping %} {% endif %}
  {{ 'Product'|trans({}, 'Admin.Global') }} {{ 'Unit price'|trans({}, 'Admin.Global') }} {{ 'Quantity'|trans({}, 'Admin.Global') }} {{ 'Stock'|trans({}, 'Admin.Global') }} {{ 'Total'|trans({}, 'Admin.Global') }}
{{ product.image|raw }} {{ product.name }} {% if product.attributes %}
{{ product.attributes }} {% endif %}
{% if product.reference %} {{ 'Ref:'|trans({}, 'Admin.Orderscustomers.Feature') }} {{ product.reference }} {% endif %} {% if product.reference and product.supplier_reference %} / {{ product.supplier_reference }} {% endif %}
{{ product.unit_price_formatted }} {{ product.quantity }} {{ product.stock_quantity }} {{ product.total_price_formatted }}
{% for customizationField in product.customization.fields %}
{% if customizationField.name %} {{ customizationField.name }} {% else %} {{ 'Text #'|trans({}, 'Admin.Orderscustomers.Feature') }} {% endif %}
{% if customizationField.type == 'customizable_file' %} {% else %} {{ customizationField.value }} {% endif %}
{% endfor %}
{{ product.customization.quantity }}
{{ product.image|raw }} {{ product.name }} {% if product.attributes %}
{{ product.attributes }} {% endif %}
{% if product.reference %} {{ 'Ref:'|trans({}, 'Admin.Orderscustomers.Feature') }} {{ product.reference }} {% endif %} {% if product.reference and product.supplier_reference %} / {{ product.supplier_reference }} {% endif %}
{{ product.unit_price_formatted }} {{ product.cart_quantity }} {{ product.stock_quantity }} {{ product.total_price_formatted }}
{{ 'Total cost of products:'|trans({}, 'Admin.Orderscustomers.Feature') }} {{ cartView.cartSummary.total_products_formatted }}
{{ 'Total value of vouchers:'|trans({}, 'Admin.Orderscustomers.Feature') }} {{ cartView.cartSummary.total_discounts_formatted }}
{{ 'Total cost of gift wrapping:'|trans({}, 'Admin.Orderscustomers.Feature') }} {{ cartView.cartSummary.total_wrapping_formatted }}
{{ 'Total shipping costs:'|trans({}, 'Admin.Orderscustomers.Feature') }} {{ cartView.cartSummary.total_shipping_formatted }}
{{ 'Total'|trans({}, 'Admin.Global') }} {{ cartView.cartSummary.total_formatted }}
{% if cartView.cartSummary.cart_rules is not empty %} {% for cartRule in cartView.cartSummary.cart_rules %} {% endfor %}
{{ 'ID'|trans({}, 'Admin.Global') }} {{ 'Discount name'|trans({}, 'Admin.Orderscustomers.Feature') }} {{ 'Value'|trans({}, 'Admin.Global') }}
{{ cartRule.id }} {{ cartRule.name }} {% if cartRule.is_free_shipping %} {{ 'Free shipping'|trans({}, 'Admin.Shipping.Feature') }} {% else %} - {{ cartRule.formatted_value }} {% endif %}
{% endif %}