장바구니 보관기간 설정 오류 수정
This commit is contained in:
@ -62,8 +62,8 @@ include_once('./_head.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' ";
|
||||
if($default['de_cart_keep_term']) {
|
||||
$ctime = date('Y-m-d H:i:s', G5_SERVER_TIME - (($default['de_cart_keep_term'] - 1) * 86400));
|
||||
$sql .= " and a.ct_time > '$ctime' ";
|
||||
$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 ";
|
||||
|
||||
Reference in New Issue
Block a user