장바구니 보관기간 계산 코드 수정

This commit is contained in:
chicpro
2013-11-11 16:19:01 +09:00
parent b0f5e46974
commit 5b08f7ba44
5 changed files with 5 additions and 5 deletions

View File

@ -343,7 +343,7 @@ function get_cart_count($cart_id)
$sql = " select count(ct_id) as cnt from {$g5['g5_shop_cart_table']} where od_id = '$cart_id' ";
if($default['de_cart_keep_term']) {
$ctime = date('Y-m-d H:i:s', G5_SERVER_TIME - ($default['de_cart_keep_term'] * 86400));
$ctime = date('Y-m-d H:i:s', G5_SERVER_TIME - (($default['de_cart_keep_term'] - 1) * 86400));
$sql .= " and ct_time > '$ctime' ";
}
$row = sql_fetch($sql);