g4를 g5로 변경
This commit is contained in:
@ -20,7 +20,7 @@ else if($default['de_send_cost_case'] == '상한')
|
||||
$delivery = (int)$tmp[0];
|
||||
}
|
||||
|
||||
$sql =" select * from {$g4['shop_item_table']} where it_use = '1' order by ca_id";
|
||||
$sql =" select * from {$g5['shop_item_table']} where it_use = '1' order by ca_id";
|
||||
$result = sql_query($sql);
|
||||
|
||||
for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
@ -35,24 +35,24 @@ for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
$ca_name4 = "";
|
||||
|
||||
$ca_id1 = substr($row['ca_id'],0,2);
|
||||
$row2 = sql_fetch(" select ca_name from {$g4['shop_category_table']} where ca_id = '$ca_id1' ");
|
||||
$row2 = sql_fetch(" select ca_name from {$g5['shop_category_table']} where ca_id = '$ca_id1' ");
|
||||
$ca_name1 = $row2['ca_name'];
|
||||
|
||||
if (strlen($row['ca_id']) >= 4) {
|
||||
$ca_id2 = substr($row['ca_id'],0,4);
|
||||
$row2 = sql_fetch(" select ca_name from {$g4['shop_category_table']} where ca_id = '$ca_id2' ");
|
||||
$row2 = sql_fetch(" select ca_name from {$g5['shop_category_table']} where ca_id = '$ca_id2' ");
|
||||
$ca_name2 = $row2['ca_name'];
|
||||
}
|
||||
|
||||
if (strlen($row['ca_id']) >= 6) {
|
||||
$ca_id3 = substr($row['ca_id'],0,6);
|
||||
$row2 = sql_fetch(" select ca_name from {$g4['shop_category_table']} where ca_id = '$ca_id3' ");
|
||||
$row2 = sql_fetch(" select ca_name from {$g5['shop_category_table']} where ca_id = '$ca_id3' ");
|
||||
$ca_name3 = $row2['ca_name'];
|
||||
}
|
||||
|
||||
if (strlen($row['ca_id']) >= 8) {
|
||||
$ca_id4 = substr($row['ca_id'],0,8);
|
||||
$row2 = sql_fetch(" select ca_name from {$g4['shop_category_table']} where ca_id = '$ca_id4' ");
|
||||
$row2 = sql_fetch(" select ca_name from {$g5['shop_category_table']} where ca_id = '$ca_id4' ");
|
||||
$ca_name4 = $row2['ca_name'];
|
||||
}
|
||||
|
||||
@ -62,13 +62,13 @@ for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
$img_url = get_it_imageurl($row['it_id']);
|
||||
|
||||
// 상품별옵션
|
||||
$sql = " select * from {$g4['shop_item_option_table']} where it_id = '{$row['it_id']}' and io_type = '0' and io_use = '1' order by io_no asc ";
|
||||
$sql = " select * from {$g5['shop_item_option_table']} where it_id = '{$row['it_id']}' and io_type = '0' and io_use = '1' order by io_no asc ";
|
||||
$result2 = sql_query($sql);
|
||||
$opt_count = @mysql_num_rows($result2);
|
||||
|
||||
if(!$opt_count) {
|
||||
$it_name = $row['it_name'];
|
||||
$buy_url = G4_SHOP_URL.'/itembuy.php?it_id='.$row['it_id'];
|
||||
$buy_url = G5_SHOP_URL.'/itembuy.php?it_id='.$row['it_id'];
|
||||
if($default['de_send_cost_case'] == '개별' && $row['it_sc_method'] != 1)
|
||||
$delivery = get_item_sendcost($row['it_id'], $row['it_price'], 1);
|
||||
$it_price = $row['it_price'];
|
||||
@ -113,7 +113,7 @@ echo "\r\n";
|
||||
$it_name .= $sep.$subj[$j].':'.$opt[$j];
|
||||
$sep = ' ';
|
||||
}
|
||||
$buy_url = G4_SHOP_URL.'/itembuy.php?it_id='.$row['it_id'].'&opt='.$row2['io_id'];
|
||||
$buy_url = G5_SHOP_URL.'/itembuy.php?it_id='.$row['it_id'].'&opt='.$row2['io_id'];
|
||||
$it_price = $row['it_price'] + $row2['io_price'];
|
||||
if($default['de_send_cost_case'] == '개별' && $row['it_sc_method'] != 1)
|
||||
$delivery = get_item_sendcost($row['it_id'], ($row['it_price'] + $row2['io_price']), 1);
|
||||
|
||||
Reference in New Issue
Block a user