쿠폰존 추가

This commit is contained in:
chicpro
2016-09-09 13:57:57 +09:00
parent ac89a2d512
commit 6e1aa4ac0c
27 changed files with 1446 additions and 9 deletions

View File

@ -2220,6 +2220,21 @@ function make_order_field($data, $exclude)
return $field;
}
// 다운로드한 쿠폰인지
function is_coupon_downloaded($mb_id, $cz_id)
{
global $g5;
if(!$mb_id)
return false;
$sql = " select count(*) as cnt from {$g5['g5_shop_coupon_table']} where mb_id = '$mb_id' and cz_id = '$cz_id' ";
$row = sql_fetch($sql);
return ($row['cnt'] > 0);
}
//==============================================================================
// 쇼핑몰 라이브러리 모음 끝
//==============================================================================