장바구니 추가시 포인트 계산 get_item_point 함수로 변경

This commit is contained in:
chicpro
2013-06-11 09:43:25 +09:00
parent d0df1bba57
commit 86d8df337f

View File

@ -271,11 +271,7 @@ else // 장바구니에 담기
if ((int)$_POST['total_price'] !== (int)$total_price)
die("Error..");
if($it['it_point_type']) {
$point = floor(($it['it_price'] * ($it['it_point'] / 100) / 10)) * 10;
} else {
$point = $it['it_point'];
}
$point = get_item_point($it);
// 포인트가 다름
if ((int)$point !== (int)$_POST['it_point'] && $config['cf_use_point'])
die("Error...");