경로 수정 작업
This commit is contained in:
@ -41,18 +41,18 @@ $lt = "<<<";
|
||||
$gt = ">>>";
|
||||
|
||||
// 배송비
|
||||
if ($default[de_send_cost_case] == '없음') {
|
||||
if ($default['de_send_cost_case'] == '없음') {
|
||||
$send_cost = 0;
|
||||
}
|
||||
else {
|
||||
// 배송비 상한일 경우 제일 앞에 배송비
|
||||
$send_cost_limit = explode(";", $default[de_send_cost_limit]);
|
||||
$send_cost_list = explode(";", $default[de_send_cost_list]);
|
||||
$send_cost_limit = explode(";", $default['de_send_cost_limit']);
|
||||
$send_cost_list = explode(";", $default['de_send_cost_list']);
|
||||
$cost_limit = (int)$send_cost_limit[0];
|
||||
$send_cost = (int)$send_cost_list[0];
|
||||
}
|
||||
|
||||
$sql =" select * from $g4[yc4_item_table] where it_use = '1' order by ca_id";
|
||||
$sql =" select * from {$g4['yc4_item_table']} where it_use = '1' order by ca_id";
|
||||
$result = sql_query($sql);
|
||||
|
||||
for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
@ -60,34 +60,34 @@ for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
$cate1 = $cate2 = $cate3 = $cate4 = "";
|
||||
$caid1 = $caid2 = $caid3 = $caid4 = "";
|
||||
|
||||
$caid1 = substr($row[ca_id],0,2);
|
||||
$row2 = sql_fetch(" select ca_name from $g4[yc4_category_table] where ca_id = '$caid1' ");
|
||||
$cate1 = $row2[ca_name];
|
||||
$caid1 = substr($row['ca_id'],0,2);
|
||||
$row2 = sql_fetch(" select ca_name from {$g4['yc4_category_table']} where ca_id = '$caid1' ");
|
||||
$cate1 = $row2['ca_name'];
|
||||
|
||||
$caid2 = $caid3 = $caid4 = "";
|
||||
$cate2 = $cate3 = $cate4 = "";
|
||||
|
||||
if (strlen($row[ca_id]) >= 8) {
|
||||
$caid4 = substr($row[ca_id],0,8);
|
||||
$row2 = sql_fetch(" select ca_name from $g4[yc4_category_table] where ca_id = '$caid4' ");
|
||||
$cate4 = $row2[ca_name];
|
||||
if (strlen($row['ca_id']) >= 8) {
|
||||
$caid4 = substr($row['ca_id'],0,8);
|
||||
$row2 = sql_fetch(" select ca_name from {$g4['yc4_category_table']} where ca_id = '$caid4' ");
|
||||
$cate4 = $row2['ca_name'];
|
||||
}
|
||||
|
||||
if (strlen($row[ca_id]) >= 6) {
|
||||
$caid3 = substr($row[ca_id],0,6);
|
||||
$row2 = sql_fetch(" select ca_name from $g4[yc4_category_table] where ca_id = '$caid3' ");
|
||||
$cate3 = $row2[ca_name];
|
||||
if (strlen($row['ca_id']) >= 6) {
|
||||
$caid3 = substr($row['ca_id'],0,6);
|
||||
$row2 = sql_fetch(" select ca_name from {$g4['yc4_category_table']} where ca_id = '$caid3' ");
|
||||
$cate3 = $row2['ca_name'];
|
||||
}
|
||||
|
||||
if (strlen($row[ca_id]) >= 4) {
|
||||
$caid2 = substr($row[ca_id],0,4);
|
||||
$row2 = sql_fetch(" select ca_name from $g4[yc4_category_table] where ca_id = '$caid2' ");
|
||||
$cate2 = $row2[ca_name];
|
||||
if (strlen($row['ca_id']) >= 4) {
|
||||
$caid2 = substr($row['ca_id'],0,4);
|
||||
$row2 = sql_fetch(" select ca_name from {$g4['yc4_category_table']} where ca_id = '$caid2' ");
|
||||
$cate2 = $row2['ca_name'];
|
||||
}
|
||||
|
||||
// 배송비 상한가 미만이면 배송비 적용
|
||||
$delivery = 0;
|
||||
if ($row[it_amount] < $cost_limit) {
|
||||
if ($row['it_amount'] < $cost_limit) {
|
||||
$delivery = $send_cost;
|
||||
}
|
||||
|
||||
@ -127,9 +127,7 @@ $content = ob_get_contents();
|
||||
ob_end_clean();
|
||||
|
||||
// 091223 : 네이버에서는 아직 utf-8 을 지원하지 않고 있음
|
||||
if (strtolower($g4[charset]) == 'utf-8') {
|
||||
$content = iconv('utf-8', 'euc-kr', $content);
|
||||
}
|
||||
$content = iconv('utf-8', 'euc-kr', $content);
|
||||
|
||||
echo $content;
|
||||
?>
|
||||
Reference in New Issue
Block a user