기존 영카트 주문기록 소스(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);
}
게시글 목록
| 번호 | 제목 |
|---|---|
| 1790 | |
| 1788 | |
| 1786 | |
| 1782 | |
| 1780 | |
| 1778 | |
| 1767 | |
| 1762 | |
| 1754 | |
| 1748 | |
| 1739 | |
| 1736 | |
| 1735 | |
| 1731 | |
| 1717 | |
| 1712 | |
| 1704 | |
| 1700 | |
| 1696 | |
| 1682 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기