기존 영카트 주문기록 소스(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);
}
게시글 목록
| 번호 | 제목 |
|---|---|
| 1111 | |
| 1107 | |
| 1105 | |
| 1102 | |
| 1099 | |
| 1098 | |
| 1097 | |
| 1101 | |
| 1096 | |
| 1132 | |
| 1094 | |
| 1092 | |
| 1091 | |
| 1088 | |
| 1087 | |
| 1083 | |
| 1082 | |
| 1076 | |
| 1068 | |
| 1056 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기