core/api/modules/cart/index.html

108 lines
3.6 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{include file=$header}
<section class="container">
<nav aria-label="breadcrumb" style="width: 100%; background-color: lightgray; border-radius: 0px 0px 10px 10px; padding-top: 15px; padding-bottom: 1px;">
<ol class="breadcrumb">
<li class="breadcrumb-item" aria-current="page"><a href="/">Главная</a></li>
<li class="breadcrumb-item active" aria-current="page">Корзина</li>
</ol>
</nav>
<h1>Корзина</h1>
<table class="table">
<tr><td></td><td><b>Наименование</b></td><td><b>Количество</b></td><td><b>Цена</b></td><td></td></tr>
{section name=customer loop=$cart} {if $cart[customer].id}
<tr class="global-cart-str-{$cart[customer].id}"><td>
<a href="/tovar_show/{$cart[customer].tovar_id}"><img src="/img/{$smarty.server.SERVER_NAME}/tovar/{$cart[customer].img}.jpg" width="130" alt=""></a>
</td><td>{$cart[customer].title}</td><td>
<input type="number" class="form-control rounded-0 change-kolvo" data-id="{$cart[customer].id}" value="{$cart[customer].kolvo}" min="1">
</td><td>{$cart[customer].cena}</td><td><a class="fa fa-times fa-delete global-cart-delete" data-id="{$cart[customer].id}"></a></td></tr>
{/if} {/section}
</table>
<h3 class="mb-0 global-cart-summ">{$cart_summ} р.</h3>
<div class="d-lg-flex align-items-center gap-2">
<a href="/tovar_cat/1-0.html" class="btn btn-dark"><i class='bx bx-shopping-bag'></i> Продолжить покупки</a>
<a href="javascript:;" class="btn btn-light ms-auto"><i class='bx bx-x-circle'></i> Очистить</a>
<a href="javascript:;" class="btn btn-white"><i class='bx bx-refresh'></i> Обновить</a>
</div>
</section>
<div class="shop-cart">
<div class="row">
<div class="col-12 col-xl-8">
<div class="shop-cart-list mb-3 p-3">
<div class="my-4 border-top"></div>
</div>
</div>
<div class="col-12 col-xl-4">
<div class="checkout-form p-3 bg-light">
<div class="card rounded-0 border bg-transparent shadow-none">
<div class="card-body">
<p class="fs-5">Вы не авторизованы, укажите ИНН вашей организаци</p>
<div class="my-3 border-top"></div>
<div class="mb-3">
<label class="form-label">ИНН:</label>
<input class="form-control" name="inn">
</div>
</div>
<div class="card-body">
<p class="fs-5">{$orginfo}</p>
<div class="my-3 border-top"></div>
<div class="mb-3">
<label class="form-label">Адрес доставки</label>
<select class="form-select rounded-0">
<option selected>United States</option>
<option value="1">Australia</option>
<option value="2">India</option>
<option value="3">Canada</option>
</select>
</div>
</div>
</div>
<div class="card rounded-0 border bg-transparent mb-0 shadow-none">
<div class="card-body">
<div class="my-3 border-top"></div>
<h5 class="mb-0">Итого: <span class="float-end" id="summ">{$summ}</span></h5>
<div class="my-4"></div>
<div class="d-grid"> <a href="javascript:;" class="btn btn-dark btn-ecomm">Оформить заказ</a>
</div>
</div>
</div>
</div>
</div>
</div>
<!--end row-->
</div>
{include file=$footer}