영카트 [YC4] 주문접수 입력항목 추가하기
페이지 정보
본문
주문서에 입력항목 추가하기
1. 영카트4 / shop / orderform.php 79줄
<tr>
<td>E-mail</td>
<td><input type=text name=od_email size=35 maxlength=100 value='<?=$member[mb_email]?>' class=ed></td>
</tr>
아래쪽에 항목 추가
<tr height=25>
<td>접속경로</td>
<td><select name="od_etc1">
<option value=""></option>
<option value="네이버">네이버</option>
<option value="구글">구글</option>
<option value="지인소개">지인소개</option>
<option value="신문광고">신문광고</option>
<option value="전단광고">전단광고</option>
<option value="기타">기타</option>
</select></td>
</tr>
<tr height=25>
<td>먹는이유</td>
<td><textarea name=od_etc2 rows=4 cols=60 class=ed></textarea></td>
</tr>
2. 영카트4 / shop / orderreceipt.php 82줄
<tr height=25>
<td>E-mail</td>
<td><? echo $od_email ?></td>
</tr>
아래에 추가
<tr height=25>
<td>접속경로</td>
<td><? echo $od_etc1 ?></td>
</tr>
<tr height=25>
<td>먹는이유</td>
<td><? echo htmlspecialchars2(stripslashes($od_etc2)) ?></td>
</tr>
3. 영카트4 / shop / orderupdate.php 93줄
od_ip = '$REMOTE_ADDR',
아래에 추가
od_etc1 = '$od_etc1',
od_etc2 = '$od_etc2',
4. 영카트4 / adm / shop_admin / orderform.php
주문상세페이지는 zend 파일이므로 수정불가
5. 영카트4 / adm / shop_admin / orderlist2.php 231줄
주문통합관리 화면에 추가한 항목을 보이기
// 상품개별출력
$sql2 = " select c.it_name,
b.*
from $g4[yc4_order_table] a
left join $g4[yc4_cart_table] b on (a.on_uid = b.on_uid)
left join $g4[yc4_item_table] c on (b.it_id = c.it_id)
where od_id = '$row[od_id]' ";
$result2 = sql_query($sql2);
for ($k=0; $row2=sql_fetch_array($result2); $k++)
{
$href = "$g4[shop_path]/item.php?it_id=$row2[it_id]";
$it_name = "<a href='$href'>".cut_str($row2[it_name],35)."</a><br>";
$it_name .= print_item_options($row2[it_id], $row2[it_opt1], $row2[it_opt2], $row2[it_opt3], $row2[it_opt4], $row2[it_opt5], $row2[it_opt6]);
$sub_amount = $row2[ct_qty] * $row2[ct_amount];
$sub_point = $row2[ct_qty] * $row2[ct_point];
echo "
<tr class='list$list ht'>
<td></td>
<td colspan=3>
<table width=100% cellpadding=0 cellspacing=0>
<tr>
<td style='padding-top:5px; padding-bottom:5px;'><a href='$href'>".get_it_image("{$row2[it_id]}_s", 50, 50)."</a></td>
<td>$it_name</td>
</tr>
</table></td>
<td align=right>".number_format($row2[ct_amount])." </td>
<td align=center>$row2[ct_qty]</td>
<td align=right>".number_format($sub_point)." </td>
<td align=center colspan=2>$row2[ct_status]</td>
<td align=right>".number_format($sub_amount)." </td>
<td></td>
<td></td>
</tr>";
}
아래에 내용 추가
echo "
<tr class='list$list ht'>
<td align='center'></td>
<td align='center'>접속경로</td>
<td colspan='2'>".$row[od_etc1]."</td>
<td align='center'>먹는이유</td>
<td colspan='7'>".$row[od_etc2]."</td>
</tr>";
1. 영카트4 / shop / orderform.php 79줄
<tr>
<td>E-mail</td>
<td><input type=text name=od_email size=35 maxlength=100 value='<?=$member[mb_email]?>' class=ed></td>
</tr>
아래쪽에 항목 추가
<tr height=25>
<td>접속경로</td>
<td><select name="od_etc1">
<option value=""></option>
<option value="네이버">네이버</option>
<option value="구글">구글</option>
<option value="지인소개">지인소개</option>
<option value="신문광고">신문광고</option>
<option value="전단광고">전단광고</option>
<option value="기타">기타</option>
</select></td>
</tr>
<tr height=25>
<td>먹는이유</td>
<td><textarea name=od_etc2 rows=4 cols=60 class=ed></textarea></td>
</tr>
2. 영카트4 / shop / orderreceipt.php 82줄
<tr height=25>
<td>E-mail</td>
<td><? echo $od_email ?></td>
</tr>
아래에 추가
<tr height=25>
<td>접속경로</td>
<td><? echo $od_etc1 ?></td>
</tr>
<tr height=25>
<td>먹는이유</td>
<td><? echo htmlspecialchars2(stripslashes($od_etc2)) ?></td>
</tr>
3. 영카트4 / shop / orderupdate.php 93줄
od_ip = '$REMOTE_ADDR',
아래에 추가
od_etc1 = '$od_etc1',
od_etc2 = '$od_etc2',
4. 영카트4 / adm / shop_admin / orderform.php
주문상세페이지는 zend 파일이므로 수정불가
5. 영카트4 / adm / shop_admin / orderlist2.php 231줄
주문통합관리 화면에 추가한 항목을 보이기
// 상품개별출력
$sql2 = " select c.it_name,
b.*
from $g4[yc4_order_table] a
left join $g4[yc4_cart_table] b on (a.on_uid = b.on_uid)
left join $g4[yc4_item_table] c on (b.it_id = c.it_id)
where od_id = '$row[od_id]' ";
$result2 = sql_query($sql2);
for ($k=0; $row2=sql_fetch_array($result2); $k++)
{
$href = "$g4[shop_path]/item.php?it_id=$row2[it_id]";
$it_name = "<a href='$href'>".cut_str($row2[it_name],35)."</a><br>";
$it_name .= print_item_options($row2[it_id], $row2[it_opt1], $row2[it_opt2], $row2[it_opt3], $row2[it_opt4], $row2[it_opt5], $row2[it_opt6]);
$sub_amount = $row2[ct_qty] * $row2[ct_amount];
$sub_point = $row2[ct_qty] * $row2[ct_point];
echo "
<tr class='list$list ht'>
<td></td>
<td colspan=3>
<table width=100% cellpadding=0 cellspacing=0>
<tr>
<td style='padding-top:5px; padding-bottom:5px;'><a href='$href'>".get_it_image("{$row2[it_id]}_s", 50, 50)."</a></td>
<td>$it_name</td>
</tr>
</table></td>
<td align=right>".number_format($row2[ct_amount])." </td>
<td align=center>$row2[ct_qty]</td>
<td align=right>".number_format($sub_point)." </td>
<td align=center colspan=2>$row2[ct_status]</td>
<td align=right>".number_format($sub_amount)." </td>
<td></td>
<td></td>
</tr>";
}
아래에 내용 추가
echo "
<tr class='list$list ht'>
<td align='center'></td>
<td align='center'>접속경로</td>
<td colspan='2'>".$row[od_etc1]."</td>
<td align='center'>먹는이유</td>
<td colspan='7'>".$row[od_etc2]."</td>
</tr>";
댓글목록
등록된 댓글이 없습니다.