{% include 'blocks/flash_messages.html.twig' %}
{% if transaction is defined and transaction.status == 'CONFIRMED' %}
De bestelling is al bevestigd. U kunt deze gegevens daarom niet meer aanpassen, maar alleen lezen: klik hier om te betalen.
{% endif %}
{% if shopping_cart|length < 1 %}
Uw winkelwagen is leeg
{% else %}
Product(en)
Aantal
Stukprijs
Prijs
{% for order_product in shopping_cart %}
{% set store_product = order_product.store_product %}
{% set product = store_product.product %}
{% set product_translation = attribute(product.translations, locale_id) %}
{% if product_translation is null %}
{% set product_translation = product.translations|first %}
{% endif %}
{% set product_price = attribute(store_product.price_details, order_product.supplier_id) %}
{% set product_shipping_details = attribute(product_price.shipping_costs, shipping_country_id) %}
{{ product_translation.name }}
{% if product_price.supplier_stock is defined and product_price.supplier_stock > 0 %}
{% if order_product.quantity > product_price.supplier_stock %}
Niet genoeg op voorraad, langere levertijd
{% else %}
{% if product_price.supplier_stock > 10 %}
Ruimschoots op voorraad
{% else %}
Op voorraad
{% endif %}
{% endif %}
{% if product_shipping_details.shipping_days %}