혹시 영카트4에 농산물이란 별도의 추가메뉴를 만들고요. 이 메뉴에선 카드결제 불가하고
무통장입금만 되게 만들 수도 있나요? 물론 셋팅이 없으니 수작업으로 작업을 해야겠지만
제가 손을 못대고 부탁을 해야하는 입장이다보니 가능한지 여부만 여쭙고 싶네요.
댓글 8개
분류 90 을 농산물 분류로 만들고
shop/orderform.php 를
$sql = " select count(*) as cnt
from $g4[yc4_cart_table] a, $g4[yc4_item_table] b
where a.on_uid = '$s_on_uid'
and a.it_id = b.it_id
and b.ca_id like '90%' ";
$row = sql_fetch($sql);
if (!$row[cnt]) {
// 가상계좌 사용
if ($default[de_vbank_use]) {
$multi_settle++;
echo "<input type='radio' id=od_settle_vbank name=od_settle_case value='가상계좌' $checked><label for='od_settle_vbank'>{$escrow_title} 가상계좌</label> ";
$checked = "";
}
// 계좌이체 사용
if ($default[de_iche_use]) {
$multi_settle++;
echo "<input type='radio' id=od_settle_iche name=od_settle_case value='계좌이체' $checked><label for='od_settle_iche'>{$escrow_title} 계좌이체</label> ";
$checked = "";
}
// 휴대폰 사용
if ($default[de_hp_use]) {
$multi_settle++;
echo "<input type='radio' id=od_settle_hp name=od_settle_case value='휴대폰' $checked><label for='od_settle_hp'>휴대폰</label> ";
$checked = "";
}
// 신용카드 사용
if ($default[de_card_use]) {
$multi_settle++;
echo "<input type='radio' id=od_settle_card name=od_settle_case value='신용카드' $checked><label for='od_settle_card'>신용카드</label> ";
$checked = "";
}
}
와 같이 수정하시면 농산물 분류에 속한 상품이 있을 경우 결제방법에 "무통장"만 표시됩니다.
shop/orderform.php 를
$sql = " select count(*) as cnt
from $g4[yc4_cart_table] a, $g4[yc4_item_table] b
where a.on_uid = '$s_on_uid'
and a.it_id = b.it_id
and b.ca_id like '90%' ";
$row = sql_fetch($sql);
if (!$row[cnt]) {
// 가상계좌 사용
if ($default[de_vbank_use]) {
$multi_settle++;
echo "<input type='radio' id=od_settle_vbank name=od_settle_case value='가상계좌' $checked><label for='od_settle_vbank'>{$escrow_title} 가상계좌</label> ";
$checked = "";
}
// 계좌이체 사용
if ($default[de_iche_use]) {
$multi_settle++;
echo "<input type='radio' id=od_settle_iche name=od_settle_case value='계좌이체' $checked><label for='od_settle_iche'>{$escrow_title} 계좌이체</label> ";
$checked = "";
}
// 휴대폰 사용
if ($default[de_hp_use]) {
$multi_settle++;
echo "<input type='radio' id=od_settle_hp name=od_settle_case value='휴대폰' $checked><label for='od_settle_hp'>휴대폰</label> ";
$checked = "";
}
// 신용카드 사용
if ($default[de_card_use]) {
$multi_settle++;
echo "<input type='radio' id=od_settle_card name=od_settle_case value='신용카드' $checked><label for='od_settle_card'>신용카드</label> ";
$checked = "";
}
}
와 같이 수정하시면 농산물 분류에 속한 상품이 있을 경우 결제방법에 "무통장"만 표시됩니다.
아.. 정말 죄송합니다. 제가 무지해서요. 알려주신 위의 코드를 통째로 복사해서
172째줄쯤
<?
$multi_settle == 0;
$checked = "";
$escrow_title = "";
if ($default[de_escrow_use]) {
$escrow_title = "에스크로 ";
}
위 코드 아래에 삽입하고요
그 다음에 아래 코드에서 무통장입금 사용만 제외하고 나머지 가상,계좌,휴대폰,신용카드는 삭제했습니다.
그랬더니 농산물에선 무통장만 뜨고 나머지는 다 떴습니다. 다만 기존 있던 상품을 복사하거나 혹 3차분류를 농산물로 상품을 뜨게 한다음 테스트를 했을 경우에는 무통장만 뜨지 않았고요. 제대로 한건가요?
// 무통장입금 사용
if ($default[de_bank_use]) {
$multi_settle++;
echo "<input type='radio' id=od_settle_bank name='od_settle_case' value='무통장' $checked><label for='od_settle_bank'>무통장입금</label> ";
$checked = "";
}
// 가상계좌 사용
if ($default[de_vbank_use]) {
$multi_settle++;
echo "<input type='radio' id=od_settle_vbank name=od_settle_case value='가상계좌' $checked><label for='od_settle_vbank'>{$escrow_title} 가상계좌</label> ";
$checked = "";
}
// 계좌이체 사용
if ($default[de_iche_use]) {
$multi_settle++;
echo "<input type='radio' id=od_settle_iche name=od_settle_case value='계좌이체' $checked><label for='od_settle_iche'>{$escrow_title} 계좌이체</label> ";
$checked = "";
}
// 휴대폰 사용
if ($default[de_hp_use]) {
$multi_settle++;
echo "<input type='radio' id=od_settle_hp name=od_settle_case value='휴대폰' $checked><label for='od_settle_hp'>휴대폰</label> ";
$checked = "";
}
// 신용카드 사용
if ($default[de_card_use]) {
$multi_settle++;
echo "<input type='radio' id=od_settle_card name=od_settle_case value='신용카드' $checked><label for='od_settle_card'>신용카드</label> ";
$checked = "";
}
172째줄쯤
<?
$multi_settle == 0;
$checked = "";
$escrow_title = "";
if ($default[de_escrow_use]) {
$escrow_title = "에스크로 ";
}
위 코드 아래에 삽입하고요
그 다음에 아래 코드에서 무통장입금 사용만 제외하고 나머지 가상,계좌,휴대폰,신용카드는 삭제했습니다.
그랬더니 농산물에선 무통장만 뜨고 나머지는 다 떴습니다. 다만 기존 있던 상품을 복사하거나 혹 3차분류를 농산물로 상품을 뜨게 한다음 테스트를 했을 경우에는 무통장만 뜨지 않았고요. 제대로 한건가요?
// 무통장입금 사용
if ($default[de_bank_use]) {
$multi_settle++;
echo "<input type='radio' id=od_settle_bank name='od_settle_case' value='무통장' $checked><label for='od_settle_bank'>무통장입금</label> ";
$checked = "";
}
// 가상계좌 사용
if ($default[de_vbank_use]) {
$multi_settle++;
echo "<input type='radio' id=od_settle_vbank name=od_settle_case value='가상계좌' $checked><label for='od_settle_vbank'>{$escrow_title} 가상계좌</label> ";
$checked = "";
}
// 계좌이체 사용
if ($default[de_iche_use]) {
$multi_settle++;
echo "<input type='radio' id=od_settle_iche name=od_settle_case value='계좌이체' $checked><label for='od_settle_iche'>{$escrow_title} 계좌이체</label> ";
$checked = "";
}
// 휴대폰 사용
if ($default[de_hp_use]) {
$multi_settle++;
echo "<input type='radio' id=od_settle_hp name=od_settle_case value='휴대폰' $checked><label for='od_settle_hp'>휴대폰</label> ";
$checked = "";
}
// 신용카드 사용
if ($default[de_card_use]) {
$multi_settle++;
echo "<input type='radio' id=od_settle_card name=od_settle_case value='신용카드' $checked><label for='od_settle_card'>신용카드</label> ";
$checked = "";
}
게시글 목록
| 번호 | 제목 |
|---|---|
| 55623 | |
| 55619 | |
| 55618 | |
| 55614 | |
| 55601 | |
| 55598 | |
| 55590 | |
| 55577 | |
| 55575 | |
| 55570 | |
| 55547 | |
| 55544 | |
| 55541 | |
| 55539 | |
| 55530 | |
| 55526 | |
| 55506 | |
| 55504 | |
| 55501 | |
| 55499 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기