기존 영카트 주문기록 소스(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);
}
게시글 목록
| 번호 | 제목 |
|---|---|
| 1534 | |
| 1526 | |
| 1518 | |
| 1516 | |
| 1515 | |
| 1501 | |
| 1498 | |
| 1496 | |
| 1491 | |
| 1488 | |
| 1487 | |
| 1481 | |
| 1473 | |
| 1472 | |
| 1466 | |
| 1462 | |
| 1450 | |
| 1449 | |
| 1447 | |
| 1446 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기