포인트지급 기준금액 및 추가옵션 지급 포인트 설정 추가

This commit is contained in:
chicpro
2014-03-11 15:53:55 +09:00
parent 35318b54bf
commit d36a5a3fc1
12 changed files with 81 additions and 34 deletions

View File

@ -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'].'&amp;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;

View File

@ -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'].'&amp;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}

View File

@ -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'].'&amp;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}