탐나오 | 콜드브루 더치커피 더치팩세트 10 "; dataArr += "
"; } $("#secondOptionList").append(dataArr); $("#secondOptionList li:eq(" + inx + ")>a").attr("data-raw", JSON.stringify(this) ); count++; inx++; }); $('.comm-select').removeClass('open'); $('.comm-select2').addClass('open'); $('.comm-select .select-list-option').css('display', 'none'); $("#secondOptionList").css('display', 'block'); } }, error: fn_AjaxError }); } /** 추가옵션선택시 */ function getAddOption() { if($("#addOptionList").css('display') == 'block') { $('.comm-select .select-list-option').css('display', 'none'); return ; } if($("#addOptionList li").size() > 0) { if($("#addOptionList").css('display') == 'none') { $('.comm-select .select-list-option').css('display', 'none'); $("#addOptionList").css('display', 'block') } $('.comm-select').removeClass('open'); $('.comm-select3').addClass('open'); return false; } var b_data = { addOptNm : '', addOptAmt : 0, addOptSn : '' }; $.ajax({ url: "/web/sv/getAddOptList.ajax;jsessionid=hA7AbpjXYgLHiIAnh910LGdz7aDeiOVoWicbe8hJ6iKdqqyd4OuVQaRoKLIlPKvZ.DB_servlet_engine2", data: "prdtNum=SV00000991", success:function(data) { var dataArr = '
"; $("#addOptionList").append(dataArr); $("#addOptionList li:eq(" + inx + ")>a").attr("data-raw", JSON.stringify(this)); inx++; }); $("#addOptionList li:eq(0)>a").attr("data-raw", JSON.stringify(b_data) ); } }, error: fn_AjaxError }); $('.comm-select').removeClass('open'); $('.comm-select3').addClass('open'); $('.comm-select .select-list-option').css('display', 'none'); $("#addOptionList").css('display', 'block'); } /** * 총합계. */ function selectedItemSaleAmt() { var price = 0; $("#selectedItemWrapper .price").each(function(){ price = price + Number(fn_replaceAll($(this).text(), ",", "")); }); $("#totalProductAmt").html(commaNum(price)); $("#lpointSavePoint").html(commaNum(parseInt((price * "0.5" / 100) / 10) * 10) + "원"); // 쿠폰리스트 체크 fn_chkCouponList(); } function fn_SvAddCart(){ var item = $("#selectedItemWrapper ul>li"); if(item.size() == 0 ) { alert("옵션을 선택해주세요.") return ; } var cart = []; item.each(function() { var dataRaw = jQuery.parseJSON($(this).attr("data-raw")); cart.push({ prdtNum : "SV00000991", prdtNm : "콜드브루 더치커피 더치팩세트 10", corpId : "CSVM190009", corpNm : "마이빈스", prdtDivNm : dataRaw.prdtDivNm, svOptSn : dataRaw.svOptSn, svDivSn : dataRaw.svDivSn, addOptAmt : dataRaw.addOptAmt, addOptNm : dataRaw.addOptNm, qty : $(this).find(".list2 .qty-input").val(), directRecvYn : $("input[name=directRecvYn]:checked").val(), nmlAmt : 0 }); }); fn_AddCart(cart); // 장바구니에 담고 선택한거 삭제 $("#selectedItemWrapper ul").html(''); selectedItemSaleAmt(); } /** * 찜한 상품 */ function fn_SvAddPocket(){ var pocket = [{ prdtNum : "SV00000991", prdtNm : "콜드브루 더치커피 더치팩세트 10", corpId : "CSVM190009", corpNm : "마이빈스", prdtDiv : "SV" }]; fn_AddPocket(pocket); } /** * 즉시구매 */ function fn_SvBuy(){ var item = $("#selectedItemWrapper ul>li"); if(item.size() == 0 ) { alert("옵션을 선택해주세요.") return ; } var cart = []; item.each( function() { var dataRaw = jQuery.parseJSON($(this).attr("data-raw")); cart.push({ prdtNum : "SV00000991", prdtNm : "콜드브루 더치커피 더치팩세트 10", corpId : "CSVM190009", corpNm : "마이빈스", prdtDivNm : dataRaw.prdtDivNm, svOptSn : dataRaw.svOptSn, svDivSn : dataRaw.svDivSn, addOptAmt : dataRaw.addOptAmt, addOptNm : dataRaw.addOptNm, qty : $(this).find(".list2 .qty-input").val(), directRecvYn : $("input[name=directRecvYn]:checked").val(), nmlAmt : 0 }); }); fn_InstantBuy(cart); } function checkDupOption(newData) { var result = false ; $("#selectedItemWrapper ul>li").each(function (){ var dataRaw = jQuery.parseJSON($(this).attr("data-raw")); if(newData.svDivSn == dataRaw.svDivSn && newData.svOptSn == dataRaw.svOptSn) { // 추가옵션 체크 if(typeof newData.addOptSn == "undefined") { result = true; return; } else { if(newData.addOptSn == dataRaw.addOptSn) { result = true; return; } } } }); return result; } function fn_clickTab(nTab){ $('#tabs ul li a').eq(nTab).trigger("click"); location.href = "#tabs"; } function fn_dlvText(dlvAmtDiv, dlvAmt, maxiBuyNum) { if(dlvAmtDiv == "DA01") { return commaNum(dlvAmt); } else if (dlvAmtDiv == "DA02") { return commaNum('70000') + "원 이상 무료"; } else if(dlvAmtDiv == "DA03") { return commaNum(maxiBuyNum) + "개당 "+ commaNum(dlvAmt) + "원"; } else if(dlvAmtDiv == "DA04") { return "무료"; } } function onChgDirectRecvYn(obj){ if(obj.value == "Y"){ //직접 수령 fn_showMap(); } } function fn_showMap(){ //위치 정보가 있어야 표시 if(false && false) { window.open("/web/sv/showDirRecvMap.do;jsessionid=hA7AbpjXYgLHiIAnh910LGdz7aDeiOVoWicbe8hJ6iKdqqyd4OuVQaRoKLIlPKvZ.DB_servlet_engine2?corpId=CSVM190009","위치보기", "width=580, height=400, scrollbars=yes, status=no, toolbar=no;"); } } // 쿠폰 리스트 체크 function fn_chkCouponList() { var copNum = 0; var amt = eval(fn_replaceAll($("#totalProductAmt").text(), ",", "")); $('.useCouponList').each(function() {	if (amt < $(this).attr('minAmt')) { $("#cpTitle" + $(this).attr("showKey")).addClass("hide"); $('#useCouponNm_' + $(this).attr('showKey')).addClass('hide'); $('#useCouponAmt_' + $(this).attr('showKey')).addClass('hide'); } else { copNum++; $("#cpTitle" + $(this).attr("showKey")).removeClass("hide"); $('#useCouponNm_' + $(this).attr('showKey')).removeClass('hide'); $('#useCouponAmt_' + $(this).attr('showKey')).removeClass('hide'); } }); if (copNum == 0) { $("#useAbleCoupon").addClass("hide"); } else { $("#useAbleCoupon").removeClass("hide"); } } // 쿠폰 받기 function fn_couponDownload(cpId, idx) { var parameters = "cpId=" + cpId; $.ajax({ url:"/mw/couponDownload.ajax;jsessionid=hA7AbpjXYgLHiIAnh910LGdz7aDeiOVoWicbe8hJ6iKdqqyd4OuVQaRoKLIlPKvZ.DB_servlet_engine2", data:parameters, success:function(data){ if(data.result == "success") { $("#btnCoupon" + idx).addClass("hide"); $("#cpTitle" + idx).html("할인쿠폰"); alert("쿠폰받기가 완료됐습니다."); } else { alert("쿠폰받기에 실패했습니다."); } }, error: fn_AjaxError }) } // 쿠폰코드 등록 function goCouponCode() { if(confirm("코드등록 페이지로 이동하시겠습니까?")){ location.href = "/web/mypage/couponList.do;jsessionid=hA7AbpjXYgLHiIAnh910LGdz7aDeiOVoWicbe8hJ6iKdqqyd4OuVQaRoKLIlPKvZ.DB_servlet_engine2"; } } $(document).ready(function() { //Top Banner Slider if($('#detail_slider .swiper-slide').length > 1) { new Swiper('#detail_slider', { pagination	: '#detail_paging', paginationType	: 'fraction', nextButton	: '#detail_next', prevButton	: '#detail_prev', loop	: true }); } else { $('#detail_arrow').hide(); } $(".gallery-view1 .carousel").jCarouselLite({ btnNext	: ".gallery-view1 .next", btnPrev	: ".gallery-view1 .prev", speed	: 300, visible	: 5, circular	: false }); $(".gallery-view1 .carousel img").click(function() { //이미지 변경 $(".gallery-view1 .mid img").attr("src", $(this).attr("src")); }); $('.gallery-view1 .carousel li').click(function(){ //class 추가 $('.gallery-view1 .carousel li').removeClass('select'); $(this).addClass('select'); }); // 상품을 선택하세요 $('.comm-select1 .select-button').click(function(){ if($("#firstOptionList").css('display') == 'block') { $('.comm-select .select-list-option').css('display', 'none'); return ; } if($("#firstOptionList li").size() > 0) { if($("#firstOptionList").css('display') == 'none') { $('.comm-select .select-list-option').css('display', 'none'); $("#firstOptionList").css('display', 'block') } $('.comm-select').removeClass('open'); $('.comm-select1').addClass('open'); return false; } $.ajax({ url: "/web/sv/getDivInfList.ajax;jsessionid=hA7AbpjXYgLHiIAnh910LGdz7aDeiOVoWicbe8hJ6iKdqqyd4OuVQaRoKLIlPKvZ.DB_servlet_engine2", data: "prdtNum=SV00000991", success:function(data) { var list = data.list; var dataArr; var inx = 0; var count = 1; if(list != "") { productCount = list.length; $(list).each( function() { dataArr = "
"; $("#selectedItemWrapper ul").append(text); $("#selectedItemWrapper ul>li").last().attr("data-raw", ori_dataRaw); $("#selectedItemWrapper").css('display', 'block'); $('.comm-select .select-list-option').css('display', 'none'); if(productCount > 1) { $("#secondOptionList").empty(); } $("#addOptionList").empty(); $('.comm-select').removeClass('open'); if(productCount > 1) { $(".comm-select1 .select-button").html("1. 상품을 선택하세요"); } $(".comm-select2 .select-button").html("2. 옵션을 선택하세요"); selectedItemSaleAmt(); }); $("#selectedItemWrapper").on("click", ".del", function() { $(this).parents(".qty-list").remove(); if($(this).parents(".qty-list").size() == 0 ) { $("#selectedItemWrapper").css('display', 'block'); } selectedItemSaleAmt(); return ; }); $("#selectedItemWrapper").on("keyup", ".qty-input", function() { var stockNum = fn_replaceAll($(this).parents(".qty-list").find(".option-stockNum").text(), ",", ""); var thisDataRaw = jQuery.parseJSON($(this).parents(".qty-list").attr("data-raw")); var saleAmt = thisDataRaw.saleAmt; $(this).val($(this).val().replace(/[^0-9]/gi,"")); var keyCount = Number($(this).val()); if(keyCount > Number(stockNum)) { keyCount = stockNum; $(this).val(keyCount); } if(thisDataRaw.dlvAmtDiv == "DA03") { if(Number(thisDataRaw.maxiBuyNum) < keyCount) { //alert(data.maxiBuyNum + "까지 구매하실수 있습니다."); keyCount = thisDataRaw.maxiBuyNum; $(this).val(keyCount); } } $(this).parents(".qty-list").find(".price").text(commaNum(saleAmt * keyCount)); selectedItemSaleAmt(); }); $("#selectedItemWrapper").on("blur", ".qty-input", function() { var thisDataRaw = jQuery.parseJSON($(this).parents(".qty-list").attr("data-raw")); var saleAmt = thisDataRaw.saleAmt; var keyCount = $(this).val(); if(isNull(keyCount)) { keyCount = 1; $(this).val(keyCount); } if(thisDataRaw.dlvAmtDiv == "DA03") { if(Number(thisDataRaw.maxiBuyNum) < keyCount) { //alert(data.maxiBuyNum + "까지 구매하실수 있습니다."); keyCount = thisDataRaw.maxiBuyNum; $(this).val(keyCount); } } $(this).parents(".qty-list").find(".price").text(commaNum(saleAmt * keyCount)); selectedItemSaleAmt(); }); $("#selectedItemWrapper").on("click", ".addition", function() { var stockNum = fn_replaceAll($(this).parents(".qty-list").find(".option-stockNum").text(), ",", ""); var thisDataRaw = jQuery.parseJSON($(this).parents(".qty-list").attr("data-raw")); var saleAmt = thisDataRaw.saleAmt; var addtionCount = Number($(this).prev().val()) + 1; if(addtionCount <= stockNum) { $(this).prev().val(addtionCount); $(this).parents(".qty-list").find(".price").text(commaNum(saleAmt * addtionCount)); selectedItemSaleAmt(); } // 개별 배송비 if(thisDataRaw.dlvAmtDiv == "DA03") { if(Number(thisDataRaw.maxiBuyNum) < addtionCount) { //alert(data.maxiBuyNum + "까지 구매하실수 있습니다."); $(this).prev().val(thisDataRaw.maxiBuyNum); $(this).parents(".qty-list").find(".price").text(commaNum(saleAmt * addtionCount)); selectedItemSaleAmt(); } } }); $("#selectedItemWrapper").on("click", ".subtract", function() { var thisDataRaw = jQuery.parseJSON($(this).parents(".qty-list").attr("data-raw")); var saleAmt = thisDataRaw.saleAmt; var subtractCount = Number($(this).parents(".qty-list").find(".qty-input").val()) - 1; if(subtractCount >= 1) { $(this).parents(".qty-list").find(".qty-input").val(subtractCount); $(this).parents(".qty-list").find(".price").text(commaNum(saleAmt * subtractCount)); selectedItemSaleAmt(); } }); // 쿠폰리스트 체크 // fn_chkCouponList(); g_UE_corpId	="CSVM190009"; g_UE_prdtnum ="SV00000991"; g_UE_corpCd ="SV"; g_UE_getContextPath = ""; //fn_useepilInitUI(); fn_useepilInitUI("CSVM190009", "SV00000991", "SV"); //fn_useepilList(); fn_useepilList("CSVM190009", "SV00000991", "SV"); //-1:1문의 관련 설정 -------------------------------- g_Oto_corpId	="CSVM190009";	//업체 코드 g_Oto_prdtnum ="SV00000991";	//상품번호 g_Oto_corpCd ="SV"; g_Oto_getContextPath = ""; fn_otoinqInitUI("CSVM190009", "SV00000991", "SV"); fn_otoinqList("CSVM190009", "SV00000991", "SV", "064-796-8998"); // L.Point 적립 예상요금 출력 var price = fn_replaceAll($("#totalProductAmt").text(), ",",""); $("#lpointSavePoint").html(commaNum(parseInt((price * "0.5" / 100) / 10) * 10) + "원"); });
제주 콜드브루 마이빈스
콜드브루 더치커피 더치팩세트 10
식품의 경우 단순 변심으로 인한 환불은 불가합니다. 이 점 유의해주세요
제주 콜드브루 더치커피 1000ml