장바구니 보관기간 설정 오류 수정

This commit is contained in:
chicpro
2014-02-05 09:50:02 +09:00
parent 199a964b1f
commit 18150c193d
6 changed files with 16 additions and 16 deletions

View File

@ -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 ";