Merge branch 'master' of ssh://gl.arguments.ru:2224/ak/anpdf
This commit is contained in:
@@ -8,23 +8,20 @@
|
||||
var itog = product_price;
|
||||
var itog_el = document.getElementById("span_itog");
|
||||
var count = document.getElementById('count').value;
|
||||
|
||||
|
||||
if (document.getElementById('devilery_id1').checked) {
|
||||
itog = product_price * count;
|
||||
}
|
||||
else if (document.getElementById('devilery_id2').checked){
|
||||
itog = product_price * count;
|
||||
itog = itog + 300;
|
||||
}
|
||||
else if (document.getElementById('devilery_id3').checked){
|
||||
itog = product_price + 300;
|
||||
itog = itog * count;
|
||||
}
|
||||
else if (document.getElementById('devilery_id4').checked){
|
||||
itog = product_price + 450;
|
||||
itog = itog * count;
|
||||
}
|
||||
|
||||
<?foreach($delivery as $ditem):?>
|
||||
<?$nn++;?>
|
||||
<? if($nn == 1): ?>
|
||||
if (document.getElementById('devilery_id<?=$nn?>').checked) {
|
||||
<?else:?>
|
||||
else if (document.getElementById('devilery_id<?=$nn?>').checked){
|
||||
<?endif?>
|
||||
itog = product_price * count;
|
||||
<?if ($ditem['delivery_price'] !== '0.00'):?>
|
||||
itog = itog + <?=$ditem['delivery_price']?>;
|
||||
<?endif?>
|
||||
|
||||
<?endforeach?>
|
||||
|
||||
itog_el.innerHTML = itog + ' руб.';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user