{% if cart.enable_coupon? %}
<form action="{{ cart_url }}" method="post" >
<input type="text" name="cart[coupon]" value="{{ cart.coupon }}" placeholder="Введите купон">
<button type="submit">
Применить купон
</button>
{% if cart.invalid_coupon? %}
<div class="discounts-notice notice notice-error">
{{ cart.coupon_error }}
</div>
{% endif %}
{% if cart.discounts.size > 0 %}
{% for discount in cart.discounts %}
<div class="discount">
<div class="discount-title">
{{ discount.description }}
</div>
<div class="discount-prices prices">
<span class="prices-current">
- {{ discount.amount | money }}
</span>
</div>
</div>
{% endfor %}
{% endif %}
</form>
{% endif %}
{% if cart.enable_coupon? %}
<form action="{{ cart_url }}" method="post" >
<input type="text" name="cart[coupon]" value="{{ cart.coupon }}" placeholder="Введите купон">
<button type="submit">
Применить купон
</button>
{% if cart.invalid_coupon? %}
<div class="discounts-notice notice notice-error">
{{ cart.coupon_error }}
</div>
{% endif %}
{% if cart.discounts.size > 0 %}
{% for discount in cart.discounts %}
<div class="discount">
<div class="discount-title">
{{ discount.description }}
</div>
<div class="discount-prices prices">
<span class="prices-current">
- {{ discount.amount | money }}
</span>
</div>
</div>
{% endfor %}
{% endif %}
</form>
{% endif %}
{% if cart.discounts.size > 0 %}
{% for discount in cart.discounts %}
<div class="discount">
<div class="discount-title">
{{ discount.description }}
</div>
<div class="discount-prices prices">
<span class="prices-current">
- {{ discount.amount | money }}
</span>
</div>
</div>
{% endfor %}
{% endif %}
{% if cart.enable_coupon? %}
<form action="{{ cart_url }}" method="post" >
<input type="text" name="cart[coupon]" value="{{ cart.coupon }}" placeholder="Введите купон">
<button type="submit">
Применить купон
</button>
{% if cart.invalid_coupon? %}
<div class="discounts-notice notice notice-error">
{{ cart.coupon_error }}
</div>
{% endif %}
{% if cart.discounts.size > 0 %}
{% for discount in cart.discounts %}
<div class="discount">
<div class="discount-title">
{{ discount.description }}
</div>
<div class="discount-prices prices">
<span class="prices-current">
- {{ discount.amount | money }}
</span>
</div>
</div>
{% endfor %}
{% endif %}
</form>
{% endif %}
{% if cart.enable_coupon? %}
<form action="{{ cart_url }}" method="post" >
<input type="text" name="cart[coupon]" value="{{ cart.coupon }}" placeholder="Введите купон">
<button type="submit">
Применить купон
</button>
{% if cart.invalid_coupon? %}
<div class="discounts-notice notice notice-error">
{{ cart.coupon_error }}
</div>
{% endif %}
{% if cart.discounts.size > 0 %}
{% for discount in cart.discounts %}
<div class="discount">
<div class="discount-title">
{{ discount.description }}
</div>
<div class="discount-prices prices">
<span class="prices-current">
- {{ discount.amount | money }}
</span>
</div>
</div>
{% endfor %}
{% endif %}
</form>
{% endif %}
{% for item in cart.items %}
<div class="item">
<div class="item-title">
{{ item.title }}
</div>
<div class="item-title">
{{ item.quantity | money }} × {{ item.sale_price }} = {{ item.total_price | money }}
</div>
</div>
{% endfor %}
Товаров в корзине: {{ cart.items_count }}
Итого: {{ cart.items_price | money }}
{% if cart.items_weight %}
Сумарный вес товаров в корзине: {{ cart.items_weight }}
{% endif %}
Суммарная стоимость заказа с учетом доставки: {{ cart.total_price | money }}