Merge branch 'master' of ssh://gl.arguments.ru:2224/ak/anpdf

This commit is contained in:
arlemp@selectel.ru
2022-10-07 21:16:54 +03:00

View File

@@ -1,7 +1,14 @@
<?if ($price_id['weight'] > 499){
$postprice = 450;
}
else {
$postprice = 300;
}?>
<script>
var product_price = <?=$price_id['offline_price']?>;
var postprice = <?=$postprice?>;
function itog(){
@@ -18,7 +25,7 @@
itog = itog + 300;
}
else if (document.getElementById('devilery_id3').checked){
itog = product_price + 300;
itog = product_price + postprice;
itog = itog * count;
}
@@ -100,7 +107,9 @@
$checked = ($ditem['delivery_id'] == $delivery_id) ? ' checked': '';?>
<p><input name="delivery_id" type="radio" id="devilery_id<?=$dd?>" onclick="devilery_check();" value="<?=$ditem['delivery_id']?>"<?=$checked?>>
<?=$ditem['delivery']?>
<?if ($ditem['delivery_price'] > 0):?>
<?if ($ditem['delivery_id'] == 4):?>
+ <?= $postprice?> руб.
<?elseif ($ditem['delivery_price'] > 0):?>
+ <?=$ditem['delivery_price']?> руб.
<?endif?>
</p>