주문하실 상품을 확인하세요.
| 상품이미지 |
상품명 |
총수량 |
판매가 |
쿠폰 |
소계 |
포인트 |
배송비 |
0)
$good_info .= chr(30);
$good_info .= "seq=".($i+1).chr(31);
$good_info .= "ordr_numb={$od_id}_".sprintf("%04d", $i).chr(31);
$good_info .= "good_name=".addslashes($row['it_name']).chr(31);
$good_info .= "good_cntx=".$row['ct_qty'].chr(31);
$good_info .= "good_amtx=".$row['ct_price'].chr(31);
}
$image = get_it_image($row['it_id'], 50, 50);
$it_name = '' . stripslashes($row['it_name']) . '';
$it_options = print_item_options($row['it_id'], $s_cart_id);
if($it_options) {
$it_name .= ''.$it_options.'
';
}
// 복합과세금액
if($default['de_tax_flag_use']) {
if($row['it_notax']) {
$comm_free_mny += $sum['price'];
} else {
$tot_tax_mny += $sum['price'];
}
}
$point = $sum['point'];
$sell_price = $sum['price'];
// 쿠폰
if($is_member) {
$cp_button = '';
$cp_count = 0;
$sql = " select cp_id
from {$g5['g5_shop_coupon_table']}
where mb_id IN ( '{$member['mb_id']}', '전체회원' )
and cp_start <= '".G5_TIME_YMD."'
and cp_end >= '".G5_TIME_YMD."'
and cp_minimum <= '$sell_price'
and (
( cp_method = '0' and cp_target = '{$row['it_id']}' )
OR
( cp_method = '1' and ( cp_target IN ( '{$row['ca_id']}', '{$row['ca_id2']}', '{$row['ca_id3']}' ) ) )
) ";
$res = sql_query($sql);
for($k=0; $cp=sql_fetch_array($res); $k++) {
if(is_used_coupon($member['mb_id'], $cp['cp_id']))
continue;
$cp_count++;
}
if($cp_count) {
$cp_button = '';
$it_cp_count++;
}
}
// 배송비
switch($row['ct_send_cost'])
{
case 1:
$ct_send_cost = '착불';
break;
case 2:
$ct_send_cost = '무료';
break;
default:
$ct_send_cost = '선불';
break;
}
// 조건부무료
if($row['it_sc_type'] == 2) {
$sendcost = get_item_sendcost($row['it_id'], $sum['price'], $sum['qty'], $s_cart_id);
if($sendcost == 0)
$ct_send_cost = '무료';
}
?>
|
|
|
|
|
|
|
|
장바구니에 담긴 상품이 없습니다. | ';
alert('장바구니가 비어 있습니다.', G5_SHOP_URL.'/cart.php');
} else {
// 배송비 계산
$send_cost = get_sendcost($s_cart_id);
}
// 복합과세처리
if($default['de_tax_flag_use']) {
$comm_tax_mny = round(($tot_tax_mny + $send_cost) / 1.1);
$comm_vat_mny = ($tot_tax_mny + $send_cost) - $comm_tax_mny;
}
?>
- 주문
- 원
0) { ?>
- 쿠폰할인
- 0 원
- 배송비
- 원
- 총계
-
원
- 포인트
- 점
= '".G5_TIME_YMD."'
and cp_minimum <= '$tot_sell_price' ";
$res = sql_query($sql);
for($k=0; $cp=sql_fetch_array($res); $k++) {
if(is_used_coupon($member['mb_id'], $cp['cp_id']))
continue;
$oc_cnt++;
}
if($send_cost > 0) {
// 배송비쿠폰
$sql = " select cp_id
from {$g5['g5_shop_coupon_table']}
where mb_id IN ( '{$member['mb_id']}', '전체회원' )
and cp_method = '3'
and cp_start <= '".G5_TIME_YMD."'
and cp_end >= '".G5_TIME_YMD."'
and cp_minimum <= '$tot_sell_price' ";
$res = sql_query($sql);
for($k=0; $cp=sql_fetch_array($res); $k++) {
if(is_used_coupon($member['mb_id'], $cp['cp_id']))
continue;
$sc_cnt++;
}
}
}
?>