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

This commit is contained in:
arlemp@selectel.ru
2022-10-08 19:57:56 +03:00
2 changed files with 20 additions and 26 deletions

View File

@@ -51,8 +51,6 @@ function checkout_kuri($priceslug, $delivery_id = 1){
$delivery = delivery_list($price_id['weight']); // список доставок для бумажной версии
}
/** если клиент залогинен */
if (defined('CLIENT_ID')){
@@ -314,16 +312,7 @@ function delivery_list($weight = 250) {
foreach ($delivery as $del){
$key = $del['delivery_id'];
$result[$key] = $del;
if ($del['delivery_id'] == 4){
if ($weight > 499){
$result[$key]['delivery_price'] = 450;
}
}
$result[$key] = $del;
}