add delivery pochta rossii
This commit is contained in:
@@ -19,7 +19,7 @@
|
|||||||
<?endif?>
|
<?endif?>
|
||||||
<?if ($book['sub'] == 1):?>
|
<?if ($book['sub'] == 1):?>
|
||||||
<p class="price"><a href="<?=$link_subscript?>">Доступ к библиотеке за 490 руб. в год</a></p>
|
<p class="price"><a href="<?=$link_subscript?>">Доступ к библиотеке за 490 руб. в год</a></p>
|
||||||
<p>Или <strong><a href="https://klan.argumenti.ru/login">войдите</a></strong> в личный кабинет если у Вас уже оформлена подписка</p>
|
<p>Или <strong><a href="https://klan.argumenti.ru/login">войдите</a></strong> в личный кабинет если покупка уже оформлена</p>
|
||||||
<?endif?>
|
<?endif?>
|
||||||
<?if ($book['offline_price'] > 0 && $book['pieces'] > 0):?>
|
<?if ($book['offline_price'] > 0 && $book['pieces'] > 0):?>
|
||||||
<p class="price"><a href="<?=$link_offline?>">Бумажная за <?=$book['offline_price']?> руб.</a></p>
|
<p class="price"><a href="<?=$link_offline?>">Бумажная за <?=$book['offline_price']?> руб.</a></p>
|
||||||
|
|||||||
@@ -5,8 +5,11 @@
|
|||||||
<?$link = SITE.'product/'.$book['priceslug']?>
|
<?$link = SITE.'product/'.$book['priceslug']?>
|
||||||
<a href="<?=$link?>" target="_blank">
|
<a href="<?=$link?>" target="_blank">
|
||||||
<img src="<?=picbook($book, 180, 280)?>" alt="<?=$book['pricename']?>">
|
<img src="<?=picbook($book, 180, 280)?>" alt="<?=$book['pricename']?>">
|
||||||
|
</a>
|
||||||
<p class="book_mini_title"><?=$book['pricename']?></p>
|
<p class="book_mini_title"><?=$book['pricename']?></p>
|
||||||
<p>Подробнее</p>
|
<p class="price">
|
||||||
|
<a href="<?=$link?>" target="_blank">Читать</a>
|
||||||
|
</p>
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -9,6 +9,8 @@
|
|||||||
var itog = product_price;
|
var itog = product_price;
|
||||||
var itog_el = document.getElementById("span_itog");
|
var itog_el = document.getElementById("span_itog");
|
||||||
|
|
||||||
|
var el_adress = document.getElementById("buy_adress");
|
||||||
|
|
||||||
if (myRadio.value == 2){
|
if (myRadio.value == 2){
|
||||||
itog = product_price;
|
itog = product_price;
|
||||||
document.getElementById("form_adress").style.display='none';
|
document.getElementById("form_adress").style.display='none';
|
||||||
@@ -18,6 +20,14 @@
|
|||||||
itog = product_price + 300;
|
itog = product_price + 300;
|
||||||
document.getElementById("form_adress").style.display='block';
|
document.getElementById("form_adress").style.display='block';
|
||||||
document.getElementById("form_samo").style.display='none';
|
document.getElementById("form_samo").style.display='none';
|
||||||
|
el_adress.placeholder='Адрес в свободной форме';
|
||||||
|
|
||||||
|
}
|
||||||
|
else if(myRadio.value == 4){
|
||||||
|
itog = product_price + 250;
|
||||||
|
document.getElementById("form_adress").style.display='block';
|
||||||
|
document.getElementById("form_samo").style.display='none';
|
||||||
|
el_adress.placeholder='Индекс (обязательно). Далее область, населенный пункт и Ваш адрес';
|
||||||
}
|
}
|
||||||
|
|
||||||
itog_el.innerHTML = itog + ' руб.';
|
itog_el.innerHTML = itog + ' руб.';
|
||||||
@@ -48,7 +58,7 @@
|
|||||||
|
|
||||||
<?if($delivery_id > 1):?>
|
<?if($delivery_id > 1):?>
|
||||||
|
|
||||||
<p style="font-weight: bold;font-size: 22px;"><label for="buy_adress">Ваше имя:</label><br></p>
|
<p style="font-weight: bold;font-size: 22px;"><label for="buy_adress">Фамилия, имя, отчество:</label><br></p>
|
||||||
<p><input id="buy_name" name="buy_name" value="<?=post_value("buy_name")?>" type="text"></p>
|
<p><input id="buy_name" name="buy_name" value="<?=post_value("buy_name")?>" type="text"></p>
|
||||||
|
|
||||||
<p style="font-weight: bold;font-size: 22px;"><label for="buy_tel">Телефон для связи*:</label></p>
|
<p style="font-weight: bold;font-size: 22px;"><label for="buy_tel">Телефон для связи*:</label></p>
|
||||||
@@ -70,8 +80,8 @@
|
|||||||
<?endforeach?>
|
<?endforeach?>
|
||||||
|
|
||||||
<div id="form_samo" class="adress_box" style="display: <?= ($delivery_id == 2) ? 'block' : 'none' ?>;">
|
<div id="form_samo" class="adress_box" style="display: <?= ($delivery_id == 2) ? 'block' : 'none' ?>;">
|
||||||
<p style="margin:0px;">Адрес:</p>
|
<p>Москва, метро "Аэропорт", Авиационный переулок, д. 4А (здание МФЮА), к. 104</p>
|
||||||
<p>Москва, Авиационный переулок, д. 4А</p>
|
<p>Мы работаем пн.-пт. c 10:00 - 18:00</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="form_adress" class="adress_box" style="display: <?= ($delivery_id == 3 or $delivery_id == 4) ? 'block' : 'none' ?>;">
|
<div id="form_adress" class="adress_box" style="display: <?= ($delivery_id == 3 or $delivery_id == 4) ? 'block' : 'none' ?>;">
|
||||||
@@ -79,12 +89,19 @@
|
|||||||
<p><textarea id="buy_adress" style="width:100%;height:70px;font-size:15px;" name="buy_adress" placeholder="Адрес в свободной форме" value="<?=post_value("buy_adress")?>"></textarea></p>
|
<p><textarea id="buy_adress" style="width:100%;height:70px;font-size:15px;" name="buy_adress" placeholder="Адрес в свободной форме" value="<?=post_value("buy_adress")?>"></textarea></p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div>
|
||||||
|
<p>Телефоны для консультаций: <strong>8(495)980-45-60</strong>, <strong><a href="tel:+79686365180">8(958)636-51-80</a></strong></p>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div id="form_pay">
|
<div id="form_pay">
|
||||||
<p style="font-weight: bold;font-size: 22px;"><label for="buy_adress">Оплата:</label></p>
|
<p style="font-weight: bold;font-size: 22px;"><label for="buy_adress">Оплата:</label></p>
|
||||||
|
|
||||||
<?foreach($pay_ids as $pkey=>$pitem):?>
|
<?foreach($pay_ids as $pkey=>$pitem):?>
|
||||||
<?$p++;
|
<?$p++;
|
||||||
$pchecked = ($pkey == $pay_id) ? ' checked': '';?>
|
$pchecked = ($pkey == $pay_id) ? ' checked': '';?>
|
||||||
|
<? if ($pkey == 2):?>
|
||||||
<p><input name="pay_id" type="radio" value="<?=$pkey?>" id="pay_id<?=$p?>" <?=$pchecked?>><?=$pitem?></p>
|
<p><input name="pay_id" type="radio" value="<?=$pkey?>" id="pay_id<?=$p?>" <?=$pchecked?>><?=$pitem?></p>
|
||||||
|
<?endif?>
|
||||||
<?endforeach?>
|
<?endforeach?>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user