기존 영카트 주문기록 소스(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);
}
게시글 목록
| 번호 | 제목 |
|---|---|
| 1440 | |
| 1434 | |
| 1433 | |
| 1428 | |
| 1421 | |
| 1397 | |
| 1396 | |
| 1388 | |
| 1379 | |
| 1378 | |
| 1377 | |
| 1367 | |
| 1365 | |
| 1362 | |
| 1348 | |
| 1343 | |
| 1335 | |
| 1318 | |
| 1311 | |
| 1310 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기