|
|
@@ -268,23 +268,25 @@ function cfnAddCart(cartList) {
|
|
|
success : function(result) {
|
|
|
if(result.message == "SUCCESS") {
|
|
|
if(result.cartGb == "C") {
|
|
|
- mcxDialog.confirm("<div class="+"dialog-title"+">"+"상품이 쇼핑백에 추가되었습니다.</div><p>쇼핑백으로 이동하시겠습니까?</p>", {
|
|
|
- cancelBtnText: "계속 쇼핑하기",
|
|
|
- sureBtnText: "쇼핑백 가기",
|
|
|
- sureBtnClick: function(){
|
|
|
- location.href='/cart/list/form'; //내 쇼핑백 이동url
|
|
|
+ if(!(cartList != null && cartList[0].multiGoodsGb != null && cartList[0].multiGoodsGb == "O")) {
|
|
|
+ mcxDialog.confirm("<div class=" + "dialog-title" + ">" + "상품이 쇼핑백에 추가되었습니다.</div><p>쇼핑백으로 이동하시겠습니까?</p>", {
|
|
|
+ cancelBtnText: "계속 쇼핑하기",
|
|
|
+ sureBtnText : "쇼핑백 가기",
|
|
|
+ sureBtnClick : function () {
|
|
|
+ location.href = '/cart/list/form'; //내 쇼핑백 이동url
|
|
|
+ }
|
|
|
+ });
|
|
|
+
|
|
|
+ // PC버전에서만 동작해야함(퀵메뉴)
|
|
|
+ if (navigator.userAgent.indexOf('Mobile') == -1) {
|
|
|
+ fnGetCartGoodsList();
|
|
|
+ }
|
|
|
+
|
|
|
+ // 장바구니 팝업에서
|
|
|
+ if (cartList != null && cartList[0].popupYn != null && cartList[0].popupYn == "Y") {
|
|
|
+ let data = {shotDelvUseYn: $("input[name=shotDelvUseYn]:checked").val()};
|
|
|
+ getCartList(data);
|
|
|
}
|
|
|
- });
|
|
|
-
|
|
|
- // PC버전에서만 동작해야함(퀵메뉴)
|
|
|
- if(navigator.userAgent.indexOf('Mobile') == -1){
|
|
|
- fnGetCartGoodsList();
|
|
|
- }
|
|
|
-
|
|
|
- // 장바구니 팝업에서
|
|
|
- if(cartList != null && cartList[0].popupYn != null && cartList[0].popupYn == "Y") {
|
|
|
- let data = {shotDelvUseYn : $("input[name=shotDelvUseYn]:checked").val()};
|
|
|
- getCartList(data);
|
|
|
}
|
|
|
} else if (result.cartGb == "O"){
|
|
|
let orderHtml = "";
|