correct gramm
This commit is contained in:
@@ -113,8 +113,10 @@ function client_status_sub($client_id, $client_group = 3){
|
||||
}
|
||||
|
||||
$findsql = "SELECT number_id FROM `anbuy` WHERE `client_id` = '$client_id' AND `number_id` = '486' AND `buy_status` = '1' LIMIT 1";
|
||||
|
||||
// echo $findsql;
|
||||
$findsub = db_get($findsql);
|
||||
|
||||
//print_r($findsub);
|
||||
|
||||
if (isset($findsub['number_id'])){
|
||||
return True;
|
||||
|
||||
@@ -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,17 +308,26 @@ function status_kuri($order_id){
|
||||
}
|
||||
|
||||
|
||||
function delivery_list() {
|
||||
function delivery_list($weight = 250) {
|
||||
|
||||
$result = [];
|
||||
|
||||
$delivery = db_get("SELECT * FROM delivery WHERE delivery_id > 1");
|
||||
|
||||
foreach ($delivery as $del){
|
||||
|
||||
|
||||
$key = $del['delivery_id'];
|
||||
$result[$key] = $del;
|
||||
|
||||
if ($del['delivery_id'] == 4){
|
||||
if ($weight > 250){
|
||||
$result[$key]['delivery_price'] = 450;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
return $result;
|
||||
|
||||
@@ -50,6 +50,7 @@ function pdfs_init($source, $page = 1){
|
||||
|
||||
$name = pdfs_hash($source);
|
||||
$cachedir = PGDIR.$name.'/';
|
||||
//echo $cachedir;
|
||||
$cachefile = $name.'-'.$page.'.pdf';
|
||||
$fullcachefile = $cachedir.$cachefile;
|
||||
|
||||
|
||||
@@ -71,8 +71,9 @@
|
||||
<p><em>*Куда придет информация о заказе</em></p>
|
||||
|
||||
<p><input style="border: solid 1px #ccc;border-radius:3px;" type="email" id="clientemail" name="clientmail" value="<?=post_value("clientmail")?>"></p>
|
||||
|
||||
|
||||
<?if($delivery_id > 1):?>
|
||||
|
||||
|
||||
<p style="font-weight: bold;font-size: 22px;"><label for="buy_adress">Фамилия, имя, отчество:</label><br></p>
|
||||
<p><input id="buy_name" name="buy_name" value="<?=post_value("buy_name")?>" type="text"></p>
|
||||
|
||||
Reference in New Issue
Block a user