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

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

@ -1,6 +1,9 @@
<?php
include_once('./_common.php');
// 보관기간이 지난 상품 삭제
cart_item_clean();
// cart id 설정
set_cart_id($sw_direct);
@ -63,10 +66,6 @@ include_once('./_head.php');
b.ca_id3
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', 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);