팁자료실에 올려주신 개별배송비 적용을 하고
구매를 하니 에러메세지가 뜹니다.
어느 부분을 수정해야 하나요?
구매를 하니 에러메세지가 뜹니다.
어느 부분을 수정해야 하나요?
댓글 4개
장바구니에 2개 담기는 것은 shop/item.php 의
<input type="image" id="direct_buy" src="<?=$g4[shop_img_path]?>/btn2_now_buy.gif" onclick="document.pressed=this.id" border="0">
<input type="image" id="cart_update" src="<?=$g4[shop_img_path]?>/btn2_cart.gif" onclick="document.pressed=this.id" border="0">
이 코드로 인한것으로 form submit 이 두번 되는것 입니다.
shop/orderformupdate.php 에서
Error.. 가 나온는 것은
if ($default[de_send_cost_case] == "없음") {
$send_cost = 0;
}
else if ($default[de_send_cost_case] == "개별배송") {
$send_cost = $i_send_cost;
}
else {
...
이렇게 수정하여 처리해 드렸습니다.
<input type="image" id="direct_buy" src="<?=$g4[shop_img_path]?>/btn2_now_buy.gif" onclick="document.pressed=this.id" border="0">
<input type="image" id="cart_update" src="<?=$g4[shop_img_path]?>/btn2_cart.gif" onclick="document.pressed=this.id" border="0">
이 코드로 인한것으로 form submit 이 두번 되는것 입니다.
shop/orderformupdate.php 에서
Error.. 가 나온는 것은
if ($default[de_send_cost_case] == "없음") {
$send_cost = 0;
}
else if ($default[de_send_cost_case] == "개별배송") {
$send_cost = $i_send_cost;
}
else {
...
이렇게 수정하여 처리해 드렸습니다.
shop/item.php 를 수정하셔서 그렇습니다.
// 바로구매 또는 장바구니 담기
//function fitemcheck(f)
function fitemcheck(f, act)
{
// 판매가격이 0 보다 작다면
if (f.it_amount.value < 0) {
alert("전화로 문의해 주시면 감사하겠습니다.");
return false;
}
for (i=1; i<=6; i++) {
if (typeof(f.elements["it_opt"+i]) != 'undefined') {
if (f.elements["it_opt"+i].value == '선택') {
alert(f.elements["it_opt"+i+"_subject"].value + '을(를) 선택하여 주십시오.');
f.elements["it_opt"+i].focus();
return false;
}
}
}
if (typeof f.it_send_method != "undefined") {
if (f.it_send_method.value == "") {
alert("배송방법을 선택하여 주십시오.");
f.it_send_method.focus();
return false;
}
}
/*
if (document.pressed == "direct_buy") {
f.sw_direct.value = 1;
} else {
f.sw_direct.value = 0;
}
*/
if (act == "direct_buy") {
f.sw_direct.value = 1;
} else {
f.sw_direct.value = 0;
}
이렇게 수정하여 처리해 드렸습니다.
// 바로구매 또는 장바구니 담기
//function fitemcheck(f)
function fitemcheck(f, act)
{
// 판매가격이 0 보다 작다면
if (f.it_amount.value < 0) {
alert("전화로 문의해 주시면 감사하겠습니다.");
return false;
}
for (i=1; i<=6; i++) {
if (typeof(f.elements["it_opt"+i]) != 'undefined') {
if (f.elements["it_opt"+i].value == '선택') {
alert(f.elements["it_opt"+i+"_subject"].value + '을(를) 선택하여 주십시오.');
f.elements["it_opt"+i].focus();
return false;
}
}
}
if (typeof f.it_send_method != "undefined") {
if (f.it_send_method.value == "") {
alert("배송방법을 선택하여 주십시오.");
f.it_send_method.focus();
return false;
}
}
/*
if (document.pressed == "direct_buy") {
f.sw_direct.value = 1;
} else {
f.sw_direct.value = 0;
}
*/
if (act == "direct_buy") {
f.sw_direct.value = 1;
} else {
f.sw_direct.value = 0;
}
이렇게 수정하여 처리해 드렸습니다.
게시글 목록
| 번호 | 제목 |
|---|---|
| 56073 | |
| 56067 | |
| 56065 | |
| 56060 | |
| 56058 | |
| 56055 | |
| 56051 | |
| 56048 | |
| 56044 | |
| 56043 | |
| 56042 | |
| 56039 | |
| 56035 | |
| 56032 | |
| 56030 | |
| 56028 | |
| 56025 | |
| 56018 | |
| 56012 | |
| 56010 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기