[ yg5 ] 영카트 - 일정금액 이상 부터 결제 되게 하기 > gnuboard

본문 바로가기

사이트 내 전체검색

gnuboard

팁자료 [ yg5 ] 영카트 - 일정금액 이상 부터 결제 되게 하기

작성일 20-12-15 23:50

페이지 정보

작성자 웹지기 조회 3,492회 댓글 0건

본문

pc버젼 /shop/orderform.sub.php 1371줄

var tot_price = od_price + send_cost + send_cost2 - send_coupon - temp_point;

아랫줄

계좌이체, 신용카드, 휴대폰 등 최대 금액 설정

현금은 설정이 없음. 추가해주면 됨.


/* 최소 결제 금액 추가 freemaster : 2020.12.15 */

/*

if (document.getElementById("od_settle_iche")) {

    if (document.getElementById("od_settle_iche").checked) {

        if (tot_price < 150) {

            alert("계좌이체는 150원 이상 결제가 가능합니다.");

            return false;

        }

    }

}


if (document.getElementById("od_settle_card")) {

    if (document.getElementById("od_settle_card").checked) {

        if (tot_price < 1000) {

            alert("신용카드는 1000원 이상 결제가 가능합니다.");

            return false;

        }

    }

}


if (document.getElementById("od_settle_hp")) {

    if (document.getElementById("od_settle_hp").checked) {

        if (tot_price < 350) {

            alert("휴대폰은 350원 이상 결제가 가능합니다.");

            return false;

        }

    }

}

*/


var last_price = 15000;

if (document.getElementById("od_settle_iche")) {

    if (document.getElementById("od_settle_iche").checked) {

        if (tot_price < last_price) {

            alert("계좌이체는 "+last_price+"원 이상 결제가 가능합니다.");

            return false;

        }

    }

}


if (document.getElementById("od_settle_card")) {

    if (document.getElementById("od_settle_card").checked) {

        if (tot_price < last_price) {

            alert("신용카드는 "+last_price+"원 이상 결제가 가능합니다.");

            return false;

        }

    }

}


if (document.getElementById("od_settle_hp")) {

    if (document.getElementById("od_settle_hp").checked) {

        if (tot_price < last_price) {

            alert("휴대폰은 "+last_price+"원 이상 결제가 가능합니다.");

            return false;

        }

    }

}


if (document.getElementById("od_settle_bank")) {

    if (document.getElementById("od_settle_bank").checked) {

        if(tot_price < last_price) {

            alert("무통장입금은 "+last_price+"원 이상 결제가 가능합니다.");

            return false;

        }

    }

}

/* 최소 결제 금액 추가 freemaster : 2020.12.15 */ 

 

모바일 - /mobile/shop/orderform.sub.php - 1574

/* 최소 결제 금액 추가 freemaster : 2020.12.15 */

 

/*
if (document.getElementById("od_settle_iche")) {
    if (document.getElementById("od_settle_iche").checked) {
        if (tot_price < 150) {
            alert("계좌이체는 150원 이상 결제가 가능합니다.");
            return false;
        }
    }
}

if (document.getElementById("od_settle_card")) {
    if (document.getElementById("od_settle_card").checked) {
        if (tot_price < 1000) {
            alert("신용카드는 1000원 이상 결제가 가능합니다.");
            return false;
        }
    }
}

if (document.getElementById("od_settle_hp")) {
    if (document.getElementById("od_settle_hp").checked) {
        if (tot_price < 350) {
            alert("휴대폰은 350원 이상 결제가 가능합니다.");
            return false;
        }
    }
}
*/

var last_price = 15000;
if (document.getElementById("od_settle_iche")) {
    if (document.getElementById("od_settle_iche").checked) {
        if (tot_price < last_price) {
            alert("계좌이체는 "+last_price+"원 이상 결제가 가능합니다.");
            return false;
        }
    }
}

if (document.getElementById("od_settle_card")) {
    if (document.getElementById("od_settle_card").checked) {
        if (tot_price < last_price) {
            alert("신용카드는 "+last_price+"원 이상 결제가 가능합니다.");
            return false;
        }
    }
}

if (document.getElementById("od_settle_hp")) {
    if (document.getElementById("od_settle_hp").checked) {
        if (tot_price < last_price) {
            alert("휴대폰은 "+last_price+"원 이상 결제가 가능합니다.");
            return false;
        }
    }
}

if (document.getElementById("od_settle_bank")) {
    if (document.getElementById("od_settle_bank").checked) {
        if(tot_price < last_price) {
            alert("무통장입금은 "+last_price+"원 이상 결제가 가능합니다.");
            return false;
        }
    }
}
/* 최소 결제 금액 추가 freemaster : 2020.12.15 */

 

 

 


추천0

비추천 0

댓글목록

등록된 댓글이 없습니다.

전체 54건 1 페이지

이미지 목록

게시물 검색
Copyright © 즐거운 코딩 생활 ( funyphp ). All rights reserved.
PC 버전으로 보기