포인트지급 기준금액 및 추가옵션 지급 포인트 설정 추가
This commit is contained in:
@ -141,11 +141,6 @@ else // 장바구니에 담기
|
||||
$lst_count++;
|
||||
}
|
||||
|
||||
// 포인트
|
||||
$point = 0;
|
||||
if($config['cf_use_point'])
|
||||
$point = get_item_point($it);
|
||||
|
||||
//--------------------------------------------------------
|
||||
// 재고 검사
|
||||
//--------------------------------------------------------
|
||||
@ -240,6 +235,19 @@ else // 장바구니에 담기
|
||||
continue;
|
||||
}
|
||||
|
||||
// 포인트
|
||||
$point = 0;
|
||||
if($config['cf_use_point']) {
|
||||
if($io_type == 0) {
|
||||
$point = get_item_point($it, $io_id);
|
||||
} else {
|
||||
$point = $it['it_supply_point'];
|
||||
}
|
||||
|
||||
if($point < 0)
|
||||
$point = 0;
|
||||
}
|
||||
|
||||
// 배송비결제
|
||||
if($it['it_sc_type'] == 1)
|
||||
$ct_send_cost = 2; // 무료
|
||||
|
||||
@ -99,14 +99,7 @@ for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
$catename2 = $row2['ca_name'];
|
||||
}
|
||||
|
||||
// 배송비 상한가 미만이면 배송비 적용
|
||||
$delivery = 0;
|
||||
if ($row['it_price'] < $cost_limit) {
|
||||
$delivery = $send_cost;
|
||||
}
|
||||
|
||||
$pdate = date("Ymd", strtotime($row['it_time']));
|
||||
$point = get_item_point($row);
|
||||
|
||||
// 상품이미지
|
||||
$img_url = get_it_imageurl($row['it_id']);
|
||||
@ -121,6 +114,7 @@ for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
$buy_url = G5_SHOP_URL.'/itembuy.php?it_id='.$row['it_id'];
|
||||
$it_price = $row['it_price'];
|
||||
$delivery = get_item_sendcost2($row['it_id'], $it_price, 1);
|
||||
$point = get_item_point($row);
|
||||
|
||||
if($delivery) {
|
||||
$deliv = 1;
|
||||
@ -167,6 +161,7 @@ HEREDOC;
|
||||
$buy_url = G5_SHOP_URL.'/itembuy.php?it_id='.$row['it_id'].'&opt='.$row2['io_id'];
|
||||
$it_price = $row['it_price'] + $row2['io_price'];
|
||||
$delivery = get_item_sendcost2($row['it_id'], $it_price, 1);
|
||||
$point = get_item_point($row, $row2['io_id']);
|
||||
|
||||
if($delivery) {
|
||||
$deliv = $delivery;
|
||||
|
||||
@ -76,9 +76,6 @@ for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
// 상품이미지
|
||||
$img_url = get_it_imageurl($row['it_id']);
|
||||
|
||||
// 포인트
|
||||
$it_point = get_item_point($row);
|
||||
|
||||
// 상품별옵션
|
||||
$sql = " select * from {$g5['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);
|
||||
@ -89,6 +86,7 @@ for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
$buy_url = G5_SHOP_URL.'/itembuy.php?it_id='.$row['it_id'];
|
||||
$it_price = $row['it_price'];
|
||||
$delivery = get_item_sendcost2($row['it_id'], $it_price, 1);
|
||||
$it_point = get_item_point($row);
|
||||
|
||||
echo <<< HEREDOC
|
||||
{$lt}begin{$gt}
|
||||
@ -134,6 +132,7 @@ HEREDOC;
|
||||
$buy_url = G5_SHOP_URL.'/itembuy.php?it_id='.$row['it_id'].'&opt='.$row2['io_id'];
|
||||
$it_price = $row['it_price'] + $row2['io_price'];
|
||||
$delivery = get_item_sendcost2($row['it_id'], $it_price, 1);
|
||||
$it_point = get_item_point($row, $row2['io_id']);
|
||||
|
||||
echo <<< HEREDOC
|
||||
{$lt}begin{$gt}
|
||||
|
||||
@ -77,9 +77,6 @@ for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
// 상품이미지
|
||||
$img_url = get_it_imageurl($row['it_id']);
|
||||
|
||||
// 포인트
|
||||
$it_point = get_item_point($row);
|
||||
|
||||
// 상품별옵션
|
||||
$sql = " select * from {$g5['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);
|
||||
@ -90,6 +87,7 @@ for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
$buy_url = G5_SHOP_URL.'/itembuy.php?it_id='.$row['it_id'];
|
||||
$it_price = $row['it_price'];
|
||||
$delivery = get_item_sendcost2($row['it_id'], $it_price, 1);
|
||||
$it_point = get_item_point($row);
|
||||
|
||||
echo <<< HEREDOC
|
||||
{$lt}begin{$gt}
|
||||
@ -135,6 +133,7 @@ HEREDOC;
|
||||
$buy_url = G5_SHOP_URL.'/itembuy.php?it_id='.$row['it_id'].'&opt='.$row2['io_id'];
|
||||
$it_price = $row['it_price'] + $row2['io_price'];
|
||||
$delivery = get_item_sendcost2($row['it_id'], $it_price, 1);
|
||||
$it_point = get_item_point($row, $row2['io_id']);
|
||||
|
||||
echo <<< HEREDOC
|
||||
{$lt}begin{$gt}
|
||||
|
||||
@ -50,7 +50,6 @@ include_once('./_head.php');
|
||||
if ($row['it_tel_inq']) $out_cd = 'tel_inq';
|
||||
|
||||
$image = get_it_image($row['it_id'], 70, 70);
|
||||
$it_point = get_item_point($row);
|
||||
?>
|
||||
|
||||
<tr>
|
||||
|
||||
Reference in New Issue
Block a user