묻고답하기
page_full_width" class="col-xs-12" |cond="$__Context->page_full_width">
이거좀 도와주세요ㅠㅠ
2005.05.10 21:14
스크립트 결제부분에보면요
if (f.how_check[0].checked == false && f.how_check[1].checked == false)
{
alert('결제수단을 선택해 주세요. ');
return false;
}
var pg_price = price; //결제금액
var pg_oid = "<?=$CART_UID?>_" + price; //주문번호
var pg_goodsname= "캐쉬충전"; //주문상품
var pg_username = "<?=$MEMBER_DATA[MB_NAME]?>"; //주문인이름
var pg_userid = "<?=$v_LogId?>"; //주문인회원ID
var pg_useremail= "<?=$MEMBER_DATA[MB_EMAIL]?>"; //주문인이메일
var pg_usertel = "<?=$MEMBER_DATA[MB_HOME_TEL]?>"; //주문인전화
var pg_userpcs = "<?=$MEMBER_DATA[MB_HAND_TEL]?>"; //주문인휴대폰
var pg_useraddr = ""; //배송지주소
var pg_basedir = "<?=$root[base]?>"; //킴스몰경로
if (f.how_check[0].checked == true)
{
var pg_cid = "<?=$card_pgid?>"; //신용카드결제상점아이디
var pg_name = "<?=$card_pg?>"; //신용카드결제PG폴더명
<?if($card_pgid ) include '../pg/card/'.$card_pg.'/connect.php'?>
}
else {
var pg_cid = "<?=$phone_pgid?>"; //휴대폰결제상점아이디
var pg_name = "<?=$phone_pg?>"; //휴대폰결제PG폴더명
<?if($phone_pgid) include '../pg/phone/'.$phone_pg.'/connect.php'?>
}
이런부분이 있는데요 여기 맨밑에 계좌이체를 넣고 싶어서
if (f.how_check[0].checked == false && f.how_check[1].checked == false && f.how_check[2].checked == false)
{
alert('결제수단을 선택해 주세요. ');
return false;
}
var pg_price = price; //결제금액
var pg_oid = "<?=$CART_UID?>_" + price; //주문번호
var pg_goodsname= "캐쉬충전"; //주문상품
var pg_username = "<?=$MEMBER_DATA[MB_NAME]?>"; //주문인이름
var pg_userid = "<?=$v_LogId?>"; //주문인회원ID
var pg_useremail= "<?=$MEMBER_DATA[MB_EMAIL]?>"; //주문인이메일
var pg_usertel = "<?=$MEMBER_DATA[MB_HOME_TEL]?>"; //주문인전화
var pg_userpcs = "<?=$MEMBER_DATA[MB_HAND_TEL]?>"; //주문인휴대폰
var pg_useraddr = ""; //배송지주소
var pg_basedir = "<?=$root[base]?>"; //킴스몰경로
if (f.how_check[0].checked == true)
{
var pg_cid = "<?=$card_pgid?>"; //신용카드결제상점아이디
var pg_name = "<?=$card_pg?>"; //신용카드결제PG폴더명
<?if($card_pgid ) include '../pg/card/'.$card_pg.'/connect.php'?>
}
else if(f.how_check[1].checked == true)
{
var pg_cid = "<?=$phone_pgid?>"; //휴대폰결제상점아이디
var pg_name = "<?=$phone_pg?>"; //휴대폰결제PG폴더명
<?if($phone_pgid) include '../pg/phone/'.$phone_pg.'/connect.php'?>
}
else if(f.how_check[2].checked == true)
{
var pg_cid = "<?=$phone_pgid?>"; //실시간계좌이체결제상점아이디
var pg_name = "<?=$bank_pg?>"; //실시간계좌이체결제PG폴더명
<?if($phone_pgid) include '../pg/bank/'.$phone_pg.'/connect.php'?>
}
이런식으로 고쳤는데 잘 돌아가는거는 같은데 확신이 안서서요 제대로 고친거 맞나요?^^;;
if (f.how_check[0].checked == false && f.how_check[1].checked == false)
{
alert('결제수단을 선택해 주세요. ');
return false;
}
var pg_price = price; //결제금액
var pg_oid = "<?=$CART_UID?>_" + price; //주문번호
var pg_goodsname= "캐쉬충전"; //주문상품
var pg_username = "<?=$MEMBER_DATA[MB_NAME]?>"; //주문인이름
var pg_userid = "<?=$v_LogId?>"; //주문인회원ID
var pg_useremail= "<?=$MEMBER_DATA[MB_EMAIL]?>"; //주문인이메일
var pg_usertel = "<?=$MEMBER_DATA[MB_HOME_TEL]?>"; //주문인전화
var pg_userpcs = "<?=$MEMBER_DATA[MB_HAND_TEL]?>"; //주문인휴대폰
var pg_useraddr = ""; //배송지주소
var pg_basedir = "<?=$root[base]?>"; //킴스몰경로
if (f.how_check[0].checked == true)
{
var pg_cid = "<?=$card_pgid?>"; //신용카드결제상점아이디
var pg_name = "<?=$card_pg?>"; //신용카드결제PG폴더명
<?if($card_pgid ) include '../pg/card/'.$card_pg.'/connect.php'?>
}
else {
var pg_cid = "<?=$phone_pgid?>"; //휴대폰결제상점아이디
var pg_name = "<?=$phone_pg?>"; //휴대폰결제PG폴더명
<?if($phone_pgid) include '../pg/phone/'.$phone_pg.'/connect.php'?>
}
이런부분이 있는데요 여기 맨밑에 계좌이체를 넣고 싶어서
if (f.how_check[0].checked == false && f.how_check[1].checked == false && f.how_check[2].checked == false)
{
alert('결제수단을 선택해 주세요. ');
return false;
}
var pg_price = price; //결제금액
var pg_oid = "<?=$CART_UID?>_" + price; //주문번호
var pg_goodsname= "캐쉬충전"; //주문상품
var pg_username = "<?=$MEMBER_DATA[MB_NAME]?>"; //주문인이름
var pg_userid = "<?=$v_LogId?>"; //주문인회원ID
var pg_useremail= "<?=$MEMBER_DATA[MB_EMAIL]?>"; //주문인이메일
var pg_usertel = "<?=$MEMBER_DATA[MB_HOME_TEL]?>"; //주문인전화
var pg_userpcs = "<?=$MEMBER_DATA[MB_HAND_TEL]?>"; //주문인휴대폰
var pg_useraddr = ""; //배송지주소
var pg_basedir = "<?=$root[base]?>"; //킴스몰경로
if (f.how_check[0].checked == true)
{
var pg_cid = "<?=$card_pgid?>"; //신용카드결제상점아이디
var pg_name = "<?=$card_pg?>"; //신용카드결제PG폴더명
<?if($card_pgid ) include '../pg/card/'.$card_pg.'/connect.php'?>
}
else if(f.how_check[1].checked == true)
{
var pg_cid = "<?=$phone_pgid?>"; //휴대폰결제상점아이디
var pg_name = "<?=$phone_pg?>"; //휴대폰결제PG폴더명
<?if($phone_pgid) include '../pg/phone/'.$phone_pg.'/connect.php'?>
}
else if(f.how_check[2].checked == true)
{
var pg_cid = "<?=$phone_pgid?>"; //실시간계좌이체결제상점아이디
var pg_name = "<?=$bank_pg?>"; //실시간계좌이체결제PG폴더명
<?if($phone_pgid) include '../pg/bank/'.$phone_pg.'/connect.php'?>
}
이런식으로 고쳤는데 잘 돌아가는거는 같은데 확신이 안서서요 제대로 고친거 맞나요?^^;;