기존 영카트 주문기록 소스(orderupdate.php)를 보면 다음과 같습니다.
$od_receipt_bank = (int)str_replace(",", "", $od_receipt_bank);
$od_receipt_card = (int)str_replace(",", "", $od_receipt_card);
if ($od_settle_case == "무통장")
{
$od_temp_point = (int)str_replace(",", "", $od_temp_point);
$od_receipt_point = (int)str_replace(",", "", $od_temp_point);
}
else
{
$od_temp_point = (int)str_replace(",", "", $od_temp_point);
$od_receipt_point = 0;
}
즉, 무통장 입금시에만 포인트가 차감되고 계좌이체나 카드결제시에는 포인트가 차감되지 않습니다.
아래와 같이 간단하게 수정하시면 무조건 포인트가 차감됩니다.
$od_receipt_bank = (int)str_replace(",", "", $od_receipt_bank);
$od_receipt_card = (int)str_replace(",", "", $od_receipt_card);
if ($od_settle_case == "무통장")
{
$od_temp_point = (int)str_replace(",", "", $od_temp_point);
$od_receipt_point = (int)str_replace(",", "", $od_temp_point);
}
else
{
$od_temp_point = (int)str_replace(",", "", $od_temp_point);
$od_receipt_point = (int)str_replace(",", "", $od_temp_point);
}
게시글 목록
| 번호 | 제목 |
|---|---|
| 1304 | |
| 1301 | |
| 1296 | |
| 1290 | |
| 1289 | |
| 1287 | |
| 1282 | |
| 1281 | |
| 1280 | |
| 1276 | |
| 1271 | |
| 1264 | |
| 1260 | |
| 1259 | |
| 1250 | |
| 1243 | |
| 1242 | |
| 1241 | |
| 1234 | |
| 1231 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기