correct delist order.php
This commit is contained in:
@@ -51,8 +51,6 @@ function checkout_kuri($priceslug, $delivery_id = 1){
|
|||||||
$delivery = delivery_list($price_id['weight']); // список доставок для бумажной версии
|
$delivery = delivery_list($price_id['weight']); // список доставок для бумажной версии
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/** если клиент залогинен */
|
/** если клиент залогинен */
|
||||||
if (defined('CLIENT_ID')){
|
if (defined('CLIENT_ID')){
|
||||||
|
|
||||||
@@ -314,16 +312,7 @@ function delivery_list($weight = 250) {
|
|||||||
foreach ($delivery as $del){
|
foreach ($delivery as $del){
|
||||||
|
|
||||||
$key = $del['delivery_id'];
|
$key = $del['delivery_id'];
|
||||||
$result[$key] = $del;
|
$result[$key] = $del;
|
||||||
|
|
||||||
if ($del['delivery_id'] == 4){
|
|
||||||
if ($weight > 499){
|
|
||||||
$result[$key]['delivery_price'] = 450;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user