특정제품만 주문서양식을 다르게하고 싶습니다
본문
안녕하세요
특정제품만 주문서양식을 다르게하싶은데요
해외배송제품이라 개인통관고유번호를 받게끔 주문서양식이 되어있는데요
국내배송제품도 있어서 국내배송 제품은 주문서양식을 다르게해서 개인통관번호를 받지않아도 되도록
하고싶습니다
방법이 있을까요 ??
고수님들 알려주시면 정말 감사하겠습니다!
그럼 좋은저녁 보내세요!
답변 3
관리자 > 상품 수정 > 여분필드 설정
"국내배송제품" 인 경우,
여분필드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) {
[통관번호 부분]
}
제품의 카테고리를 활용하거나, 브랜드등을 활용해서,
주문서 페이지에 조건문으로 처리 하면 될듯하네요.