상품주문시 배송정보 - 선불,착불,직접수령 어떻게 하면 좋을까요6^
고수님들 배송정보 어떻게 구현하신분 계시나요??
선불일경우에는 가격에 포함이 되어야할듯하구요
착불은 배송비를 후불일거고
직접수령은 직접와서 가져가는거니 배송비 없을거구
고수님들 도와주세요^^ 굽신굽신~~
고수님들 배송정보 어떻게 구현하신분 계시나요??
선불일경우에는 가격에 포함이 되어야할듯하구요
착불은 배송비를 후불일거고
직접수령은 직접와서 가져가는거니 배송비 없을거구
고수님들 도와주세요^^ 굽신굽신~~
댓글 2개
shop/item.php 를
//var amount = basic_amount + opt1 + opt2 + opt3 + opt4 + opt5 + opt6;
var amount = basic_amount + opt1 + opt2 + opt3 + opt4 + opt5;
var point = parseInt(basic_point);
if (typeof(f.it_amount) != 'undefined')
f.it_amount.value = amount;
if (typeof(f.disp_sell_amount) != 'undefined')
//f.disp_sell_amount.value = number_format(String(amount * ct_qty));
f.disp_sell_amount.value = number_format(String(amount * ct_qty + opt6));
if (typeof(f.disp_cust_amount) != 'undefined')
//f.disp_cust_amount.value = number_format(String(cust_amount * ct_qty));
f.disp_cust_amount.value = number_format(String(cust_amount * ct_qty + opt6));
이렇게 수정하신후
옵션6에
배송비
선택
선불;+3000
착불
직접수령
입력하신후
shop/cartupdate.php 의
$opt_amount = 0;
$sql = " select * from $g4[yc4_item_table] where it_id = '$_POST[it_id]' ";
$it = sql_fetch($sql);
for ($i=1; $i<=6; $i++) {
//$dst_opt = $_POST["it_opt".$i];
$dst_opt = trim($_POST["it_opt".$i]);
if ($dst_opt) {
$org_opt = $it["it_opt".$i];
$exp_opt = explode("\n", trim($org_opt));
$exists = false;
for ($k=0; $k<count($exp_opt); $k++) {
$opt = trim($exp_opt[$k]);
if ($dst_opt == $opt) {
$exists = true;
$exp_option = explode(";", $opt);
$opt_amount += (int)$exp_option[1];
break;
}
}
if ($exists == false) {
// 옵션이 다름
die("Error.");
}
}
}
$amount = get_amount($it) + $opt_amount;
// 상품가격이 다름
if ((int)$amount !== (int)$_POST[it_amount])
die("Error..");
이 코드를 삭제해 보시기 바랍니다.
그러나 권해 드리지 않습니다.
//var amount = basic_amount + opt1 + opt2 + opt3 + opt4 + opt5 + opt6;
var amount = basic_amount + opt1 + opt2 + opt3 + opt4 + opt5;
var point = parseInt(basic_point);
if (typeof(f.it_amount) != 'undefined')
f.it_amount.value = amount;
if (typeof(f.disp_sell_amount) != 'undefined')
//f.disp_sell_amount.value = number_format(String(amount * ct_qty));
f.disp_sell_amount.value = number_format(String(amount * ct_qty + opt6));
if (typeof(f.disp_cust_amount) != 'undefined')
//f.disp_cust_amount.value = number_format(String(cust_amount * ct_qty));
f.disp_cust_amount.value = number_format(String(cust_amount * ct_qty + opt6));
이렇게 수정하신후
옵션6에
배송비
선택
선불;+3000
착불
직접수령
입력하신후
shop/cartupdate.php 의
$opt_amount = 0;
$sql = " select * from $g4[yc4_item_table] where it_id = '$_POST[it_id]' ";
$it = sql_fetch($sql);
for ($i=1; $i<=6; $i++) {
//$dst_opt = $_POST["it_opt".$i];
$dst_opt = trim($_POST["it_opt".$i]);
if ($dst_opt) {
$org_opt = $it["it_opt".$i];
$exp_opt = explode("\n", trim($org_opt));
$exists = false;
for ($k=0; $k<count($exp_opt); $k++) {
$opt = trim($exp_opt[$k]);
if ($dst_opt == $opt) {
$exists = true;
$exp_option = explode(";", $opt);
$opt_amount += (int)$exp_option[1];
break;
}
}
if ($exists == false) {
// 옵션이 다름
die("Error.");
}
}
}
$amount = get_amount($it) + $opt_amount;
// 상품가격이 다름
if ((int)$amount !== (int)$_POST[it_amount])
die("Error..");
이 코드를 삭제해 보시기 바랍니다.
그러나 권해 드리지 않습니다.
게시글 목록
| 번호 | 제목 |
|---|---|
| 56073 | |
| 56067 | |
| 56065 | |
| 56060 | |
| 56058 | |
| 56055 | |
| 56051 | |
| 56048 | |
| 56044 | |
| 56043 | |
| 56042 | |
| 56039 | |
| 56035 | |
| 56032 | |
| 56030 | |
| 56028 | |
| 56025 | |
| 56018 | |
| 56012 | |
| 56010 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기