{% extends "layouts/layout.html.twig" %} {% block content %}

{{ page_title }}

Stap 1 - Winkelwagen
Stap 2 - Uw gegevens
Stap 3 - Bevestigen en betalen
Stap 4 - Bestelling geplaatst
{% 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 }}
{{ 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 %}
Levertijd {{ product_shipping_details.shipping_days }} werkdag(en)
{% else %}
Levertijd 1-3 werkdag(en)
{% endif %} {% else %}
Dit product is niet op voorraad
{% endif %} {##} {##} {##} {##}
EAN{{ order_product.product.ean }}
SKU {{ product.sku }}
{% if transaction is not defined or transaction.status != 'CONFIRMED' %} {% endif %}
€ {{ (product_price.total_price_in)|number_format(2, ',', '.') }}
€ {{ (product_price.total_price_in * order_product.quantity)|number_format(2, ',', '.') }}
{% if transaction is not defined or transaction.status != 'CONFIRMED' %} {% endif %}
{% endfor %}
{% endif %}
{% endblock %} {% block post_js %} {{ parent() }} {% include 'blocks/ajax_shoppingcart.html.twig' %} {% endblock %}