관리자님 안녕하세요. 상품 리뷰에 관해 문의드립니다.
혹시 구매했던 상품에 상품리뷰를 달면 옆에 구매했다는 표시를 넣고 싶은데 어떻게 해야할까요?
리뷰를 모든 회원 달 수 있지만 구매했었던 회원은 리뷰를 달면 옆에 "구매" 표시를 넣고 싶은데
방법 좀 부탁드립니다. ^^
댓글 2개
shop/itemuse.inc.php 에
for ($i=0; $row=sql_fetch_array($result); $i++)
{
if ($i > 0)
echo "<tr><td colspan=3 background='$g4[shop_img_path]/dot_line.gif' height='1'></td></tr>";
$num = $use_total_count - ($use_page - 1) * $use_page_rows - $i;
$star = get_star($row[is_score]);
$is_name = get_text($row[is_name]);
$sql2 = " select count(*) as cnt from $g4[yc4_order_table] a join $g4[yc4_cart_table] b on (a.on_uid = b.on_uid) where b.it_id = '$it_id' and a.mb_id <> '' and a.mb_id = '$row[mb_id]' and b.ct_status in ('배송', '완료') ";
$row2 = sql_fetch($sql2);
if ($row2[cnt]) {
$is_name .= ' (구매)';
}
위와 같이 코드를 추가해 보시기 바랍니다.
for ($i=0; $row=sql_fetch_array($result); $i++)
{
if ($i > 0)
echo "<tr><td colspan=3 background='$g4[shop_img_path]/dot_line.gif' height='1'></td></tr>";
$num = $use_total_count - ($use_page - 1) * $use_page_rows - $i;
$star = get_star($row[is_score]);
$is_name = get_text($row[is_name]);
$sql2 = " select count(*) as cnt from $g4[yc4_order_table] a join $g4[yc4_cart_table] b on (a.on_uid = b.on_uid) where b.it_id = '$it_id' and a.mb_id <> '' and a.mb_id = '$row[mb_id]' and b.ct_status in ('배송', '완료') ";
$row2 = sql_fetch($sql2);
if ($row2[cnt]) {
$is_name .= ' (구매)';
}
위와 같이 코드를 추가해 보시기 바랍니다.
게시글 목록
| 번호 | 제목 |
|---|---|
| 56008 | |
| 56006 | |
| 55990 | |
| 55994 | |
| 55996 | |
| 55987 | |
| 55981 | |
| 55976 | |
| 55973 | |
| 55968 | |
| 55967 | |
| 55966 | |
| 55963 | |
| 55959 | |
| 55956 | |
| 55951 | |
| 55949 | |
| 55948 | |
| 55946 | |
| 55944 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기