#292 쿠폰 로그 테이블 추가하여 내역을 기록함

This commit is contained in:
chicpro
2013-09-12 11:39:43 +09:00
parent 5b622a1e32
commit e5758b4466
12 changed files with 241 additions and 150 deletions

View File

@ -1603,6 +1603,22 @@ function get_order_misu($od_id)
return $od['misu'];
}
// 쿠폰 사용체크
function is_used_coupon($mb_id, $cp_id)
{
global $g4;
$used = false;
$sql = " select count(*) as cnt from {$g4['shop_coupon_log_table']} where mb_id = '$mb_id' and cp_id = '$cp_id' ";
$row = sql_fetch($sql);
if($row['cnt'])
$used = true;
return $used;
}
//==============================================================================
// 쇼핑몰 라이브러리 모음 끝
//==============================================================================