답변 3개 / 댓글 4개
관리자 > 상품 수정 > 여분필드 설정
"국내배송제품" 인 경우,
여분필드1 제목에 '국내/해외 구분'
여분필드1 값에 '국내'
라고 저장한 뒤,
if ($it['it_1'] == '국내') {
include "주문서2.php";
return;
}
식으로 처리하면 될 듯 합니다.
주문서에서 달라지는 부분이 많지 않다면.. if문으로 처리해도 될 듯 합니다.
* /shop/orderform.sub.php
1)
$sql = " select a.ct_id,
a.it_id,
a.it_name,
a.ct_price,
a.ct_point,
a.ct_qty,
a.ct_status,
a.ct_send_cost,
a.it_sc_type,
b.ca_id,
b.ca_id2,
b.ca_id3,
b.it_notax
from {$g5['g5_shop_cart_table']} a left join {$g5['g5_shop_item_table']} b on ( a.it_id = b.it_id )
where a.od_id = '$s_cart_id'
and a.ct_select = '1' ";
->
$sql = " select a.ct_id,
a.it_id,
a.it_name,
a.ct_price,
a.ct_point,
a.ct_qty,
a.ct_status,
a.ct_send_cost,
a.it_sc_type,
b.it_1,
b.ca_id,
b.ca_id2,
b.ca_id3,
b.it_notax
from {$g5['g5_shop_cart_table']} a left join {$g5['g5_shop_item_table']} b on ( a.it_id = b.it_id )
where a.od_id = '$s_cart_id'
and a.ct_select = '1' ";
2)
for ($i=0; $row=sql_fetch_array($result); $i++)
{
->
for ($i=0; $row=sql_fetch_array($result); $i++)
{
if ($row['it_1'] == '국내')
$is_domestic = true;
3)
[통관번호 부분]
->
if ($is_domestic == false) {
[통관번호 부분]
}
답변을 작성하려면 로그인이 필요합니다.
그런데 죄송하지만
if ($it['it_1'] == '국내') {
include "주문서2.php";
return;
}
이부분은 어디에 추가하면될까요 ?ㅠㅠ