답변 1개
orderlist.php에 보시면
Copy
if ($sort1 == "") $sort1 = "od_id";if ($sort2 == "") $sort2 = "desc";
이와같은 코드가 있는데 이것을
Copy
if ($sort1 == "") $sort1 = "date_format(od_time, '%Y%m%d')";if ($sort2 == "") $sort2 = "desc";
이렇게 수정하시고 그 아래쪽에 있는
Copy
$sql = " select *, (od_cart_coupon + od_coupon + od_send_coupon) as couponprice $sql_common order by $sort1 $sort2 limit $from_record, $rows ";$result = sql_query($sql);
이 코드는
Copy
$sql = " select *, (od_cart_coupon + od_coupon + od_send_coupon) as couponprice $sql_common order by $sort1 $sort2, od_status limit $from_record, $rows ";$result = sql_query($sql);
이렇게 하시면 될것 같네요.
직접 테스트해보진 않아서 오류가 있을수도 있으나
위와 같은 컨셉으로 수정을 하시면 될겁니다.
답변을 작성하려면 로그인이 필요합니다.