Files
BiveEngine/playarea/templates/checkout/individual.php
2025-12-24 19:19:01 +03:00

83 lines
6.1 KiB
PHP
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.
<?php $person = $variables["person"]; ?>
<article class="reviews-block-art checkout__article js-targetTabs">
<div class="checkout__form checkout-form">
<form action="" method="post">
<input type="hidden" name="legal" value="<?= $person; ?>">
<div class="checkout-form__fields">
<h2 class="wide checkout__heading">Информация о покупателе</h2>
<span class="wide">
<input type="text" id="name" class="input-form input-track" name="name" placeholder="Фамилия, имя, отчество" required value="<?= $b->get_view($b->session_get("name")); ?>"/>
<label for="name">Фамилия, имя, отчество</label>
</span>
<span>
<input type="tel" id="tel" class="input-form input-track phone-input" name="phone" placeholder="+7 (___) ___-____" required data-inputmask="'mask': '+7 (999) 999-9999'" value="<?= $b->get_view($b->session_get("phone")); ?>"/>
<label for="tel">Мобильный номер телефона*</label>
</span>
<span>
<input type="email" id="email" class="input-form input-track" name="email" placeholder="Email" required value="<?= $b->get_view($b->session_get("email")); ?>"/>
<label for="email">Для получения чека и уведомлений</label>
</span>
</div>
<div class="checkout-form__fields">
<h2 class="wide checkout__heading">Доставка</h2>
<span>
<input type="text" id="dost2" class="input-form input-track" placeholder="Москва, Московская область" name="address_region" value="<?= $b->get_view($b->session_get("address_region")); ?>"/>
<label for="dost1">Выберите область/регион для вычисления стоимости доставки</label>
</span>
<span>
<input type="text" id="dost2" class="input-form input-track" placeholder="Город, дом, улица" name="address_street" value="<?= $b->get_view($b->session_get("address_street")); ?>"/>
<label for="dost2">Укажите адрес доставки</label>
</span>
</div>
<div class="checkout-form__radio checkout-form__radio_delivery">
<span class="first">
<input type="radio" id="pochta" class="input-track" name="shipping_method" value="1" <?= $b->session_get("shipping") == 1 ? "checked" : ""; ?>/>
<label for="pochta">Почтой России - <span>Уточнять у менеджера</span></label>
</span>
<span class="second">
<input type="radio" id="pochta_kurier" class="input-track" name="shipping_method" value="2" <?= $b->session_get("shipping") == 2 ? "checked" : ""; ?>/>
<label for="pochta_kurier">Курьером Почты России (EMS) - <span>Уточнять у менеджера</span></label>
</span>
<span class="third">
<input type="radio" id="sdek_kurier" class="input-track" name="shipping_method" value="3" <?= $b->session_get("shipping") == 3 ? "checked" : ""; ?>/>
<label for="sdek_kurier">Курьер СДЭК - <span>Уточнять у менеджера</span></label>
</span>
<span class="fourth">
<input type="radio" id="samovivoz" class="input-track" name="shipping_method" value="0" <?= $b->session_get("shipping") == 0 ? "checked" : ""; ?>/>
<label for="samovivoz">Самовывоз - <span>бесплатно</span></label>
</span>
</div>
<div class="checkout-form__radio checkout-form__radio_payment">
<h2 class="wide checkout__heading">Оплата</h2>
<span class="first">
<input type="radio" id="karta_online" class="input-track" name="payment_method" value="1" <?= $b->session_get("payment_method") == 1 ? "checked" : ""; ?>/>
<label for="karta_online">Банковской картой онлайн</label>
</span>
<span class="second">
<input type="radio" id="karta_poluchenie" class="input-track" name="payment_method" value="2" <?= $b->session_get("payment_method") == 2 ? "checked" : ""; ?>/>
<label for="karta_poluchenie">Картой при получении</label>
</span>
<span class="third">
<input type="radio" id="nalik" class="input-track" name="payment_method" value="0" <?= $b->session_get("payment_method") == 0 ? "checked" : ""; ?>/>
<label for="nalik">Наличными</label>
</span>
</div>
<div class="checkout-form__fields">
<h2 class="checkout__heading wide">Комментарии к заказу</h2>
<textarea class="input-form wide input-track" placeholder="Комментарии к заказу" name="comment"><?= $b->get_view($b->session_get("comment")); ?></textarea>
</div>
<?php $this->template_load("checkout/price.php"); ?>
<button class="form-zakaz__btn" type="submit">оформить заказ</button>
<label class="agreement">
<input type="checkbox" class="agreement-checkbox" checked required>
<span>
<span>
Я согласен с условиями предоставления услуг и
<a href="/page/privacy/">обработкой моих персональных данных</a> при
нажатии "Оставить заявку"
</span>
</span>
</label>
</form>
</div>
</article>