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