보관기간 지난 장바구니 상품 삭제 코드 변경

This commit is contained in:
chicpro
2014-10-31 13:23:22 +09:00
parent c38349b2e4
commit 75490c8767
6 changed files with 19 additions and 31 deletions

View File

@ -96,10 +96,6 @@ require_once('./'.$default['de_pg_service'].'/orderform.1.php');
from {$g5['g5_shop_cart_table']} a left join {$g5['g5_shop_item_table']} b on ( a.it_id = b.it_id )
where a.od_id = '$s_cart_id'
and a.ct_select = '1' ";
if($default['de_cart_keep_term']) {
$ctime = date('Y-m-d', G5_SERVER_TIME - ($default['de_cart_keep_term'] * 86400));
$sql .= " and substring(a.ct_time, 1, 10) >= '$ctime' ";
}
$sql .= " group by a.it_id ";
$sql .= " order by a.ct_id ";
$result = sql_query($sql);