|
|
@@ -208,22 +208,33 @@ var cfnOpenIpinCertify = function (redirectUrl) {
|
|
|
* cfnAddCart(compsList);
|
|
|
*
|
|
|
* ex) 세트상품 장바구니 등록
|
|
|
- * let compsList = [];
|
|
|
- * for(let j = 0 ; j < length ; j++) { // 구성품 수량 만큼 for
|
|
|
- * let temp = new Object;
|
|
|
- * temp.goodsCd = "STYS000000016";
|
|
|
- * temp.itemCd = '14373757';
|
|
|
- * temp.optCd = "핑크120";
|
|
|
- * temp.goodsQty = 1;
|
|
|
- * temp.goodsType = "G056_S";
|
|
|
- * temp.cartGb = "C";
|
|
|
- * temp.afLinkCd = "afLinkCd";
|
|
|
- * temp.ithrCd = "G027_ZZZ";
|
|
|
- * temp.contentsLoc = "G028_YYY";
|
|
|
- * temp.planDtlSq = "123";
|
|
|
- * compsList.push(temp);
|
|
|
+ * let cartGoodsList = [];
|
|
|
+ * for(let i = 0 ; i < 세트상품수 ; i++) {
|
|
|
+ * let compsList = [];
|
|
|
+ * let goodsList = {
|
|
|
+ * cartCompsList : new Array()
|
|
|
+ * }
|
|
|
+ *
|
|
|
+ * for(let j = 0 ; j < 세트구성품수 ; j++) {
|
|
|
+ * let temp = new Object;
|
|
|
+ * temp.goodsCd = "STYS00000005";
|
|
|
+ * temp.itemCd = "A83F-DP568S";
|
|
|
+ * temp.optCd = "14019445-1";
|
|
|
+ * temp.goodsQty = 3;
|
|
|
+ * temp.goodsType = "G056_S";
|
|
|
+ * temp.cartGb = "C";
|
|
|
+ * temp.afLinkCd = "aaaa";
|
|
|
+ * temp.ithrCd = "12311";
|
|
|
+ * temp.contentsLoc = "afasd";
|
|
|
+ * temp.planDtlSq = "44";
|
|
|
+ * compsList.push(temp);
|
|
|
+ * }
|
|
|
+ *
|
|
|
+ * goodsList.cartCompsList = compsList;
|
|
|
+ * cartGoodsList.push(goodsList);
|
|
|
* }
|
|
|
- * cfnAddCart(compsList);
|
|
|
+ *
|
|
|
+ * cfnAddCart(cartGoodsList);
|
|
|
*
|
|
|
* </pre>
|
|
|
* @since : 2021/02/24
|
|
|
@@ -239,7 +250,6 @@ function cfnAddCart(cartList) {
|
|
|
contentType: 'application/json',
|
|
|
dataType : 'json',
|
|
|
success : function(result) {
|
|
|
- alert(result.cartGb + " / " + result.message)
|
|
|
if(result.message == "SUCCESS") {
|
|
|
if(result.cartGb == "C") {
|
|
|
mcxDialog.confirm("<div class="+"dialog-title"+">"+"상품이 쇼핑백에 추가되었습니다.</div><p>쇼핑백으로 이동하시겠습니까?</p>", {
|
|
|
@@ -256,8 +266,6 @@ function cfnAddCart(cartList) {
|
|
|
}
|
|
|
$("#directOrderForm").html(orderHtml);
|
|
|
|
|
|
- alert("cartGb = O 영역 ::: " + orderHtml);
|
|
|
-
|
|
|
$("#directOrderForm").submit();
|
|
|
|
|
|
//location.href='/cart/list/form';
|