correct gramm formula

This commit is contained in:
Name
2022-02-03 18:12:53 +03:00
parent 1b5dd9971b
commit 80df1b5d2a

View File

@@ -48,7 +48,7 @@ function checkout_kuri($priceslug, $delivery_id = 1){
}
else {
$price = $price_id['offline_price']; // бумажный прайс
$delivery = delivery_list(); // список доставок для бумажной версии
$delivery = delivery_list($price_id['weight']); // список доставок для бумажной версии
}
@@ -308,7 +308,7 @@ function status_kuri($order_id){
}
function delivery_list() {
function delivery_list($weight = 250) {
$result = [];
@@ -319,6 +319,15 @@ function delivery_list() {
$key = $del['delivery_id'];
$result[$key] = $del;
if ($del['delivery_id'] == 4){
if ($weight > 250){
$result[$key]['delivery_price'] = 450;
}
}
}
return $result;