diff --git a/mobile/shop/orderform.php b/mobile/shop/orderform.php index b78b250c6..23bf667b4 100644 --- a/mobile/shop/orderform.php +++ b/mobile/shop/orderform.php @@ -469,8 +469,9 @@ require_once(G5_MSHOP_PATH.'/'.$default['de_pg_service'].'/orderform.1.php'); from {$g5['g5_shop_coupon_table']} where mb_id IN ( '{$member['mb_id']}', '전체회원' ) and cp_method = '2' - and cp_start <= '".G5_TIM_YMD."' - and cp_end >= '".G5_TIME_YMD."' "; + 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++) { @@ -486,7 +487,7 @@ require_once(G5_MSHOP_PATH.'/'.$default['de_pg_service'].'/orderform.1.php'); from {$g5['g5_shop_coupon_table']} where mb_id IN ( '{$member['mb_id']}', '전체회원' ) and cp_method = '3' - and cp_start <= '".G5_TIM_YMD."' + and cp_start <= '".G5_TIME_YMD."' and cp_end >= '".G5_TIME_YMD."' "; $res = sql_query($sql); diff --git a/shop/orderform.php b/shop/orderform.php index 918c9dfd7..6dbda2e78 100644 --- a/shop/orderform.php +++ b/shop/orderform.php @@ -494,8 +494,9 @@ require_once('./'.$default['de_pg_service'].'/orderform.1.php'); from {$g5['g5_shop_coupon_table']} where mb_id IN ( '{$member['mb_id']}', '전체회원' ) and cp_method = '2' - and cp_start <= '".G5_TIM_YMD."' - and cp_end >= '".G5_TIME_YMD."' "; + 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++) { @@ -511,7 +512,7 @@ require_once('./'.$default['de_pg_service'].'/orderform.1.php'); from {$g5['g5_shop_coupon_table']} where mb_id IN ( '{$member['mb_id']}', '전체회원' ) and cp_method = '3' - and cp_start <= '".G5_TIM_YMD."' + and cp_start <= '".G5_TIME_YMD."' and cp_end >= '".G5_TIME_YMD."' "; $res = sql_query($sql);