Merge branch 'master' of ssh://gl.arguments.ru:2224/ak/anpdf
This commit is contained in:
@@ -159,18 +159,15 @@ function checkout_kuri($priceslug, $delivery_id = 1){
|
|||||||
|
|
||||||
$price = $price_id['offline_price']; // бумажный прайс
|
$price = $price_id['offline_price']; // бумажный прайс
|
||||||
|
|
||||||
if ($delivery_id == 2){ #самовывоз
|
$price = $price * $count;
|
||||||
$price = $price * $count;
|
|
||||||
}
|
$delivery = db_get("SELECT * FROM `delivery` WHERE `delivery_id` = '$delivery_id' LIMIT 1");
|
||||||
elseif($delivery_id == 3){ #курьером 300рэ
|
|
||||||
$price = $price * $count;
|
if (isset($delivery['delivery_id']) and $delivery['delivery_price'] !== '0.00' ) {
|
||||||
$price = $price + 300;
|
$price = $price + $delivery['delivery_price'] ;
|
||||||
}
|
|
||||||
elseif($delivery_id == 4){ #почта россии за каждый кулек своя доставка
|
|
||||||
$price = $price + 300;
|
|
||||||
$price = $price * $count;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}else{
|
}else{
|
||||||
echo 'Товара больше нет в наличии';
|
echo 'Товара больше нет в наличии';
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user