주문에 대한 포인트 부여는 지급 일자를 조정하는 기능이 있는 것 같은데요....
관리자가 주문 관리시 "배송"으로 처리한 주문이 일정 기간이 지나면 "완료"로 처리되게 하는 기능은 없나요?
기능이 없다면 어느 부분을 수정하면 해당 기능을 구현할 수 있을지 조언 좀 부탁드립니다.
관리자가 주문 관리시 "배송"으로 처리한 주문이 일정 기간이 지나면 "완료"로 처리되게 하는 기능은 없나요?
기능이 없다면 어느 부분을 수정하면 해당 기능을 구현할 수 있을지 조언 좀 부탁드립니다.
댓글 2개
원하시는 코드는 adm/shop_admin/orderform.php 에 인코딩 되어 있습니다.
//------------------------------------------------------------------------------
// 주문완료 포인트
// 설정일이 지난 포인트 부여되지 않은 배송완료된 장바구니 자료에 포인트 부여
// 설정일이 0 이면 주문서 완료 설정 시점에서 포인트를 바로 부여합니다.
//------------------------------------------------------------------------------
if (!isset($order_not_point)) {
$beforedays = date("Y-m-d H:i:s", ( time() - (60 * 60 * 24 * (int)$default[de_point_days]) ) );
$sql = " select * from $g4[yc4_cart_table]
where ct_status = '$cart_title2'
and ct_point_use = '0'
and ct_time <= '$beforedays' ";
$result = sql_query($sql);
for ($i=0; $row=sql_fetch_array($result); $i++)
{
// 회원 ID 를 얻는다.
$tmp_row = sql_fetch("select od_id, mb_id from $g4[yc4_order_table] where on_uid = '$row[on_uid]' ");
// 회원이면서 포인트가 0보다 크다면
if ($tmp_row[mb_id] && $row[ct_point] > 0)
{
$po_point = $row[ct_point] * $row[ct_qty];
$po_content = "$cart_title3 $tmp_row[od_id] ($row[ct_id]) $cart_title4";
//insert_point($tmp_row[mb_id], $po_point, $po_content, "@delivery", $tmp_row[mb_id], "$tmp_row[od_id],$row[on_uid]"); // 겹침
insert_point($tmp_row[mb_id], $po_point, $po_content, "@delivery", $tmp_row[mb_id], "$tmp_row[od_id],$row[on_uid],$row[ct_id]");
}
sql_query("update $g4[yc4_cart_table] set ct_point_use = '1' where ct_id = '$row[ct_id]' ");
}
}
//------------------------------------------------------------------------------
이 코드를
adm/shop_admin/orderform.main.php 에 넣어서 수정해 보시기 바랍니다.
//------------------------------------------------------------------------------
// 주문완료 포인트
// 설정일이 지난 포인트 부여되지 않은 배송완료된 장바구니 자료에 포인트 부여
// 설정일이 0 이면 주문서 완료 설정 시점에서 포인트를 바로 부여합니다.
//------------------------------------------------------------------------------
if (!isset($order_not_point)) {
$beforedays = date("Y-m-d H:i:s", ( time() - (60 * 60 * 24 * (int)$default[de_point_days]) ) );
$sql = " select * from $g4[yc4_cart_table]
where ct_status = '$cart_title2'
and ct_point_use = '0'
and ct_time <= '$beforedays' ";
$result = sql_query($sql);
for ($i=0; $row=sql_fetch_array($result); $i++)
{
// 회원 ID 를 얻는다.
$tmp_row = sql_fetch("select od_id, mb_id from $g4[yc4_order_table] where on_uid = '$row[on_uid]' ");
// 회원이면서 포인트가 0보다 크다면
if ($tmp_row[mb_id] && $row[ct_point] > 0)
{
$po_point = $row[ct_point] * $row[ct_qty];
$po_content = "$cart_title3 $tmp_row[od_id] ($row[ct_id]) $cart_title4";
//insert_point($tmp_row[mb_id], $po_point, $po_content, "@delivery", $tmp_row[mb_id], "$tmp_row[od_id],$row[on_uid]"); // 겹침
insert_point($tmp_row[mb_id], $po_point, $po_content, "@delivery", $tmp_row[mb_id], "$tmp_row[od_id],$row[on_uid],$row[ct_id]");
}
sql_query("update $g4[yc4_cart_table] set ct_point_use = '1' where ct_id = '$row[ct_id]' ");
}
}
//------------------------------------------------------------------------------
이 코드를
adm/shop_admin/orderform.main.php 에 넣어서 수정해 보시기 바랍니다.
게시글 목록
| 번호 | 제목 |
|---|---|
| 56008 | |
| 56006 | |
| 55990 | |
| 55994 | |
| 55996 | |
| 55987 | |
| 55981 | |
| 55976 | |
| 55973 | |
| 55968 | |
| 55967 | |
| 55966 | |
| 55963 | |
| 55959 | |
| 55956 | |
| 55951 | |
| 55949 | |
| 55948 | |
| 55946 | |
| 55944 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기