PageSourceSearch

https://www.catpang.com/shop/goods/goods_cart.php

html catpang.com collected 2026-10-08 18:51:06 UTC 120,888 bytes, 2,799 lines download raw bytes

1<!DOCTYPE html>
2<html lang="ko">
3<head>
4<meta charset="euc-kr" />
5<meta http-equiv="X-UA-Compatible" content="IE=Edge, Chrome=1" />
6<meta http-equiv="Pragma" content="no-cache"/>
7<meta name="format-detection" content="telephone=no"/>
8<script type="application/ld+json">
9{
10"@context": "https://schema.org",
11"@type": "Organization",
12"name": "ĹÆÎ",
13"url": "https://www.catpang.com",
14"sameAs": [
15    "https://www.instagram.com/catpang_official",
16    "https://play.google.com/store/apps/details?id=com.catpang.byapps",
17    "https://itunes.apple.com/kr/app/id1340047266?l=ko&ls=1&mt=8"
18]}
19</script>
19
20
21<!-- 
21<script type="text/javascript">
22    const ua = window.navigator.userAgent;
23    const msie = ua.indexOf('Trident/') > -1;
24    const redirectUrl = 'microsoft-edge:' + window.location.href;
25    const catOrDog =  window.location.hostname.indexOf('catpang') > -1 ? 'ĹÆÎ' : 'µµ±×ÆÎ';
26    const alertMessage = catOrDog + 'Àº ÀͽºÇ÷η¯¿¡¼­ ¿øÈ°ÇÑ »ç¿ëÀÌ ¾î·Æ½À´Ï´Ù. Edge, Chrome ºê¶ó¿ìÀú³ª ' + catOrDog + ' ¸ð¹ÙÀÏÀ¥, APP¸¦ »ç¿ëÇØÁÖ¼¼¿ä. "È®ÀÎ"À» Ŭ¸¯Çϸé Edge ºê¶ó¿ìÀú·Î À̵¿ÇÕ´Ï´Ù.';
27
28    if(msie){
29        if (confirm(alertMessage)) {
30            window.location = redirectUrl;
31        }
32    } else if (/Trident.*rv:/.test(navigator.userAgent)) {
33        if (confirm(alertMessage)) {
34            window.location = redirectUrl;
35        }
36    }
37</script>
37 -->
38<!-- Google Tag Manager -->
39<script>
vendor: 331 bytes, lines 39-43
39(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
40new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
41j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
42'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
43})(window,document,'script','dataLayer','
43GTM-PVBMQD4
vendor: 3 bytes, line 43
43');
43</script>
43
44<!-- End Google Tag Manager -->
45
46<!-- Global site tag (gtag.js) - Google Analytics -->
47<!--
vendor: 64 bytes, line 47
47 <script async src="https://www.googletagmanager.com/gtag/js?id=
47UA-99774142-1
vendor: 12 bytes, line 47
47"></script> 
47-->
48<script>
49    
vendor: 145 bytes, lines 49-52
49window.dataLayer = window.dataLayer || [];
50    function gtag() { dataLayer.push(arguments); }
51    gtag('js', new Date());
52    gtag('config', '
52AW-851611828
vendor: 9 bytes, lines 52-53
52');
53    
53gtag('config', 'UA-99774142-1');
54</script>
54
55
56
57<meta name="description" content="¹Ý·Á¿ëǰ °í¾çÀÌ¿ëǰ Àü¹®¸ô! Á¾ÇÕ¼îÇθô ±âÁØÀÇ ½ÃÀÛ, À¯Åë±âÇÑ 100% Ç¥½ÃÁ¦ ¿î¿µ, 3¸¸¿øÀÌ»ó ¹«·á¹è¼Û, 4¸¸¿øÀÌ»ó »çÀºÇ°ÇýÅÃ">
58<meta name="keywords" content="°í¾çÀÌ¿ëǰ, °í¾çÀ̼îÇθô, ³ÉÀ̼îÇθô, °í¾çÀÌ¿ëǰ, ³ÉÀÌ¿ëǰ, ¾Ö¹¦¿ëǰ, Ĺ¿ëǰ, °í¾çÀÌ»ç·á, ºê·£µå»ç·á, Çì¾îº¼»ç·á, À¯±â³ó»ç·á, ±â´É¼º»ç·á, Ĺ»ç·á, °í¾çÀÌÅëÁ¶¸², °í¾çÀÌĵ, °í¾çÀÌÁÖ½Äĵ, °í¾çÀ̰£½Äĵ, °í¾çÀÌÆÄ¿ìÄ¡, °í¾çÀ̰£½Ä, ¾Ö¹¦°£½Ä, ĹǪµå, °í¾çÀÌÈ­Àå½Ç, °í¾çÀ̸ð·¡, °í¾çÀÌĹŸ¿ö, °í¾çÀ̽ºÅ©·¡ÃÄ, °í¾çÀÌÇϿ콺, °í¾çÀÌÀ̵¿Àå, °í¾çÀÌÀå³­°¨, °í¾çÀÌÇØ¸Ô, °í¾çÀÌÅͳÎ, °í¾çÀÌĹ´Ø, °í¾çÀÌ¿µ¾çÁ¦, °í¾çÀ̸ð·¡Å»ÃëÁ¦, °í¾çÀÌ¿Ê, °í¾çÀÌÀÇ·ù, °í¾çÀ̽ıâ, °í¾çÀÌ¿Àµ­²¿Ä¡, °í¾çÀ̳¬½Ë´ë, ¸¶µûµûºñ¸·´ë, °í¾çÀÌÇ®, ű׶ó½º">
59<meta name="naver-site-verification" content="0670509113776d62599c6c2635e869ff3629d008"/>
60<meta name="robots" content="ALL">
61<meta name="author" content="ĹÆÎ">
62<meta property="og:type" content="website">
63<meta property="og:title" content="Àå¹Ù±¸´Ï | ĹÆÎ">
64<meta property="og:description" content="´ëÇѹα¹ ¹Ý·Á¿ëǰ °í¾çÀÌ¿ëǰ Àü¹®¸ô! Á¾ÇÕ¼îÇθô ±âÁØÀÇ ½ÃÀÛ, À¯Åë±âÇÑ 100% Ç¥½ÃÁ¦ ¿î¿µ, 3¸¸¿øÀÌ»ó ¹«·á¹è¼Û, 2¸¸¿øÀÌ»ó »çÀºÇ°ÇýÅÃ">
65<meta property="og:image" content="https://www.catpang.com/shop/skin_new/images/ico/logo_cnew.png">
66<meta property="og:image:width" content="1050" />
67<meta property="og:image:height" content="540" />
68<meta property="og:url" content="https://www.catpang.com">
69<meta itemprop="name" content="ĹÆÎ">
70<meta itemprop="description" content="´ëÇѹα¹ ¹Ý·Á¿ëǰ °í¾çÀÌ¿ëǰ Àü¹®¸ô! Á¾ÇÕ¼îÇθô ±âÁØÀÇ ½ÃÀÛ, À¯Åë±âÇÑ 100% Ç¥½ÃÁ¦ ¿î¿µ, 3¸¸¿øÀÌ»ó ¹«·á¹è¼Û, 2¸¸¿øÀÌ»ó »çÀºÇ°ÇýÅÃ">
71<meta itemprop="image" content="https://www.catpang.com/shop/skin_new/images/ico/logo_cnew.png">
72<title>Àå¹Ù±¸´Ï | ĹÆÎ</title>
73    
74<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no, viewport-fit=cover">
75
76
77<link rel="apple-touch-icon-precomposed" href="/shop/skin_new/images/favicon/apple-icon-114x114.png" />
78<link rel="shortcut icon" href="/shop/skin_new/images/favicon/apple-icon-114x114.png" sizes="114x114">
79
80<link rel="apple-touch-icon" sizes="57x57" href="/shop/skin_new/images/favicon/apple-icon-57x57.png">
81<link rel="apple-touch-icon" sizes="60x60" href="/shop/skin_new/images/favicon/apple-icon-60x60.png">
82<link rel="apple-touch-icon" sizes="72x72" href="/shop/skin_new/images/favicon/apple-icon-72x72.png">
83<link rel="apple-touch-icon" sizes="76x76" href="/shop/skin_new/images/favicon/apple-icon-76x76.png">
84<link rel="apple-touch-icon" sizes="114x114" href="/shop/skin_new/images/favicon/apple-icon-114x114.png">
85<link rel="apple-touch-icon" sizes="120x120" href="/shop/skin_new/images/favicon/apple-icon-120x120.png">
86<link rel="apple-touch-icon" sizes="144x144" href="/shop/skin_new/images/favicon/apple-icon-144x144.png">
87<link rel="apple-touch-icon" sizes="152x152" href="/shop/skin_new/images/favicon/apple-icon-152x152.png">
88<link rel="apple-touch-icon" sizes="180x180" href="/shop/skin_new/images/favicon/apple-icon-180x180.png">
89<link rel="icon" type="image/png" sizes="192x192" href="/shop/skin_new/images/favicon/android-icon-192x192.png">
90<link rel="icon" type="image/png" sizes="32x32" href="/shop/skin_new/images/favicon/favicon-32x32.png">
91<link rel="icon" type="image/png" sizes="96x96" href="/shop/skin_new/images/favicon/favicon-96x96.png">
92<link rel="icon" type="image/png" sizes="16x16" href="/shop/skin_new/images/favicon/favicon-16x16.png">
93<link href="/shop/skin_new/css/font.css?time=220613" rel="stylesheet" type="text/css" />
94<link href="/shop/skin_new/css/win-font.css?time=211122" rel="stylesheet" type="text/css" />
95<link rel="stylesheet" type="text/css" href="/shop/skin_new/css/common.css?time=vvvvv221110112vv1" media="all" />
96<link href="/shop/skin_new/css/video-js.css" rel="stylesheet">
97<!--[if lt IE 10 ]><link rel="stylesheet" type="text/css" href="/shop/skin_new/css/lowie.css" media="all" /><![endif]-->
98<!-- SCRIPT ¸µÅ© -->
99<script src="/shop/skin_new/js/html5.js"></script>
vendor: 2 bytes, line 99
99
100<script src="/shop/skin_new/js/jquery-1.11.3.min.js"></script>
vendor: 2 bytes, line 100
100
101<script src="/shop/skin_new/js/jquery-ui.min.js"></script>
vendor: 2 bytes, line 101
101
102<script src="/shop/skin_new/js/jquery.mCustomScrollbar.concat.min.js"></script>
vendor: 2 bytes, line 102
102
103<script src="/shop/skin_new/js/jquery.mouse_wheel.js"></script>
vendor: 2 bytes, line 103
103
104<script src="/shop/skin_new/js/jquery.easing.1.3.js"></script>
vendor: 2 bytes, line 104
104
105<script src="/shop/skin_new/js/owl.carousel.min.js"></script>
vendor: 2 bytes, line 105
105
106<script src="/shop/skin_new/js/jquery.number.min.js"></script>
vendor: 2 bytes, line 106
106
107<script src="/shop/skin_new/js/jquery.slides.min.js"></script>
vendor: 2 bytes, line 107
107
108<script src="/shop/skin_new/js/jquery.cookie.js"></script>
vendor: 2 bytes, line 108
108
109<script src="/shop/skin_new/js/common.js?time=2206091"></script>
vendor: 2 bytes, line 109
109
110<script src="/shop/skin_new/js/goods_view.js?time=2102161112"></script>
vendor: 2 bytes, line 110
110
111<script src="/shop/skin_new/js/underscore.js"></script>
vendor: 2 bytes, line 111
111
112<script src="/shop/skin_new/js/jquery.timer.js"></script>
112
113<!-- If you'd like to support IE8 -->
114<script src="/shop/skin_new/js/videojs-ie8.min.js"></script>
vendor: 2 bytes, line 114
114
115<script src="/shop/skin_new/js/iscroll.js"></script>
vendor: 2 bytes, line 115
115
116<script src="//t1.kakaocdn.net/kakao_js_sdk/v1/kakao.min.js"></script>
116
117
118<script type="text/javascript">
119</script>
vendor: 2 bytes, line 119
119
120<script>
121window.onkeydown = function() {
122	var kcode = event.keyCode;
123	if(kcode == 123) event.returnValue = false;
124}
125</script>
125
126
127<!-- Facebook Pixel Code -->
128<script>
vendor: 408 bytes, lines 128-137
128
129!function(f,b,e,v,n,t,s)
130{if(f.fbq)return;n=f.fbq=function(){n.callMethod?
131n.callMethod.apply(n,arguments):n.queue.push(arguments)};
132if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0';
133n.queue=[];t=b.createElement(e);t.async=!0;
134t.src=v;s=b.getElementsByTagName(e)[0];
135s.parentNode.insertBefore(t,s)}(window, document,'script',
136'https://connect.facebook.net/en_US/fbevents.js');
137fbq('init', '
137194918948541606
vendor: 32 bytes, lines 137-138
137');
138fbq('track', 'PageView');
139</script>
139
140<noscript><img height="1" width="1" style="display:none"
141src="https://www.facebook.com/tr?id=194918948541606&ev=PageView&noscript=1"
142/></noscript>
143<!-- End Facebook Pixel Code -->
144
145<!-- ³×À̹ö °øÅë ½ºÅ©¸³Æ® start -->
146<script type="text/javascript" src="//wcs.naver.net/wcslog.js"></script>
vendor: 2 bytes, line 146
146
147<script type="text/javascript">
148if (!wcs_add) var wcs_add={};
149wcs_add["wa"] = "s_49ce136aa8ab";
150wcs.inflow("catpang.com");
151</script>
151
152<!-- ³×À̹ö °øÅë ½ºÅ©¸³Æ® end -->
153</head>
154
155<script>
156    (function() {
157    $(function() {
158
159        function Cart() {}
160        $.extend(Cart.prototype, {
161            reload: function() {
162                $.ajax({
163                    type: 'POST',
164                    url: '/shop/goods/goods_cart_ajax.php',
165                    data: { mode: 'getCount' },
166                    dataType: 'json',
167                    success: function(res) {
168                        if (res.success === true) {
169                             // Àå¹Ù±¸´Ï¿¡ ´ã±ä »óǰ ¼ö·® º¯°æ
170                             var _cart_count = res.data.total_cart_count;
171                            $('#cart_count').text(_cart_count > 999 ? 999 : _cart_count);
172                            $('#cart_count_fixed').text(_cart_count > 999 ? 999 : _cart_count);
173                            $('.cart_bottom_count').text(_cart_count > 999 ? 999 : _cart_count);
174                            
175                            if(_cart_count > 0) {
176                                $('.cart_viewall').show();
177                                $('.cart_bottom').show();
178                            } else {
179                                $('.cart_viewall').hide();
180                                $('.cart_bottom').hide();
181                            }
182
183                            var _html = [];
184                               $.each(res.data.cart_list, function(k, v) {
185
186                                    _html.push('<div class="item-info">');
187                                    _html.push('  <a href="/product/'+v.viewCode+'" class="photo"><img src="'+v.image+'" alt="'+v.viewName+'" onerror="this.src=https://cdn.catpang.com/catpang/data/skin/standard/img/common/noimg_300.gif"></a>');
188                                    _html.push('  <a href="/product/'+v.viewCode+'" class="name"><span><b>'+v.viewName+v.optionName+'</b></span></a>');
189                                    _html.push('</div>');
190                               });
191                            $('.cart_view_cnt').text("("+_cart_count+"°³)");
192                            $('.cart-item').empty().append(_html.join('\n'));
193                        }
194                        return false;
195                    }
196                });
197            }
198        });
199        $.Cart = new Cart();
200
201        //»óǰ°Ë»ö
202        $('#frm_search').submit(function() {
203            if( $('#search_category').val() == 0) {
204                if ($('#search_word_complete').val().replace(/\s/g, '').length == 0) { return false; }
205            }
206        });
207
208
209
210    });
211
212})(jQuery);
213
214
215</script>
215
216<body><!-- Event snippet for ĹÆÎ-NÆäÀÌ(Àå¹Ù±¸´Ï) conversion page -->
217
218
219<!-- 
219<script src="https://pay.naver.com/assets/button/latest/npay.button.js" charset="UTF-8"></script>
219 -->
220<script src="https://npay-order.pstatic.net/assets/button/latest/npay.button.js" charset="UTF-8"></script>
220
221
222<script>
223
224window.addEventListener('load',function(){
225    var goods_cart = /goods_cart/.test(window.location.pathname)
226        if(goods_cart){
227        document.querySelector('.npay_main_cell').addEventListener('click', function(){
228            gtag('event', 'conversion', {'send_to': 'AW-851611828/4oiiCPXWuMcCELShipYD'});
229        })
230    }
231});
232
233
234// ¦¡¦¡ npay ·»´õ Á÷·ÄÈ­ ¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡
235// Npay.order.create ´Â Promise ¸¦ ¹ÝȯÇÏ´Â ºñµ¿±â ÇÔ¼ö(³»ºÎ¿¡¼­ waitForDOMReady/init ¸¦ await)¶ó,
236// °°Àº ÄÁÅ×À̳ʿ¡ Áßø È£ÃâµÇ¸é ¸ÕÀú È£ÃâÇÑ ÂÊÀÌ ³ªÁß¿¡ ·»´õ¸µÀ» ³¡³» ÃֽŠ»óŸ¦ µ¤¾î¾µ ¼ö ÀÖ´Ù.
237// ÄÁÅ×À̳ʺ°·Î ¼ø¹øÀ» ¸Å°Ü "¸¶Áö¸· È£Ã⸸" ½ÇÇàÇϰí, üÀÎÀ¸·Î Á÷·ÄÈ­ÇÑ´Ù.
238var _npaySeq = {}, _npayChain = {}, _npayLast = {}, _npaySdkPromise = null;
239var _npayRendered = {}, _npayArmed = {};
240
241// Ȱ¼º/ºñȰ¼º ÀüȯÀ» Ŭ·¡½º Åä±Û·Î ó¸®ÇÑ´Ù.
242// create() ´Â È£ÃâµÉ ¶§¸¶´Ù renderInitialDisabledButton() À¸·Î ¹Ýµå½Ã ȸ»öÀ» °ÅÄ¡¹Ç·Î,
243// »óŰ¡ ¹Ù²ð ¶§¸¶´Ù create ¸¦ ºÎ¸£¸é ȸ»ö¡êÃÊ·ÏÀÌ °è¼Ó ¿Ô´Ù°¬´Ù ÇÑ´Ù.
244// ÇÑ ¹ø ±×·ÁÁø µÚ¿¡´Â DOM Ŭ·¡½º¸¸ ¹Ù²ã¼­ ±ôºýÀÓÀ» ¾ø¾Ø´Ù.
245function _npaySetEnabled(containerId, enabled) {
246    var box = document.getElementById(containerId);
247    if (!box) { return; }
248    var w = box.querySelectorAll('.npay_button_sdk_wrapper');
249    for (var i = 0; i < w.length; i++) {
250        w[i].classList.remove(enabled ? 'color_disabled' : 'color_green');
251        w[i].classList.add(enabled ? 'color_green' : 'color_disabled');
252        if (enabled) { w[i].classList.remove('disabled'); } else { w[i].classList.add('disabled'); }
253    }
254    var a = box.querySelectorAll('[data-npay-component]');
255    for (var j = 0; j < a.length; j++) {
256        if (enabled) { a[j].classList.remove('disabled'); } else { a[j].classList.add('disabled'); }
257    }
258}
259
260
261// ÆäÀÌÁö ·Îµù ¿Ï·á ´ë±â.
262// SDK ´Â iframe(api.pay.naver.com) À» ¶ç¿ì°í postMessage ·Î Åë½ÅÇϴµ¥ rpc ŸÀӾƿôÀÌ 1ÃÊ´Ù.
263// ·Îµù Áß¿¡´Â »óǰ À̹ÌÁö ¼ö½Ê °³¿Í ¿¬°á °æÇÕÀÌ ³ª 1Ãʸ¦ ³Ñ±â±â ½±°í, ±×·¯¸é SDK °¡ Æ÷±âÇØ
264// ¹öưÀÌ È¸»öÀΠä·Î ¸ØÃá´Ù. ÃÖÃÊ ·»´õ´Â window load ÀÌÈÄ·Î ¹Ì·é´Ù.
265// (ÀÌ¹Ì ·ÎµùÀÌ ³¡³­ µÚ È£ÃâµÇ´Â ¿É¼Ç º¯°æ µîÀº Áï½Ã Åë°úÇÑ´Ù.)
266function _npayWaitLoad() {
267    if (document.readyState === 'complete') { return Promise.resolve(); }
268    return new Promise(function(resolve){
269        var done = false;
270        function go(){ if (!done) { done = true; resolve(); } }
271        window.addEventListener('load', go);
272        setTimeout(go, 8000);   // load À̺¥Æ®°¡ ³¡³» ¾È ¿Íµµ 8ÃÊ µÚ ÁøÇà
273    });
274}
275
276// SDK Áغñ ´ë±â.
277// npay.button.js ´Â µ¿±â ½ºÅ©¸³Æ®¶ó Á¤»óÀ̸é ÀÌ¹Ì ·ÎµåµÅ ÀÖÁö¸¸, ³×Æ®¿öÅ© ½ÇÆÐ³ª
278// ¾Û WebView ÀÇ µµ¸ÞÀÎ Â÷´ÜÀ¸·Î Npay °¡ ¾øÀ» ¼ö ÀÖ´Ù. ±× °æ¿ì ·»´õ°¡ Á¶¿ëÈ÷ Á×¾î
279// ¹öưÀÌ ¾Æ¿¹ ¾È ³ª¿Â´Ù ¡æ Æú¸µÇÏ´Ù 2ÃÊ ³ÑÀ¸¸é ½ºÅ©¸³Æ®¸¦ ÀçÁÖÀÔÇÑ´Ù.
280function _npayWaitSdk() {
281    if (window.Npay && Npay.order) { return Promise.resolve(); }
282    if (_npaySdkPromise) { return _npaySdkPromise; }
283    _npaySdkPromise = new Promise(function(resolve, reject){
284        var waited = 0, reinjected = false;
285        (function poll(){
286            if (window.Npay && Npay.order) { return resolve(); }
287            if (waited >= 2000 && !reinjected) {
288                reinjected = true;
289                console.warn("[npay] SDK \ubbf8\ub85c\ub4dc - \uc2a4\ud06c\ub9bd\ud2b8 \uc7ac\uc8fc\uc785");
290                var s = document.createElement('script');
291                s.src = 'https://npay-order.pstatic.net/assets/button/latest/npay.button.js';
292                s.charset = 'UTF-8';
293                s.onerror = function(){ console.error("[npay] SDK \uc2a4\ud06c\ub9bd\ud2b8 \ub85c\ub4dc \uc2e4\ud328"); };
294                document.head.appendChild(s);
295            }
296            if (waited >= 10000) { return reject(new Error('npay sdk timeout')); }
297            waited += 100;
298            setTimeout(poll, 100);
299        })();
300    });
301    // ½ÇÆÐÇÏ¸é ´ÙÀ½ ·»´õ¿¡¼­ ´Ù½Ã ½ÃµµÇÒ ¼ö ÀÖ°Ô ÃʱâÈ­
302    _npaySdkPromise.catch(function(){ _npaySdkPromise = null; });
303    return _npaySdkPromise;
304}
305
306// ¿¬¼Ó È£Ãâ ¹­±â(debounce).
307// ƯÈ÷ Àå¹Ù±¸´Ï´Â ÇÑ ajax ÄÝ¹é ¾È¿¡¼­ updateStockMainStatus °¡ false¡ætrue¡æfalse ½ÄÀ¸·Î
308// ¿©·¯ ¹ø ºÒ¸®°í, ¼ö·® º¯°æ¡¤»èÁ¦¸¶´Ù ¹Ýº¹µÈ´Ù. ±×¶§¸¶´Ù ·»´õÇϸé
309// "»ç¶óÁü ¡æ ȸ»ö ¡æ ÃÊ·Ï" »çÀÌŬÀÌ ±× Ƚ¼ö¸¸Å­ º¸ÀδÙ.
310// ¸¶Áö¸· »óÅ Çϳª¸¸ ·»´õÇÑ´Ù.
311var _npayPending = {}, _npayTimer = {};
312function _npayRender(containerId, state, fn) {
313    _npayPending[containerId] = { state: state, fn: fn };
314    if (_npayTimer[containerId]) { clearTimeout(_npayTimer[containerId]); }
315    _npayTimer[containerId] = setTimeout(function(){
316        _npayTimer[containerId] = null;
317        var p = _npayPending[containerId];
318        if (!p) { return; }
319        _npayPending[containerId] = null;
320        _npayCommit(containerId, p.state, p.fn);
321    }, 350);
322    return _npayChain[containerId];
323}
324
325function _npayCommit(containerId, state, fn) {
326    // °°Àº »óÅ·ÎÀÇ Àç·»´õ´Â °Ç³Ê¶Ú´Ù.
327    // create() ´Â ¸Å¹ø empty() ¡æ ºñȰ¼º¹öư ¡æ iframe RPC ¡æ Ȱ¼º¹öư ¼øÀ¸·Î ´Ù½Ã ±×¸®¹Ç·Î
328    // »óŰ¡ ¾È ¹Ù²î¾ú´Âµ¥ ¶Ç ºÎ¸£¸é ¹öưÀÌ »ç¶óÁ³´Ù ȸ»öÀ̾ú´Ù ÇÏ´Â ±ôºýÀÓ¸¸ »ý±ä´Ù.
329    if (_npayLast[containerId] === state && _npayChain[containerId]) {
330        return _npayChain[containerId];
331    }
332    // ÀÌ¹Ì ·»´õµÈ ¹öưÀÌ¸é ´Ù½Ã create ÇÏÁö ¾Ê°í Ŭ·¡½º¸¸ Åä±ÛÇÑ´Ù.
333    // ´Ü, ÃÖÃÊ ·»´õ°¡ ºñȰ¼ºÀ̾úÀ¸¸é SDK °¡ Ŭ¸¯ ¸®½º³Ê¸¦ ¾È ºÙ¿´À¸¹Ç·Î
334    // Ȱ¼ºÀ¸·Î ¹Ù²Ü ¶§´Â ½ÇÁ¦ create °¡ ÇÊ¿äÇÏ´Ù(_npayArmed ·Î ±¸ºÐ).
335    if (_npayRendered[containerId] && (!state || _npayArmed[containerId])) {
336        _npayLast[containerId] = state;
337        _npaySetEnabled(containerId, state);
338        return _npayChain[containerId];
339    }
340    _npayLast[containerId] = state;
341    var my = _npaySeq[containerId] = (_npaySeq[containerId] || 0) + 1;
342    _npayChain[containerId] = Promise.resolve(_npayChain[containerId])
343        .catch(function(){})
344        .then(function(){
345            if (my !== _npaySeq[containerId]) { return; }   // µÚ¿¡ ´õ ÃֽŠ¿äûÀÌ ÀÖÀ¸¸é °Ç³Ê¶Ü
346            return _npayWaitLoad().then(_npayWaitSdk).then(function(){
347                if (my !== _npaySeq[containerId]) { return; }
348                // Æú¹é ¿¹¾àÀº ¼º°ø/½ÇÆÐ¿Í ¹«°üÇÏ°Ô °Ç´Ù.
349                // create() °¡ iframe ½ÇÆÐ·Î reject ÇÏ¸é ¾Æ·¡ then ÀÌ ½ÇÇàµÇÁö ¾Ê´Âµ¥,
350                // Á¤ÀÛ Æú¹éÀÌ ÇÊ¿äÇÑ »óȲÀÌ ¹Ù·Î ±× °æ¿ì´Ù.
351                if (typeof _npayFallback === 'function') {
352                    setTimeout(function(){ _npayFallback(containerId, state); }, 1500);
353                    setTimeout(function(){ _npayFallback(containerId, state); }, 7000);
354                }
355                return Promise.resolve(fn()).then(function(r){
356                    _npayRendered[containerId] = true;
357                    if (state) { _npayArmed[containerId] = true; }
358                    return r;
359                });
360            });
361        })
362        .catch(function(e){
363            _npayLast[containerId] = undefined;   // ½ÇÆÐ ½Ã ´ÙÀ½ È£Ãâ¿¡¼­ ´Ù½Ã ½Ãµµ
364            _npayRendered[containerId] = false;
365            console.error("[npay] render \uc2e4\ud328: " + containerId, e);
366        });
367    return _npayChain[containerId];
368}
369
370function renderNaverMainPayButton(isAvailable = false) {
371    return _npayRender('npay-button-container', isAvailable, function(){
372    // ±âÁ¸ ¹öư ¿µ¿ª ÃʱâÈ­ (Áߺ¹ »ý¼º ¹æÁö)
373    $('#npay-button-container').empty();
374
375        return Npay.order.create({
376        // Çʼö: °¡¸ÍÁ¡ ¹öư ÀÎÁõŰ
377        buttonKey: '2A515EC2-8223-4008-8E32-2EEC8AA30B67',
378        // Çʼö: ¹öưÀÌ ·»´õ¸µµÉ ÄÁÅ×À̳ÊÀÇ ID
379        containerId: 'npay-button-container',
380        // Çʼö: ÁÖ¹® µî·Ï API ¹öÀü('1.0' ¶Ç´Â '2.1')
381        orderRegistrationVersion: '2.1',
382        // Çʼö: ¹öư ŸÀÔ
383        type: 'template',
384
385        // ¼±ÅÃ: ¹öư »ö»ó Å׸¶(green / white), ±âº»°ª: green
386        colorTheme: 'green',
387        // ¼±ÅÃ: ¹öư Ȱ¼ºÈ­ ¿©ºÎ, ±âº»°ª: true
388        enable: isAvailable,
389        // ¼±ÅÃ: Ç¥½ÃÇÒ ÄÄÆ÷³ÍÆ® ¼³Á¤(¹Ì¼³Á¤ ½Ã ÄÄÆ÷³ÍÆ® ¹Ì³ëÃâ)
390        components: {
391        talkTalk: false, // ÅåÅå ¹öư ³ëÃâ ¿©ºÎ
392        wishlist: false, // ÂòÇϱ⠹öư ³ëÃâ ¿©ºÎ
393        benefitMessage: true, // ÇýÅà ¹®±¸ ³ëÃâ ¿©ºÎ
394        benefitCoachMark: false // ÇýÅà ÄÚÄ¡¸¶Å© ³ëÃâ ¿©ºÎ
395        },
396
397        // ±¸¸Å ¹öư Ŭ¸¯ Çڵ鷯
398        onBuyClick: async function () {
399            var res = await naverPayBuyBtn();
400            console.log(res);
401            // res.data.redirectUrl¿¡¼­ key, merchantNo ÃßÃâ
402            if (res === false) {
403                // Ãë¼Ò ¶Ç´Â °ª ¾øÀ½ ¡æ °áÁ¦Ã¢ ¾È¶ä
404                return false;
405            }
406
407            var buy = (res && res.data && res.data.buy) ? res.data.buy : "";
408            var no = (res && res.data && res.data.no) ? res.data.no : "";
409
410            if(buy && no) {
411                return {
412                    key: buy,           // ÃßÃâµÈ ÀÎÁõŰ
413                    merchantNo: no // ÃßÃâµÈ °¡¸ÍÁ¡ ¹øÈ£
414                }
415            }
416        }
417
418    });
419    });
420}
421
422function updateStockMainStatus(newFlag) {
423    naver_stock_flag = newFlag;
424    renderNaverMainPayButton(naver_stock_flag); 
425}
426
427
428</script>
428
429
430<style>
431ol, ul, li {
432    list-style: none;
433}
434
435/* ÄíÆùÀû¿ë */
436.popCoupon.a{}
437.popCoupon.a .pbd{
438    max-width: 562px;
439}
440
441
442
443/* ÆË¾÷ ·¹À̾î */	
444/* radio */	
445.radio{position:relative;display:inline-block;vertical-align:middle;line-height: 1;}	
446.radio + .radio{margin-left:10px;}	
447.radio>.txt:empty::before {   margin-right: 0px;}	
448.radio>input{position:absolute;left:17px;top:18px;padding: 0;margin: 0px;width: 24px;height: 24px;}	
449.radio>.txt::before{width: 24px;height: 24px;background: url(/shop/skin_new/images/ico/form.png) no-repeat;content:"";display:inline-block;vertical-align: -7px;background-size: 75px auto;background-position-x: -30px;margin-right: 5px;}	
450.radio>input:checked + .txt::before{background-position-y: -30px;}	
451.radio>input:disabled + .txt::before{background-position-y: -60px;}	
452.radio>input:checked:disabled + .txt::before{ background-position-y:-90px; }	
453.radio>.txt{/* display: inline-block; *//* vertical-align: middle; *//* margin-left: 5px; *//* padding-left: 30px; *//* line-height: 1.6; *//* padding-top: 0px; */}
454.radio .radio_info{display:block;margin-top:7px;color:#9a9a9a;}	/* CSR-2458 220126 lju02 */
455	
456.popLayer {display:block;}	
457.popLayer>.pbd{position:relative;overflow: hidden;/* padding-top:50px; */min-width: 200px;}	
458.popLayer>.pbd>.phd{height: 60px;position: relative;}	
459.popLayer>.pbd>.phd>.in{position: absolute;left:0px;right:0px;top:0px;z-index:10;height: 50px;text-align:center;background-color: #ffffff;box-sizing:border-box;/* border-bottom: #c7c7c7 solid 1px; */display: flex;/* align-items: center; */justify-content: center;}	
460.popLayer>.pbd>.phd .tit{font-size: 22rem;color:#000000;/* font-family:"CJ Medium"; */width: calc(100% - 90px);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight: 700; letter-spacing:-1px; margin-top: 3px;}/* 21.07.06 APET-1200 lcm01 */	
461.popLayer>.pbd .btnPopClose{position:absolute;right: 20px;top: 17px;width: 30px;height: 30px;text-indent:-9999px;overflow:hidden;background: no-repeat center;background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20.97 4L4 20.971M4 4l16.971 16.971' stroke='%23000' stroke-width='2' fill='none' fill-rule='evenodd' stroke-linejoin='round'/%3E%3C/svg%3E");background-color:transparent;border:none;padding:0;cursor: pointer;z-index: 100;}	/* APETQA-6490 210902 lju02 */
462.popLayer>.pbd>.pct{position: relative;}	
463.popLayer>.pbd>.pct::-webkit-scrollbar{/* display: none; */}	
464.popLayer>.pbd>.pct.no-scroll{overflow:visible !important;max-height: initial !important;}	
465.popLayer>.pbd>.pbt{position:relative;width:100%;min-height: 32px;padding: 15px 20px 0px 20px;}	
466.popLayer>.pbd>.pbt .bts {display: flex;margin: 0px -5px;justify-content: center;}	
467.popLayer>.pbd>.pbt .bts .btn{width:100%;margin: 0px 5px;}	
468/* ÆË¾÷ ·¹À̾î typeA */	
469.popLayer.a{text-align: center;overflow: hidden;touch-action: none !important;font-size: 0;}	
470.popLayer.a > .pbd{background: #ffffff;display:inline-block;width: 100%;vertical-align: middle;text-align: left;font-size: 14px;}	/* APETQA-6592 210811 lju02 */
471.popLayer.a::before{content: '';width:0;height:100%;display:inline-block;vertical-align:middle;overflow: hidden;}	
472.popLayer.a>.pbd>.phd>.in{align-items: center;position: fixed;}	
473.popLayer.a .pct{overflow-y: auto;overflow-x: hidden;}	
474/* .popLayer.a .pct::-webkit-scrollbar { display: none; } */	
475.popLayer.a .pbt::before{position:absolute;left:0px;right: 0px;top: -15px;height: 15px;/* content:""; */display:block;background-image: linear-gradient(to top, rgb(255 255 255) 0%, rgb(255 255 255 / 0%) 100%);}	
476.popLayer.a .poptents{position: relative;padding: 10px 20px;}	
477.popLayer.a .pbt{padding: 5px 20px 20px 20px;transition: opacity 0.4s;}	
478.popLayer.a .pbt .bots{}	
479.pct.h_auto_p .poptents.report{padding-top:0;}	
480.pct.h_auto_p .poptents.report .lay-gray-box:first-child{margin-top:0;}	
481.popLayer.a.win{display:block;position: relative;overflow: visible;}	
482.popLayer.a.win>.pbd>.phd,	
483.popLayer.a.win>.pbd>.phd>.in{height:60px;}	
484.popLayer.a.win>.pbd>.phd .tit{font-size:22rem;}
485
486.popCoupon.a .pbt{padding:0;}
487.popCoupon.a .pbt .btn{border-radius: 0; font-size:18px;}
488.popCoupon.a .btnCpAply{}
489.popCoupon.a .poptents{padding:0;}
490.popCoupon.a .btnCpAply .i{font-family: "Roboto";}
491.popCoupon.a .aplycpn{padding:10px 20px;}
492.popCoupon.a .aplycpn .txt{color: #9a9a9a; font-size:13px;}
493.popCoupon.a .sect{padding: 20px 20px;border-top:8px solid #ecedef;}
494.popCoupon.a .sect.info{}
495.popCoupon.a .sect.info .pdset{position:relative;display:flex;justify-content: space-between;}
496.popCoupon.a .sect.info .pdset .pic{width: 90px;height:90px;padding-bottom: 90px;border-radius: 5px;overflow:hidden;position: relative;}
497.popCoupon.a .sect.info .pdset .pic .img{width: 90px;position:absolute;
497left:50%;top:50%;transform:translate(-50%,-50%);}
498.popCoupon.a .sect.info .pdset .disc{width: calc(100% - 100px);display:flex;align-items: center;flex-wrap: wrap;align-content: center;}
499.popCoupon.a .sect.info .pdset .disc .name{margin-top: -4px;width: 100%;-webkit-line-clamp:2;max-height: 36px;line-height: 1.3em;-webkit-box-orient:vertical;display:-webkit-box;text-overflow:ellipsis;overflow:hidden;word-break:break-all;}
500.popCoupon.a .sect.info .pdset .disc .opt{font-size:13px;color: #666666;line-height: 1.2;margin-top: 5px; white-space:normal; word-break:keep-all;}
501.popCoupon.a .sect.info .pdset .disc .opt.k0423{overflow:hidden; text-overflow:ellipsis; white-space:nowrap;}
502.popCoupon.a .sect.info .totprc{margin-top: 17px;display: flex;align-content: center;justify-content: center;background-color: #f7f7f7;padding: 12px 0;min-height: 82px;align-items: center;border-radius: 5px;}
503.popCoupon.a .sect.info .totprc .price{text-align: center;position: relative;padding: 0px 18px;margin-top: -3px;}
504.popCoupon.a .sect.info .totprc .price .tit{display: block;color: #666666;font-size: 13px;white-space: nowrap;}
505.popCoupon.a .sect.info .totprc .price .prc{display: block;padding-top: 5px;white-space: nowrap;line-height: 1.2;}
506.popCoupon.a .sect.info .totprc .price .prc .p{font-family: "Roboto";font-size:14px;}
507.popCoupon.a .sect.info .totprc .price .prc .w{}
508.popCoupon.a .sect.info .totprc .price .cq{position:absolute;left: 0px;top: 73%;transform: translate(-50%,-50%);line-height: 1;}
509.popCoupon.a .sect.info .totprc .price.ptp{}
510.popCoupon.a .sect.info .totprc .price.dis{}
511.popCoupon.a .sect.info .totprc .price.dis .prc{color: #c34;font-weight: 700;}
512.popCoupon.a .sect.info .totprc .price.cpn{}
513.popCoupon.a .sect.info .totprc .price.cpn .prc{font-size: 18px;font-weight: 700;padding-top: 0;}
514.popCoupon.a .cplist{}
515.popCoupon.a .cplist>li{}
516.popCoupon.a .cplist>li+li{margin-top: 14px;}
517.popCoupon.a .cplist>li .radio{ display: block; }
518.popCoupon.a .cplist>li .radio .txt{position: relative;border: #dddddd solid 1px;border-radius: 6px;padding: 19px 20px 19px 53px;width: 100%;min-height: 60px;}
519.popCoupon.a .cplist>li .radio input:checked+.txt{border-color: #c34;border-width: 2px;padding: 18px 18px 18px 52px;}
520.popCoupon.a .cplist>li .radio .txt::before{position:absolute;left: 16px;top: 17px;}
521.popCoupon.a .cplist>li .radio input:checked+.txt::before{left: 15px;top: 16px;}
522.popCoupon.a .cplist>li .radio .txt .hdd{}
523.popCoupon.a .cplist>li .radio .txt .hdd .amt{ font-size: 18px; color: #000000; font-weight: 700; }
524.popCoupon.a .cplist>li .radio .txt .hdd .amt .p{font-weight: 7000;font-family: 'Roboto';}
525.popCoupon.a .cplist>li .radio .txt .hdd .amt .w{ font-size: 16px; font-weight: 700; }
526.popCoupon.a .cplist>li .radio .txt .hdd .amt .t{ font-size: 16px; font-weight: 700; }
527.popCoupon.a .cplist>li .radio .txt .hdd .prc{color: #c34;font-size: 16px;font-weight: 700;margin-left: 6px;}
528.popCoupon.a .cplist>li .radio .txt .hdd .prc .p{font-family:"Roboto";font-weight: 700;font-size:16px;}
529.popCoupon.a .cplist>li .radio .txt .hdd .prc .w{}
530.popCoupon.a .cplist>li .radio .txt .hdd .msg{font-size:13px;font-weight: 700;color: #666666;display: inline-block;vertical-align: middle;margin-left: 7px;}/* 21.06.09 APETQA-4871 lcm01 ¼öÁ¤ */
531.popCoupon.a .cplist>li .radio .txt .hdd .msg::before{width:1px;height:14px;content:"";display:inline-block;vertical-align:middle;background:#dddddd;margin-right: 7px;margin-top: -2px;}
532.popCoupon.a .cplist>li .radio .txt .cdd{}
533.popCoupon.a .cplist>li .radio .txt .cdd .dt{font-size: 13px;margin-top: 10px;}
534.popCoupon.a .cplist>li .radio .txt .cdd .dd{font-size: 13px;color: #9a9a9a;margin-top: 4px;}
535
536/* 21.06.09 APETQA-4871 lcm01 Ãß°¡ */
537.popCoupon.a .cplist li.disabled .radio .txt::before{background: url('../../_images/common/form_.png') no-repeat;background-position-x: -30px; background-position-y: -150px; background-size: 75px auto;}
538.popCoupon.a .cplist>li.disabled .radio .txt .hdd .amt, .popCoupon.a .cplist>li.disabled .radio .txt .hdd .prc, .popCoupon.a .cplist>li.disabled .radio .txt .hdd .msg,
539.popCoupon.a .cplist>li.disabled .radio .txt .cdd{color:#9a9a9a;}
540/* //21.06.09 APETQA-4871 lcm01 Ãß°¡ */
541.popCoupon.a .cplist>li.disabled *{color:#9a9a9a !important;}
542.popCoupon.a .sect.cart{}
543.popCoupon.a .sect.cart .htt{ margin-bottom: 14px; }
544.popCoupon.a .sect.cart .htt .tit{font-size:18px; font-weight: 700;}
545.popCoupon.a .sect.warn{}
546.popCoupon.a .sect.warn .hdt{border-bottom:1px solid #ecedef;position:relative;padding-bottom: 10px;}
547.popCoupon.a .sect.warn .hdt .tit{color: #666666; font-weight: 700;}
548.popCoupon.a .sect.warn .hdt .bt.tog{width:30px;height:30px;position:absolute;right:0;top: -4px;background:url(../../_images/shop/[email protected]) no-repeat center;background-size: 13px auto;font-size:0;}
549.popCoupon.a .sect.warn .hdt .bt.tog.open{transform: rotate(180deg);}
550.popCoupon.a .sect.warn .cdt{}
551.popCoupon.a .sect.warn .cdt{margin-top: 10px; outline: none;}
552.popCoupon.a .pct{max-height: 600px;}
553
554.pbt {background-color: #c34;height:60px;padding:0; }
555.btn-coupon.a {
556    border-color: #c34;
557    background-color: #c34;
558    color: #fff;
559    margin-top:15px;
560    font-weight: 600;
561}
562</style>
563
564
565<style>
566    .btn-coupon {
567        border: 1px solid #dddddd;
568        background: #ffffff;
569        color: #666666;
570        height: 32px;
571        overflow: hidden;
572        padding: 0 12px;
573        display: inline-flex;
574        justify-content: center;
575        align-items: center;
576        vertical-align: middle;
577        cursor: pointer;
578        white-space: nowrap;
579        border-radius: 4px;
580        line-height: 1;
581    }
582
583    .untcart .box .btns .btn-coupon {
584        min-width: 85px;
585    }
586
587    .btn-coupon.d {
588        border-color: #ddd;
589        background-color: #fff;
590        color: #666;
591        font-weight: 700;
592        color: #000;
593    }
594    .btn-coupon.sm {
595        /* height: 35px; */
596        min-width: 70px;
597        /* padding: 0px 6px 0px 6px; */
598        font-size: 13px;
599        font-weight: 500;
600    }
601</style>
602<div id="skip-nav">
603        <a href="#middle">º»¹®À¸·Î À̵¿</a>
604        <a href="#gnb">¸Þ´º·Î À̵¿</a>
605    </div>
606    <!-- Header -->
607    <input type="hidden" id="naver_total_price" value="0">
608    <div id="pay-step" class="goods-cart">
609        <div class="wrap" >
610            <h1 id="logo"><a href="/">°í¾çÀÌ¿ëǰ Àü¹®¸ô ĹÆÎ</a><sub>°í¾çÀÌ¿ëǰ Àü¹®¸ô ĹÆÎ</sub></h1>
611            <div class="step-location">
612                <ul>
613                    <li class="step01 active"><sup>01</sup>Àå¹Ù±¸´Ï</li>
614                    <li class="step02"><sup>02</sup>»çÀºÇ° ¼±ÅÃ</li>
615                    <li class="step03"><sup>03</sup>ÁÖ¹®/°áÁ¦</li>
616                    <li class="step04"><sup>04</sup>ÁÖ¹®¿Ï·á</li>
617                </ul>
618            </div>
619
620            <div id="contents" style="width:75%;float: left;" >
621
622                                <ul class="tab-type type02">
623                    <li><a href="/shop/goods/goods_cart.php" class="active" >Àå¹Ù±¸´Ï <span class="cart_count">(0)</span></a></li>
624                    <li><a href="/shop/goods/goods_wish.php">Âò¸®½ºÆ® <span class="wish_count">(0)</span></a></li>
625                </ul>
626                                <div class="cart-sec">
627
628                    <!--p class="later-txt">Àå¹Ù±¸´Ï></p-->
629
630                    <div class="cart-tbl">
631                        <table>
632                            <caption>ĹÆÎ Ãâ°í »óǰ Á¤º¸</caption>
633                            <colgroup>
634                                <col style="width: 47%;" />
635                                <col style="width: 9%;" />
636                                <col style="width: 9%;" />
637                                <col style="width: 7%;" />
638                            </colgroup>
639                            <thead>
640                                <tr style="background:#fafafa;">
641                                    <th scope="col">»óǰ</th>
642
643                                    <th scope="col">¼ö·®</th>
644                                    <th scope="col">±Ý¾×</th>
645                                    <th scope="col"></th>
646                                </tr>
647                            </thead>
648                            <tbody>
649
650                                
651                                <tr>
652                                    <td colspan="6" class="empty tit type03">Àå¹Ù±¸´Ï¿¡ ´ã±ä »óǰÀÌ ¾ø½À´Ï´Ù.<br><br><a href="/" class="btn-type size03 type07 btn-go-shop" style="border-radius:3px;"><b>°è¼Ó ¼îÇÎÇϱâ</b></a></td>
653                                </tr>
654
655                                
656
657                                
658                                
659
660                                
661                                
662
663                            </tbody>
664                        </table>
665                    </div>
666                </div>
667
668
669
670
671
672                <!-- ³ªÁß¿¡ »ç±â -->
673                
674
675            </div>
676            <style>
677                .jss857 {
678                    color: #fff;
679                    height: 18px;
680                    display: inline-flex;
681                    padding: 0 5px;
682                    font-size: 12px;
683                    align-items: center;
684                    flex-shrink: 0;
685                    font-weight: 500;
686                    line-height: 1;
687                    border-radius: 5px 5px 5px;
688                    justify-content: center;
689                    background-color: #65d9bf;
690                }
691                .item-info .sell-option dl dt:after { content:""; display: block; position: absolute; top: 0; right: 0; }      
692                                    
693                .aside {width:248px;margin-top:39px}
694                .aside>.cont{border:1px solid #dddddd;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px;}
695                .aside .bg-gray {background:#fafafa;border-bottom:1px solid #dddddd;padding:20px 17px 18px;}
696                .aside .t-price {font-weight:bold;font-size:14px}
697                .aside .t-price .en {font-size:17px}
698                .aside .t-price .pd {padding-left:3px}
699                .aside .btn-order-smt {width:100%;height:31px;font-weight:bold;font-size:14px;line-height:34px;}
700                .aside .pos-re {margin-top:10px}
701                .not-allowed {cursor:not-allowed;}
702                .not-allowed-txt {display:block;width:157px;padding:8px 8px 4px;border:1px solid #5ba0c2;background:#fff;position:absolute;top:-9px;left:-180px;line-height:18px}
703                .aside .ban-stiker {padding:0px 0px 10px;line-height:18px}
704                .aside .ban-stiker .ic-stiker-dog {display:inline-block;width:19px;vertical-align:-4px;padding-left:0}
705                .ban-stiker .bl-down-c {color:#004B91;}
706                .free-deliver {display:block;padding-top:5px}
707
708                .aside .btn-scn {position:relative;z-index:110}
709                .aside .cont .free-deliver { margin-top: 15px; padding: 15px 0 0 0; border-top: 1px solid #e7e7e7; text-align: center; }
710
711            </style>
712            <div class="aside" style="margin-top:50px;width:23%;float:right;">
713                <div class="cont newg">
714                    <div class="bg-gray">
715
716                        <p class="detail-price" style="font-size:13px;">»óǰ<span class="cart_count">(0°³)</span> <strong id="sum_total_price">0¿ø</strong>
717                        </p>
718
719                                                <p class="detail-price"  style="font-size:13px;margin-top:3px;"><span class="price" id="sum_discount" style="display:none;">ÇÒÀιÞÀº±Ý¾× -0¿ø</span></p>
720                        
721
722                        <p class="detail-price"  style="font-size:13px;margin-top:3px;"><span id="delivery_text">¹è¼Ûºñ</span>
723                        <a href="javascript:;" class="delivery_help"><span class="question-mark-rocket-plus ccid-detail-help-icon" style="cursor:pointer;">»ó¼¼º¸±â</span></a>
724
725                                                    <span class="price" id="sum_delivery">0¿ø</span>
726                                                    </p>
727
728                        
729                        <p class="t-price" style="font-size:14px;margin-top:8px;">ÃÑ °áÁ¦±Ý¾× : <strong class="price" id="sum_total_price_goods" style="font-size:16px;display:inline-block;">0¿ø</strong></p>
730
731                        <div class="pos-re">
732                            <button class="btn-type size04 type05" id="order_check" style="border-radius:3px;min-width: 215px;"><b>ÁÖ¹®Çϱâ</b></button>
733                        </div>
734
735
736                                                <p class="free-deliver" id="free_delivery">+30,000¿ø ´õ ÁÖ¹®½Ã ¹«·á¹è¼Û</p>
737                        <p style="text-align:center;margin-top:10px;"><a href="/shop/goods/goods_gift.php" style="color:#004B91;">»çÀºÇ° ÇýÅú¸±â</a></p>
738
739                        
740                                                <p class="free-deliver">
741                            <p style="text-align:center;"><a href="javascript:;" id="catpangPay_story" style="color:#004B91;">ĹÆÎÆäÀÌ Ã¹ °áÁ¦½Ã 5% °áÁ¦ÇÒÀÎ <span class="question-mark-rocket-plus ccid-detail-help-icon">»ó¼¼º¸±â</span></a></p>
742                        </p>
743                        
744                        <!--p style="text-align:center;margin-top:5px;"><a href="/shop/goods/goods_event.php?sno=336" id="" style="color:#34936A;font-weight:400;">10¸¸¿ø ÀÌ»ó ±¸¸Å½Ã »çÀºÇ° ÁõÁ¤ <span class="question-mark-rocket-plus ccid-detail-help-icon">»ó¼¼º¸±â</span></a></p-->
745                    </div>
746
747            
748                    <div class="ban-stiker">
749                        <div class="naver-pay" style="margin:0px;padding:0px; text-align:center;">
750
751                                <div class="sec" style="margin-top:0px;margin-bottom:10px;">
752                                    <div class="n-wrap">
753
754                                        <!-- ÅÛÇø´ ¹öư ÄÁÅ×ÀÌ³Ê -->
755                                        <div id="npay-button-container" style="margin-top:0px;"></div>
756                                        
756<script>
757
758                                            //  setTimeout(function() {
759                                            //     updateStockMainStatus(true);
760                                            // }, 100);
761                                        </script>
761
762                                        <a href="#" id="naverPayRedirectElm" target="_blank" style="display:none;"></a>
763                                    </div>
764                                </div>
765
766                        </div>
767                    </div>
768                  
769                </div>
770
771
772                </div>
773            </div>
774
775        </div>
776    </div>
777
778    <span id="coupon-member" class="hide">ÄíÆùÀû¿ë</span>
779    <div class="clone-layer size01">
780        <h2>ÄíÆùÀû¿ë</h2>
781        <div class="clone-content scroll-wrap" style="padding:0px;height:600px;width:500px;">
782            <div class="popLayer a popCoupon">
783            <div class="pbd">
784            <div class="pct">
785
786                <main class="poptents couponList">
787                    <div id="couponInfo">
788
789                    </div>
790                    <section class="sect list">
791                        <ui class="cplist">
792
793                        </ui>
794                    </section>
795                </main>
796
797            </div>
798            </div>
799            </div>
800        </div>
801        <label>
802            <div class="pbt">
803                <div class="bts" style="text-align: center;">
804                    <button type="button" style="" dummy-id="couponApply" class="btn-coupon xl a btnGet"  onclick="couponApply(this);">ÃÑ ÇÒÀÎ ÄíÆù Àû¿ë</button>
805                </div>
806            </div> 
807        </label>       
808        <button type="button" class="btn-close01">´Ý±â</button>
809    </div>    
810
811
812    <!-- msg-modify-layer start  -->
813    <span id="catpangPay" class="hide">¸Þ¼¼Áö ·¹À̾î</span>
814    <div class="clone-layer"> <!-- ·¹ÀÌ¾î »óÅ¿¡¼­ ·¹À̾ ºÒ·¯¿Í¾ß ÇÒ °æ¿ì clone-confirm-->
815        <h2 class="tit type02"><b>ĹÆÎÆäÀÌ Ã¹ °áÁ¦½Ã 5% °áÁ¦ÇÒÀÎ</b></h2>
816        <div class="clone-content">
817            ĹÆÎÆäÀ̸¦ ÀÌ¿ëÇϽøé 6ÀÚ¸® PIN¹øÈ£¸¸ ÀÔ·ÂÇÏ¿© °£ÆíÇÏ°Ô °áÁ¦°¡ °¡´ÉÇÕ´Ï´Ù.<br><br>
818
819            ĹÆÎÆäÀÌ´Â º»ÀÎÀÎÁõ °¡ÀÔÈÄ °áÁ¦¼ö´Ü(Ä«µå) µî·Ï ÈÄ ÀÌ¿ëÇÏ½Ç ¼ö ÀÖ½À´Ï´Ù.<br><br>
820
821            < ÀÌ¿ë¹æ¹ý ><br>
822
823            1. º»ÀÎÀÎÁõ<br>
824            2. Ä«µåµî·Ï<br>
825            3. 6ÀÚ¸® PIN ÀÔ·Â<br>
826            4. 6ÀÚ¸® PIN¹øÈ£·Î »óǰ°áÁ¦<br><br>
827
828            <ĹÆÎÆäÀÌ Áö¿ø Ä«µå><br><br>
829            (½ÅÇÑÄ«µå, BCÄ«µå, NHÄ«µå, ±¹¹ÎÄ«µå, ·Ôµ¥Ä«µå, »ï¼ºÄ«µå, Çϳª(¿Üȯīµå), Çö´ëÄ«µå)<br><br><br>
830
831            ĹÆÎÆäÀÌ Ã¹ °áÁ¦½Ã ¿ÀDZâ³ä 5% °áÁ¦ÇÒÀÎ À̺¥Æ®¸¦ ÁøÇàÇÕ´Ï´Ù.<br>
832            <b>°áÁ¦ÆäÀÌÁö => °áÁ¦Çϱ⠹öưÀ» ´­·¯Áֽøé Áï½Ã ÇÒÀÎÀû¿ëÀÌ µË´Ï´Ù.</b><br><br>
833
834
835            ¡Ø ĹÆÎÆäÀ̴ ĹÆÎȸ¿ø¸¸ Áö¿øµË´Ï´Ù. (ºñȸ¿ø ¹ÌÁö¿ø)<br>
836            ¡Ø 5% ÇÒÀÎÀ¸·Î °áÁ¦ ÈÄ ÀüüÃë¼Ò½Ã ´Ù½Ã 5% ÇÒÀα¸¸Å °¡´ÉÇÕ´Ï´Ù.  (ºÎºÐÃë¼Ò½Ã ÀçÇÒÀκҰ¡)<br>
837            ¡Ø ID´ç 1ȸ¸¸ 5% ÇÒÀÎÀÌ °¡´ÉÇÕ´Ï´Ù.<br>
838            ¡Ø ÄíÆù »ç¿ë½Ã Áߺ¹ÇÒÀÎÀÌ ¾ÈµË´Ï´Ù.<br>
839            <div class="btn-area">
840
841                <button type="button" class="btn-type type03 size03" onclick="layerMod.close()"><b>´Ý±â</b></button>
842            </div>
843        </div>
844        <button type="button" class="btn-close01">´Ý±â</button>
845    </div>
846    <!-- msg-modify-layer end -->
847
848	<!-- msg-modify-layer start  -->
849	<span id="expire_layer_view" class="hide">¸Þ¼¼Áö ·¹À̾î</span>
850	<div class="clone-layer"> <!-- ·¹ÀÌ¾î »óÅ¿¡¼­ ·¹À̾ ºÒ·¯¿Í¾ß ÇÒ °æ¿ì clone-confirm-->
851		<h2 class="tit type02"><b>À¯Åë±âÇÑ Âü°í»çÇ×</b></h2>
852		<div class="clone-content">
853			ĹÆÎÀº À¯Åë±âÇÑ 100% Ç¥½ÃÁ¦¸¦ ½ÃÇàÇϰí ÀÖ½À´Ï´Ù.<br><br>
854			À¯Åë±âÇÑ »óǰÀº ¼±ÀÔ¼±Ãâ µû¶ó Ãâ°íµË´Ï´Ù.<br>
855			Ç¥½ÃµÈ À¯Åë±âÇѺ¸´Ù ´õ ±ä »óǰÀÌ Ãâ°íµÉ ¼ö ÀÖ½À´Ï´Ù.<br><br>
856
857			¡Ø À¯Åë±âÇÑÀÌ ÀÖ´Â ¸ðµç »óǰ¿¡ ÇØ´çµË´Ï´Ù.<br>
858
859			<div class="btn-area">
860
861				<button type="button" class="btn-type type03 size03" onclick="layerMod.close()"><b>´Ý±â</b></button>
862			</div>
863		</div>
864		<button type="button" class="btn-close01">´Ý±â</button>
865	</div>
866    <!-- msg-modify-layer end -->
867
868    
868<script type="text/javascript">
869
870	// $('.npay_btn_pay').attr('href', 'javascript:;');
871//	$('.npay_btn_zzim').attr('href', 'javascript:;');
872
873	// $('.npay_btn_pay').unbind('click').bind('click', naverPayBuyBtn);
874//	$(document).on('click', '.npay_btn_zzim', naverPayZZimBtn);
875
876
877         
878
879    var _cart_data = [];
880    var _have_point = 0;
881
882
883//    console.log(_cart_data);
884
885    _tmp_data	= {};
886    function resetTmpData(){
887        if(_cart_data){
888            _tmp_data   = {};
889            //console.log(_cart_data);
890            $(_cart_data).each(function(k, elm){
891
892                if(elm['viewType'] == "COMBO") {
893                    $.each(elm['comboList'], function (_k, comboList) {
894                        if(comboList['combo_goodsno'] != undefined) {
895                        _tmp_data[comboList['combo_goodsno']] = parseInt(comboList['combo_stock']);
896                       
897                        }
898                    });  
899
900                } else if(elm['viewType'] == "PACK") {
901
902                    _tmp_data[elm['goodsno']] = parseInt(elm['stock']);
903                    //console.log(elm['goodsno']+"||"+elm['stock']);
904                } else { 
905
906                     _tmp_data[elm['goodsno']]	= parseInt(elm['stock']);
907                    //console.log(elm['goodsno']+"||"+elm['stock']);
908                }
909
910                if(elm['gift_list']){
911                    $(elm['gift_list'][0]).each(function(ek, gElm){
912                        _tmp_data[gElm['goodsno']]    = parseInt(gElm['stock']);
913                    });
914                   // console.log(gElm['goodsno']+"||"+gElm['stock']);
915                }
916            });
917        }
918        //  console.log(_tmp_data);
919 
920    }
921
922   
923
924	        
925        setTimeout(function() {
926            updateStockMainStatus(false);
927        }, 100);
928       
929	
930    function resetObjectKey(obj){
931        var newObj  = [];
932
933        var nk  = 0;
934        $.each($(obj), function(k, elm){
935            if(elm){
936                newObj.push(elm);
937                nk++;
938            }
939        });
940
941        return newObj;
942    }
943
944	function fn_Number(obj, e) {
945
946    	if(e.which=='229' || e.which=='197' && $.browser.opera) {
947    		setInterval(function(){
948    			obj.trigger('keyup');
949    		}, 100);
950    	}
951
952    	if ( ! (e.which && (e.which > 47 && e.which < 58)|| e.which ==8 || e.which ==9|| e.which ==0 || (e.which >= 96 && e.which <= 105) || (e.ctrlKey && e.which ==86) ) || e.shiftKey && (e.which > 47 && e.which < 58) ) {
953    		e.preventDefault();
954    	}
955
956    	var value = obj.val().match(/[^-0-9]/g);
957    	if(value!=null) {
958    		obj.val(obj.val().replace(/[^-0-9]/g,''));
959    	}
960
961    }
962
963
964
965    function checkStock(){
966
967        pointQuantity_flag = true;
968        buycutQuantity_flag = true;
969        mix_buycutQuantity_flag = true;
970
971		resetTmpData();
972         //console.log(_tmp_data);
973         //console.log(_cart_data);
974
975		var _rowsArr    = $('.cart-rows');
976        var minusArrs   = {};
977        var combo_turn   = {};
978        //point price
979        var _sum_point = 0;
980
981		if(_cart_data){
982			$(_cart_data).each(function(k, elm){
983
984         
985				var _row        = $(_rowsArr[k]);
986
987
988                //console.log(elm);
989                //var curStock	= elm['gvm_quantity'] * elm['quantity'];
990				var _alarm_html = '';
991
992				var gift_flag   = elm['gift_list'] ? true : false;
993				var _input_wrap = _row.find('.quantity-wrap:first');
994				var _quantity = $('input[name="cart_quantity"]', _input_wrap).val();
995				var curQuantity = _quantity;
996
997                if(elm['viewType'] == 'COMBO'){
998				    var _possStock  = Math.floor(elm['combo_stock'] / parseInt(elm['combo_quantity_mix']));
999                
1000                } else if (elm['viewType'] == 'PACK') {
1001                    var _possStock = Math.floor( parseInt(_tmp_data[elm['goodsno']]) / (parseInt(elm['gvm_quantity']) ) );
1002                       
1003                } else {
1004                    var _possStock  = Math.floor(parseInt(_tmp_data[elm['goodsno']]) / parseInt(elm['gvm_quantity']));
1005                }
1006
1007         
1008				var minStock    = _possStock;
1009
1010				if(!minusArrs[elm['goodsno']]){
1011					minusArrs[elm['goodsno']]   = 0;
1012				}
1013
1014				if(!combo_turn[elm['goodsno']]) {
1015				   combo_turn[elm['goodsno']] = 0;
1016				}
1017
1018                var combo_turn_count = 0;
1019
1020
1021                if(elm['viewType'] == 'COMBO'){
1022              
1023                    $.each(elm['comboList'],function(_k, comboList){
1024                    
1025                        // console.log(comboList);
1026                  
1027
1028						 if(parseInt(comboList['combo_quantity']) > 0) {
1029
1030                                                
1031                            if(!combo_turn[comboList['combo_goodsno']]) {
1032                                combo_turn[comboList['combo_goodsno']] = 0;
1033                            }
1034                            if(!minusArrs[comboList['combo_goodsno']]) {
1035                                minusArrs[comboList['combo_goodsno']] = 0;
1036                            }      
1037                                
1038                            var combo_sum   = parseInt(comboList['combo_quantity']) * parseInt(curQuantity);
1039                    
1040                            minusArrs[comboList['combo_goodsno']]   += combo_sum;                       
1041                            combo_turn[comboList['combo_goodsno']]  += combo_sum;
1042                
1043                         
1044
1045						 }
1046
1047                              
1048
1049                    });
1050
1051             
1052                } else if (elm['viewType'] == 'PACK') {
1053
1054 
1055                    var pack_sum   = parseInt(elm['gvm_quantity']) * parseInt(curQuantity);
1056            
1057                    minusArrs[elm['goodsno']]  += pack_sum;
1058                    combo_turn[elm['goodsno']]  += pack_sum;
1059
1060                 
1061                   
1062                } else {
1063
1064                    var normal_sum = parseInt(elm['gvm_quantity']) * parseInt(curQuantity);
1065
1066                    minusArrs[elm['goodsno']]    += normal_sum;
1067                    combo_turn[elm['goodsno']]   += normal_sum;
1068                }
1069
1070
1071
1072
1073
1074				if(elm['viewType'] == 'NORMAL'){
1075
1076					if(gift_flag){
1077						$(elm['gift_list'][0]).each(function(ek, gElm){
1078							if(!minusArrs[gElm['goodsno']]){
1079								minusArrs[gElm['goodsno']]   = 0;
1080							}
1081                            if(!combo_turn[gElm['goodsno']]) {
1082                               combo_turn[gElm['goodsno']] = 0;
1083                            }
1084							// Àç°í¼ö·®º¸´Ù ¼±ÅÃÇÑ ¼ö·®ÀÌ Å¬ °æ¿ì
1085							if(elm['goodsno'] == gElm['goodsno']){
1086								_possStock	= Math.floor(parseInt(_tmp_data[elm['goodsno']]) / (parseInt(elm['gvm_quantity']) + parseInt(gElm['event_quantity'])));
1087							}else{
1088								_possStock	= Math.floor(parseInt(_tmp_data[gElm['goodsno']]) / parseInt(gElm['event_quantity']));
1089							}
1090
1091                            combo_turn[gElm['goodsno']]   +=  (parseInt(curQuantity) * parseInt(gElm['event_quantity']));
1092							minusArrs[gElm['goodsno']]   += (parseInt(curQuantity) * parseInt(gElm['event_quantity']));
1093							minStock	= Math.min(minStock, _possStock);
1094						});
1095					}
1096				}else if(elm['viewType'] == 'PACK'){
1097//                            console.log(elm);
1098					if(gift_flag){
1099						$(elm['gift_list'][0]).each(function(ek, gElm){
1100
1101							if(!minusArrs[gElm['goodsno']]){
1102								minusArrs[gElm['goodsno']]   = 0;
1103							}
1104
1105							// Àç°í¼ö·®º¸´Ù ¼±ÅÃÇÑ ¼ö·®ÀÌ Å¬ °æ¿ì
1106							if(elm['goodsno'] == gElm['goodsno']){
1107								_possStock	= Math.floor(parseInt(_tmp_data[elm['goodsno']]) / (parseInt(elm['gvm_quantity']) + parseInt(gElm['event_quantity'])));
1108							}else{
1109								_possStock	= Math.floor(parseInt(_tmp_data[gElm['goodsno']]) / parseInt(gElm['event_quantity']));
1110							}
1111
1112
1113                            combo_turn[gElm['goodsno']]  += (parseInt(curQuantity) * parseInt(gElm['event_quantity'])); 
1114							minusArrs[gElm['goodsno']]   += (parseInt(curQuantity) * parseInt(gElm['event_quantity']));
1115
1116							minStock	= Math.min(minStock, _possStock);
1117//                                    console.log(gElm['goodsnm'] + '--' + minStock);
1118						});
1119					}
1120				}else if(elm['viewType'] == 'OPTION'){
1121					if(gift_flag){
1122						$(elm['gift_list'][0]).each(function(ek, gElm){
1123
1124							if(!minusArrs[gElm['goodsno']]){
1125								minusArrs[gElm['goodsno']]   = 0;
1126							}
1127
1128							// Àç°í¼ö·®º¸´Ù ¼±ÅÃÇÑ ¼ö·®ÀÌ Å¬ °æ¿ì
1129							if(elm['goodsno'] == gElm['goodsno']){
1130								_possStock	= Math.floor(parseInt(_tmp_data[elm['goodsno']]) / (parseInt(elm['gvm_quantity']) + parseInt(gElm['event_quantity'])));
1131							}else{
1132								_possStock	= Math.floor(parseInt(_tmp_data[gElm['goodsno']]) / parseInt(gElm['event_quantity']));
1133							}
1134
1135							minusArrs[gElm['goodsno']]   += (parseInt(curQuantity) * parseInt(gElm['event_quantity']));
1136
1137							minStock	= Math.min(minStock, _possStock);
1138//                                    console.log(gElm['goodsnm'] + '--' + minStock);
1139						});
1140					}
1141
1142                }else if(elm['viewType'] == 'VPACK'){
1143					if(gift_flag){
1144						$(elm['gift_list'][0]).each(function(ek, gElm){
1145
1146							if(!minusArrs[gElm['goodsno']]){
1147								minusArrs[gElm['goodsno']]   = 0;
1148							}
1149
1150							// Àç°í¼ö·®º¸´Ù ¼±ÅÃÇÑ ¼ö·®ÀÌ Å¬ °æ¿ì
1151							if(elm['goodsno'] == gElm['goodsno']){
1152								_possStock	= Math.floor(parseInt(_tmp_data[elm['goodsno']]) / (parseInt(elm['gvm_quantity']) + parseInt(gElm['event_quantity'])));
1153							}else{
1154								_possStock	= Math.floor(parseInt(_tmp_data[gElm['goodsno']]) / parseInt(gElm['event_quantity']));
1155							}
1156
1157							minusArrs[gElm['goodsno']]   += (parseInt(curQuantity) * parseInt(gElm['event_quantity']));
1158
1159							minStock	= Math.min(minStock, _possStock);
1160//                                    console.log(gElm['goodsnm'] + '--' + minStock);
1161						});
1162					}
1163				}else if(elm['viewType'] == 'COMBO'){
1164
1165					if(gift_flag){
1166 
1167						$(elm['gift_list'][0]).each(function(ek, gElm){
1168							if(!minusArrs[gElm['goodsno']]){
1169								minusArrs[gElm['goodsno']]   = 0;
1170							}
1171
1172							// Àç°í¼ö·®º¸´Ù ¼±ÅÃÇÑ ¼ö·®ÀÌ Å¬ °æ¿ì
1173
1174							if(elm['goodsno'] == gElm['goodsno']){
1175								_possStock	= Math.floor(parseInt(_tmp_data[elm['goodsno']]) / (parseInt(elm['gvm_quantity']) + parseInt(gElm['event_quantity'])));
1176							}else{
1177								_possStock	= Math.floor(parseInt(_tmp_data[gElm['goodsno']]) / parseInt(gElm['event_quantity']));
1178							}
1179
1180         
1181                            combo_turn[gElm['goodsno']]  += (parseInt(curQuantity) * parseInt(gElm['event_quantity']));                       
1182							minusArrs[gElm['goodsno']]   += (parseInt(curQuantity) * parseInt(gElm['event_quantity']));
1183							minStock	= Math.min(minStock, _possStock);
1184
1185						});
1186					}
1187				}
1188
1189//                        console.log(minusArrs);
1190//                        console.log(curQuantity + '---' + minStock);
1191
1192                if(elm['viewType'] == 'COMBO') {
1193                    
1194                    //console.log(combo_turn);
1195                    //$(elm['comboList']).each(function(_k, comboList){
1196
1197                    $.each(elm['comboList'],function(_k, comboList){
1198                            
1199
1200
1201                        if(parseInt(comboList['combo_quantity']) > 0) {
1202                            //console.log(parseInt(comboList['combo_stock']) +"||"+ parseInt(minusArrs[comboList['combo_goodsno']]));
1203                            if(parseInt(comboList['combo_stock']) < parseInt(minusArrs[comboList['combo_goodsno']])) {
1204                                
1205
1206                                _alarm_html += '<div class="alarm-body">';
1207                                if(elm['viewType'] == 'COMBO' && elm['comboStatus'] == "Y") {
1208                                _alarm_html += '    <p>ÀϺΠ°ñ¶ó´ã±â »óǰÁß¿¡ Àç°í¼ö·®ÀÌ ºÎÁ·ÇÕ´Ï´Ù. ';
1209                                } else {
1210                                _alarm_html += '    <p>Àç°í ¼ö·®ÀÌ ºÎÁ·ÇÕ´Ï´Ù. ';
1211                                _alarm_html += minStock > 0 ? '(Àç°í°¡ ' + minStock + '°³ ¹Û¿¡ ¾ø½À´Ï´Ù.)' : '(Àç°í°¡ ¾ø½À´Ï´Ù.)';
1212                                }
1213                                _alarm_html += '</p>';
1214                                _alarm_html += '</div>';
1215                                _row.prev('.alarm-rows').children('.alarm-wrap').html(_alarm_html);
1216                                cart_flag = false;
1217                                return false;
1218
1219
1220                            } else {
1221                                    _row.prev('.alarm-rows').children('.alarm-wrap').html(_alarm_html);
1222                            }
1223                        }
1224
1225                        //alert(curQuantity*comboList['combo_quantity'] );
1226                        //minusArrs[comboList['combo_goodsno']]   += (parseInt(comboList['combo_quantity']) * parseInt(curQuantity));
1227
1228                        //alert(comboList['combo_stock'] / parseInt(comboList['combo_quantity']) * parseInt(curQuantity));
1229
1230                    });
1231
1232                }
1233                
1234                _sum_point += parseInt(elm['point_price_each'] * curQuantity);
1235
1236                if(elm['point_use'] == true) {
1237
1238                    if (parseInt(_have_point) < parseInt(elm['point_price_each'] * curQuantity) || _sum_point > parseInt(_have_point)) {
1239                        // ¸Þ½ÃÁö ¿µ¿ªÀ» º¸ÀÓ
1240                        _alarm_html += '<div class="alarm-body">';
1241    					_alarm_html += '    <p>Æ÷ÀÎÆ®°¡ ºÎÁ·ÇÕ´Ï´Ù. ';
1242    					_alarm_html += _have_point < _sum_point ? '(Æ÷ÀÎÆ® ' + _have_point.number_format() + 'Á¡ º¸À¯Çϰí ÀÖ½À´Ï´Ù.)' : '(Æ÷ÀÎÆ®°¡ ¾ø½À´Ï´Ù.)';
1243    					_alarm_html += '</p>';
1244    					_alarm_html += '</div>';
1245    					_row.prev('.alarm-rows').children('.alarm-wrap').html(_alarm_html);
1246    					point_flag = false;
1247                    } else {
1248                        _row.prev('.alarm-rows').children('.alarm-wrap').html(_alarm_html);
1249                    }
1250
1251                    //±¸¸ÅÁ¦ÇÑ
1252                    if (elm['point_shop_buycut'] == 'Y' && (parseInt(elm['point_shop_quantity']) < curQuantity)  ) {
1253                        if(pointQuantity_flag == false) {
1254                            var _alarm_html = '';
1255                            _row.prev('.alarm-rows').children('.alarm-wrap').html(_alarm_html);
1256                        }
1257                        // ¸Þ½ÃÁö ¿µ¿ªÀ» º¸ÀÓ
1258                        _alarm_html += '<div class="alarm-body">';
1259                        _alarm_html += '    <p>Æ÷ÀÎÆ®·Î ±¸¸ÅÇÒ¼ö ÃÖ´ë¼ö·®Àº '+elm['point_shop_quantity']+'°³ ÀÔ´Ï´Ù.';
1260                        _alarm_html += '</p>';
1261                        _alarm_html += '</div>';
1262                        _row.prev('.alarm-rows').children('.alarm-wrap').html(_alarm_html);
1263                        pointQuantity_flag = false;
1264                    } else {
1265                        _row.prev('.alarm-rows').children('.alarm-wrap').html(_alarm_html);
1266                    }
1267                }
1268
1269                //±¸¸ÅÁ¦ÇÑ
1270
1271                if(elm['viewType'] == "PACK") {
1272                    if(elm['buycut'] == 'Y') {
1273                        var _bundle_buycut = Math.floor(parseInt(elm['buycut_quantity']) / elm['gvm_quantity']);
1274                      
1275                        if (elm['buycut'] == 'Y' && (parseInt(_bundle_buycut) < curQuantity)  ) {
1276                            if(buycutQuantity_flag == false) {
1277                                var _alarm_html = '';
1278                                _row.prev('.alarm-rows').children('.alarm-wrap').html(_alarm_html);
1279                            }
1280                            // ¸Þ½ÃÁö ¿µ¿ªÀ» º¸ÀÓ
1281                            _alarm_html += '<div class="alarm-body">';
1282                            _alarm_html += '    <p>±¸¸ÅÇÒ¼ö ÀÖ´Â ÃÖ´ë ¹­À½ ¼ö·®Àº '+_bundle_buycut+'°³ ÀÔ´Ï´Ù.';
1283                            _alarm_html += '</p>';
1284                            _alarm_html += '</div>';
1285                            _row.prev('.alarm-rows').children('.alarm-wrap').html(_alarm_html);
1286                            buycutQuantity_flag = false;
1287                        } else {
1288                            _row.prev('.alarm-rows').children('.alarm-wrap').html(_alarm_html);
1289                        }
1290                    }
1291                } else { 
1292                    if (elm['buycut'] == 'Y' && (parseInt(elm['buycut_quantity']) < curQuantity)  ) {
1293                        if(buycutQuantity_flag == false) {
1294                            var _alarm_html = '';
1295                            _row.prev('.alarm-rows').children('.alarm-wrap').html(_alarm_html);
1296                        }
1297                        // ¸Þ½ÃÁö ¿µ¿ªÀ» º¸ÀÓ
1298                        _alarm_html += '<div class="alarm-body">';
1299                        _alarm_html += '    <p>±¸¸ÅÇÒ¼ö ÀÖ´Â ÃÖ´ë ¼ö·®Àº '+elm['buycut_quantity']+'°³ ÀÔ´Ï´Ù.';
1300                        _alarm_html += '</p>';
1301                        _alarm_html += '</div>';
1302                        _row.prev('.alarm-rows').children('.alarm-wrap').html(_alarm_html);
1303                        buycutQuantity_flag = false;
1304                    } else {
1305                        _row.prev('.alarm-rows').children('.alarm-wrap').html(_alarm_html);
1306                    }
1307                }
1308                
1309                //VPACK ±¸¸ÅÁ¦ÇÑ
1310                if (elm['mix_buycut'] == 'Y' && (parseInt(elm['mix_buycut_quantity']) < curQuantity)  ) {
1311                    if(mix_buycutQuantity_flag == false) {
1312                        var _alarm_html = '';
1313                        _row.prev('.alarm-rows').children('.alarm-wrap').html(_alarm_html);
1314                    }
1315                    // ¸Þ½ÃÁö ¿µ¿ªÀ
1315» º¸ÀÓ
1316                    _alarm_html += '<div class="alarm-body">';
1317                    _alarm_html += '    <p>±¸¸ÅÇÒ¼ö ÀÖ´Â ÃÖ´ë ¼ö·®Àº '+elm['mix_buycut_quantity']+'°³ ÀÔ´Ï´Ù.';
1318                    _alarm_html += '</p>';
1319                    _alarm_html += '</div>';
1320                    _row.prev('.alarm-rows').children('.alarm-wrap').html(_alarm_html);
1321                    mix_buycutQuantity_flag = false;
1322                } else {
1323                    _row.prev('.alarm-rows').children('.alarm-wrap').html(_alarm_html);
1324                }                  
1325
1326                if(elm['viewType'] !="COMBO" && elm['comboStatus'] == 'N') {
1327
1328                    if(parseInt(curQuantity) > parseInt(minStock)){
1329                        if(point_flag == false) {
1330                            var _alarm_html = '';
1331                            _row.prev('.alarm-rows').children('.alarm-wrap').html(_alarm_html);
1332                        }
1333    					_alarm_html += '<div class="alarm-body">';
1334    					_alarm_html += '    <p>Àç°í ¼ö·®ÀÌ ºÎÁ·ÇÕ´Ï´Ù. ';
1335    					_alarm_html += minStock > 0 ? '(Àç°í°¡ ' + minStock + '°³ ¹Û¿¡ ¾ø½À´Ï´Ù.)' : '(Àç°í°¡ ¾ø½À´Ï´Ù.)';
1336    					_alarm_html += '</p>';
1337    					_alarm_html += '</div>';
1338    					_row.prev('.alarm-rows').children('.alarm-wrap').html(_alarm_html);
1339    					cart_flag = false;
1340    				}else{
1341    					_row.prev('.alarm-rows').children('.alarm-wrap').html(_alarm_html);
1342    				}
1343                }
1344
1345                // console.log(minusArrs);
1346	            $.each(minusArrs, function(mk, mVal){
1347					_tmp_data[mk]   -= parseInt(mVal);
1348
1349					if(_tmp_data[mk] < 0){
1350						_tmp_data[mk]   = 0;
1351					}
1352				});
1353
1354		
1355
1356			});
1357
1358		
1359
1360		}
1361	}
1362
1363    var cart_flag = true;
1364    var point_flag = true;
1365    var pointQuantity_flag = true;
1366    var buycutQuantity_flag = true;
1367    var mix_buycutQuantity_flag = true;
1368    (function() {
1369        $(function() {
1370            // ¼ö·®Ã¼Å©
1371            checkStock();
1372
1373         
1374            setTimeout(function() {
1375
1376                                 updateStockMainStatus(false);
1377                            }, 100);
1378         
1379
1380
1381            //ÁÖ¹®Ã¼Å©
1382            $('#order_check').click(function() {
1383
1384                $.each($('.cart-rows'), function() {
1385                    $(this).prev('.alarm-rows').children('.alarm-wrap').html('');
1386                });
1387
1388				cart_flag	= true;
1389                point_flag	= true;
1390                pointQuantity_flag = true;
1391                buycutQuantity_flag = true;
1392                mix_buycutQuantity_flag = true;
1393				checkStock();
1394
1395                if(pointQuantity_flag == false) {
1396                    layerMod.alert('','¾Ë¸²','Æ÷ÀÎÆ®¼¥ »óǰÁß¿¡ ±¸¸ÅÇÒ¼ö ÃÖ´ë¼ö·®º¸´Ù ¸¹½À´Ï´Ù.<br>ÁÖ¹®¼ö·®À» È®ÀÎÇØÁÖ¼¼¿ä.','È®ÀÎ','','layerMod.close()');
1397                }
1398
1399                if(buycutQuantity_flag == false) {
1400                    layerMod.alert('','¾Ë¸²','ÃÖ´ë ±¸¸Å¼ö·®º¸´Ù ¸¹½À´Ï´Ù.<br>ÁÖ¹®¼ö·®À» È®ÀÎÇØÁÖ¼¼¿ä.','È®ÀÎ','','layerMod.close()');
1401                }   
1402
1403                if(mix_buycutQuantity_flag == false) {
1404                    layerMod.alert('','¾Ë¸²','ÃÖ´ë ±¸¸Å¼ö·®º¸´Ù ¸¹½À´Ï´Ù.<br>ÁÖ¹®¼ö·®À» È®ÀÎÇØÁÖ¼¼¿ä.','È®ÀÎ','','layerMod.close()');
1405                }                              
1406
1407                if(point_flag == false) {
1408                    layerMod.alert('','¾Ë¸²','Æ÷ÀÎÆ®°¡ ºÎÁ·ÇÏ¿© ±¸¸ÅÀ» ¸øÇÏ´Â »óǰÀÌ ÀÖ½À´Ï´Ù.<br>ÁÖ¹®¼ö·®À» È®ÀÎÇØÁÖ¼¼¿ä.','È®ÀÎ','','layerMod.close()');
1409                }
1410
1411                if(cart_flag == false) {
1412                    layerMod.alert('','¾Ë¸²','Àç°í°¡ ºÎÁ·ÇÑ »óǰÀÌ ÀÖ½À´Ï´Ù.<br>ÁÖ¹®¼ö·®À» È®ÀÎÇØÁÖ¼¼¿ä.','È®ÀÎ','','layerMod.close()');
1413                }
1414
1415                if(cart_flag == true && point_flag == true && pointQuantity_flag == true && buycutQuantity_flag == true && mix_buycutQuantity_flag == true) {
1416                    var _total_count = 0;
1417                    $.each($('.cart-rows'), function(k, v) {
1418                        _total_count++;
1419                    });
1420
1421                    if(_total_count == 0) {
1422                        layerMod.alert('','¾Ë¸²','Àå¹Ù±¸´Ï¿¡ ´ã±ä »óǰÀÌ ¾ø½À´Ï´Ù.','È®ÀÎ','','layerMod.close()');
1423                    } else {
1424                                                location.href='/shop/order/order_gift_package.php';
1425                                            }
1426                }
1427
1428            });
1429
1430
1431            //¸ð¹ÙÀÏ ¼ö·®Ã¼Å© 
1432            $('input[name="cart_quantity"]').bind("change keyup input", function() {
1433                var _this = $(this);
1434                var _rows = _this.parents('.cart-rows:first');  
1435                var _input_wrap = _rows.find('.quantity-wrap:first');
1436                if($('input[name="cart_quantity"]', _input_wrap).val() == '' || $('input[name="cart_quantity"]', _input_wrap).val() == 0) {
1437                    $('input[name="cart_quantity"]', _input_wrap).val('');
1438                } else {
1439                    update_cart(_rows,'keypress');
1440                }
1441            });
1442
1443            // ¼ö·® ÀÔ·Â ¹Ú½ºÀÇ °ªÀÌ ±âÁ¸ °ª°ú ´Ù¸¦ °æ¿ì ¼öÁ¤ ¹öư ³ëÃâ
1444            $('input[name="cart_quantity"]').keydown(function(e) {
1445                fn_Number($(this), e);
1446            }).keyup(function(e) {
1447                // update trigger
1448                if (e.keyCode == 13) {
1449                    var _this = $(this);
1450                    var _rows = _this.parents('.cart-rows:first');
1451                    var _input_wrap = _rows.find('.quantity-wrap:first');
1452                    if($('input[name="cart_quantity"]', _input_wrap).val() == '' || $('input[name="cart_quantity"]', _input_wrap).val() == 0) {
1453                        $('input[name="cart_quantity"]', _input_wrap).val('1');
1454                        update_cart(_rows,'keypress');
1455                    } else {                       
1456                        update_cart(_rows,'keypress');
1457                    }
1458
1459                }
1460            }).blur(function(e){
1461                var _this = $(this);
1462                    var _rows = _this.parents('.cart-rows:first');
1463                    var _input_wrap = _rows.find('.quantity-wrap:first');
1464                    if($('input[name="cart_quantity"]', _input_wrap).val() == '' || $('input[name="cart_quantity"]', _input_wrap).val() == 0) {
1465                        $('input[name="cart_quantity"]', _input_wrap).val('1');
1466                        update_cart(_rows,'keypress');
1467                    } else {                       
1468                        update_cart(_rows,'keypress');
1469                    }
1470            });
1471
1472            // »óǰ ¼ö·® º¯°æ
1473            var update_cart = function(_rows,type) {
1474
1475
1476				var _alarm_html = '';
1477
1478                var _input_wrap = _rows.find('.quantity-wrap:first');
1479                var _quantity = $('input[name="cart_quantity"]', _input_wrap).val();
1480                if(type == "minus") {
1481                    if(_quantity > 1) {
1482                        _quantity = parseInt(_quantity) - 1;
1483                    }
1484                } else if(type == "plus") {
1485                    if(parseInt(_quantity) < 999) {
1486                        _quantity = parseInt(_quantity) + 1;
1487                    }
1488                } else if(type == "keypress") {
1489                    _quantity = parseInt(_quantity);
1490                }
1491
1492            $('input[name="cart_quantity"]', _input_wrap).val(_quantity);
1493                checkStock();
1494
1495
1496                $.ajax({
1497                    type: 'POST',
1498                    url: '/shop/goods/goods_cart_ajax.php',
1499                    data: {
1500                        mode: 'modItem',
1501                        cart_idx: _rows.attr('cart-idx'),
1502                        quantity: _quantity
1503                    },
1504                    dataType: 'json',
1505                    success: function(res) {
1506
1507                        if (res.success === true) {
1508
1509                            var _cart_type = 'CART';
1510                        
1511                            $('.gift_item_'+ _rows.attr('cart-idx') + ' span').each(function (index, item) { 
1512                                var gift_count = $(item).attr("gift-count"); 
1513                                var gift_idx = $(item).attr("gift-idx");
1514                                if(gift_count) {
1515                                    $(item).text(gift_count * _quantity);
1516                                }
1517                            });
1518
1519                            // if($('#gift-'+_rows.attr('cart-idx'))) {
1520                            //     var gift_event_quantity = $('#gift-'+_rows.attr('cart-idx')).attr('gift-quantity');
1521                            //     $('#gift-'+_rows.attr('cart-idx')).text(gift_event_quantity * _quantity);
1522                            // }
1523
1524                            //var _item = _.where(_cart_data[_cart_type], { idx: _rows.attr('cart-idx') })[0];
1525                            if(res.data.payType == "POINTSHOP") {
1526                                $('.item-consumer', _rows).html( ( parseInt(res.data.consumer) * parseInt(_quantity) ).number_format() + 'P').text();
1527                                $('.item-price', _rows).html( ( res.data.price ).number_format() + 'P').text();
1528
1529                                if(res.data.discount > 0 ) {
1530                                    $('.item-discount', _rows).html( ( res.data.discount ).number_format() + 'P').text();
1531                                }
1532                            } else {
1533                                $('.item-consumer', _rows).html( ( parseInt(res.data.consumer) * parseInt(_quantity) ).number_format() + '¿ø').text();
1534                                $('.item-price', _rows).html( ( res.data.price ).number_format() + '¿ø').text();
1535
1536                                if(res.data.discount > 0 ) {
1537                                    $('.item-discount', _rows).html(  ( res.data.discount ).number_format() + '¿ø').text();
1538                                }
1539                            }
1540                        }
1541
1542                        // ÃÑ ±Ý¾× °è»ê
1543                        cart_sum_total();
1544
1545                        return false;
1546                    }
1547                }); // $.ajax()
1548            }
1549
1550            $('.btn-minus').click(function() {
1551                var _this = $(this);
1552                var _rows = _this.parents('.cart-rows:first');
1553                update_cart(_rows,'minus');
1554
1555            });
1556
1557            $('.btn-plus').click(function() {
1558                var _this = $(this);
1559                var _rows = _this.parents('.cart-rows:first');
1560                update_cart(_rows,'plus');
1561
1562            });
1563
1564
1565            //Âò¸®½ºÆ® À̵¿Çϱâ
1566            $('.wish_move').click(function() {
1567                var _this = $(this);
1568                var _rows = _this.parents('.cart-rows:first');
1569                var _alarm_rows = _this.parents('.cart-rows').prev('.alarm-rows');
1570                var _add_option_rows = _this.parents('.cart-rows').prev('.alarm-rows').prev(".add-option-rows");
1571
1572                $.ajax({
1573                    type: 'POST',
1574                    url: '/shop/goods/goods_cart_ajax.php',
1575                    data: {
1576                        mode: 'wishItem',
1577                        cart_idx: _rows.attr('cart-idx')
1578                    },
1579                    dataType: 'json',
1580                    success: function(res) {
1581                        if (res.success === true) {
1582
1583
1584                            //_alarm_rows.remove();
1585                            //_rows.remove();
1586                            //_add_option_rows.remove();
1587
1588                            $.each($(_cart_data), function(k, elm){
1589                                if(elm.idx == _rows.attr('cart-idx')){
1590                                    delete _cart_data[k];
1591                                    _cart_data = resetObjectKey(_cart_data);
1592                                    checkStock();
1593                                    return;
1594                                }
1595                            });
1596
1597                            var _total_count = 0;
1598                            $.each($('.cart-rows'), function(k, v) {
1599                                _total_count++;
1600                            });
1601
1602                            if(_total_count == 0) {
1603                                $('.cart_alarm').show();
1604
1605                               
1606                                setTimeout(function() {
1607                                    updateStockMainStatus(false);
1608                                }, 100);
1609                            
1610                            }else{
1611                             
1612                                setTimeout(function() {
1613                                    updateStockMainStatus(true);
1614                                }, 100);
1615                              
1616							}
1617
1618                            cart_sum_total();   //±Ý¾× ÀçÁ¶Á¤
1619
1620                            _this.children('button').removeClass("btnGry2").addClass("btnRed2");
1621		                    layerMod.alert('','¾Ë¸²','Âò¸®½ºÆ®·Î À̵¿µÇ¾ú½À´Ï´Ù.','È®ÀÎ','','layerMod.close()');
1622                        } else {
1623                            layerMod.alert('','¾Ë¸²','Âò¸®½ºÆ®¿¡ ÇØ´ç»óǰÀÌ Á¸ÀçÇÕ´Ï´Ù. ','È®ÀÎ','','layerMod.close()');
1624                        }
1625                        return false;
1626                    }
1627                }); // $.ajax()
1628
1629                return false;
1630            });
1631
1632            //Àå¹Ù±¸´Ï »èÁ¦Çϱâ
1633            $('.btn-delete-new').click(function(e) {
1634                var _this = $(this);
1635                var _rows = _this.parents('.cart-rows:first');
1636                var _alarm_rows = _this.parents('.cart-rows').prev('.alarm-rows');
1637                var _add_option_rows = _this.parents('.cart-rows').prev('.alarm-rows').prev(".add-option-rows");
1638                $.ajax({
1639                    type: 'POST',
1640                    url: '/shop/goods/goods_cart_ajax.php',
1641                    data: {
1642                        mode: 'delItem',
1643                        cart_idx: _rows.attr('cart-idx')
1644                    },
1645                    dataType: 'json',
1646                    success: function(res) {
1647                        if (res.success === true) {
1648
1649                            var _cart_type = 'CART';
1650                            var _v_idx  = 0;
1651							var existsCartSaleGoods	= false;
1652                            var existsCartPointGoods	= false;
1653
1654                            _alarm_rows.remove();
1655                            _rows.remove();
1656                            _add_option_rows.remove();
1657
1658                            $.each($(_cart_data), function(k, elm){
1659                                if(elm.idx == _rows.attr('cart-idx')){
1660                                    delete _cart_data[k];
1661                                    _cart_data = resetObjectKey(_cart_data);
1662                                    checkStock();
1663                                    return;
1664                                }
1665                            });
1666
1667							$.each($(_cart_data), function(k, elm){
1668								if(_cart_data[k]['sale_shop'] == 'Y'){
1669									existsCartSaleGoods	= true;
1670									return;
1671								}
1672                            });
1673
1674
1675
1676                            $.each($(_cart_data), function(k, elm){
1677                                if(_cart_data[k]['point_use'] == true){
1678                                    existsCartPointGoods	= true;
1679                                    return;
1680                                }
1681                            });
1682
1683                            var _total_count = 0;
1684                            $.each($('.cart-rows'), function(k, v) {
1685                                _total_count++;
1686                            });
1687
1688                           //count
1689                            var dogpang_count = 0;
1690                            var catpang_count = 0;
1691                            
1692                            $.each($(_cart_data), function(k, elm) {
1693                          
1694                                 if(_cart_data[k]['mall_type'] == "dogpang" && _cart_data[k]['cartType'] == "CART") {
1695                                    dogpang_count = dogpang_count + 1;
1696                                }
1697
1698                                if(_cart_data[k]['mall_type'] == "catpang" && _cart_data[k]['cartType'] == "CART") {
1699                                    catpang_count = catpang_count + 1;
1700                                }    
1701                            });
1702
1703                       
1704
1705                            if(dogpang_count == 0) {
1706                                $('.dogpang_cart_title').hide();
1707                            }  else {
1708                                 $('.dogpang_cart_title').show();
1709                            }
1710
1711                            if(catpang_count == 0) {
1712                                $('.catpang_cart_title').hide();
1713                            }  else {
1714                                 $('.catpang_cart_title').show();
1715                            }
1716
1717                            if(catpang_count > 0 && dogpang_count == 0) {
1718                                $('.dogpang_cart_title').hide();
1719                                $('.catpang_cart_title').hide();
1720                            }
1721                        
1722
1723                            if(_total_count == 0) {
1724                                $('.cart_alarm').show();
1725                             
1726                                setTimeout(function() {
1727                                    updateStockMainStatus(false);
1728                                }, 100);
1729                            
1730                            }else{
1731                               
1732                                setTimeout(function() {
1733                                    updateStockMainStatus(true);
1734                                }, 100);
1735                             
1736							}
1737
1738							if(existsCartSaleGoods){
1739                               
1740                                setTimeout(function() {
1741                                    updateStockMainStatus(false);
1742                                }, 100);
1743                              
1744							}
1745
1746                            if(existsCartPointGoods){
1747                                
1748                                setTimeout(function() {
1749                                    updateStockMainStatus(false);
1750                                }, 100);
1751                               
1752                            }
1753
1754                            if(!existsCartSaleGoods && !existsCartPointGoods && _total_count > 0) {
1755                              
1756                                setTimeout(function() {
1757                                    updateStockMainStatus(true);
1758                                }, 100);
1759                               
1760                            }
1761
1762                            cart_sum_total();   //±Ý¾× ÀçÁ¶Á¤
1763                            $('.cart_count').text("("+$('.cart-rows').length+")" );
1764
1765		                    //layerMod.alert('','¾Ë¸²','Àå¹Ù±¸´Ï¿¡¼­ »èÁ¦µÇ¾ú½À´Ï´Ù.','È®ÀÎ','','layerMod.close()');
1766                        }
1767                        return false;
1768                    }
1769                }); // $.ajax()
1770
1771                return false;
1772            });
1773
1774
1775            //³ªÁß¿¡»ç±â »èÁ¦Çϱâ
1776            $('.btn-delete-later-new').click(function(e) {
1777                var _this = $(this);
1778
1779                var _rows = _this.parents('.later-rows:first');
1780                var _alarm_rows = _this.parents('.later-rows').prev('.alarm-rows');
1781                var _add_option_rows = _this.parents('.later-rows').prev('.alarm-rows').prev(".add-option-rows");
1782                $.ajax({
1783                    type: 'POST',
1784                    url: '/shop/goods/goods_cart_ajax.php',
1785                    data: {
1786                        mode: 'delItem',
1787                        cart_idx: _rows.attr('cart-idx')
1788                    },
1789                    dataType: 'json',
1790                    success: function(res) {
1791                        if (res.success === true) {
1792
1793                            _alarm_rows.remove();
1794                            _rows.remove();
1795                            _add_option_rows.remove();
1796                            $('.later_count').text("("+$('.later-rows').length+"°³)" );
1797                            if($('.later-rows').length == 0) {
1798                                $('.later-sec').hide();
1799                            }
1800                        }
1801                        return false;
1802                    }
1803                }); // $.ajax()
1804
1805                return false;
1806            });
1807
1808
1809            // ÃÑ ±Ý¾× °è»ê
1810            var cart_sum_total = function() {
1811
1812                $.ajax({
1813                    type: 'POST',
1814                    url: '/shop/goods/goods_cart_ajax.php',
1815                    data: { mode: 'cart_sum_total' },
1816                    dataType: 'json',
1817                    success: function(res) {
1818                        if (res.success === true) {
1819
1820                            if((parseInt(res.data.sum_goods_price) - parseInt(res.data.total_discount_price)) <= 0) {
1821
1822                                $('#sum_price').html("0¿ø");
1823                                $('#delivery_text').text("¹è¼Ûºñ");
1824                                $('#sum_discount').hide();
1825                                $('#sum_delivery').show();
1826                                $('#sum_delivery').html(res.data.sum_delivery_price.number_format() + '¿ø').text();
1827
1828                                if(res.data.sum_point_price == 0) {
1829                                    $('.detail-point').hide();
1830                                } else {
1831                                    $('#sum_point').html("-"+res.data.sum_point_price.number_format() + 'P').text();
1832                                }
1833
1834                                $('#free_delivery').html((30000 - (parseInt(res.data.total_discount_price))).number_format() +"¿ø ´õ ÁÖ¹®½Ã ¹«·á¹è¼Û");
1835                                $('#free_delivery').hide();
1836                            } else {
1837                                $('#delivery_text').text("¹è¼Ûºñ ¹«·á");
1838                                $('#free_delivery').show();
1839                                $('#sum_price').html( res.data.sum_goods_price.number_format() + '¿ø').text();
1840                                $('#sum_discount').html( "ÇÒÀιÞÀº±Ý¾× -" + (parseInt(res.data.sum_goods_price) - parseInt(res.data.total_discount_price)).number_format() + '¿ø').text();
1841                                $('#sum_delivery').hide();
1842                                $('#sum_delivery').html(res.data.sum_delivery_price.number_format() + '¿ø').text();
1843
1844                                if(res.data.sum_point_price == 0) {
1845                                    $('.detail-point').hide();
1846                                } else {
1847                                    $('#sum_point').html("-"+res.data.sum_point_price.number_format() + 'P').text();
1848                                }
1849
1850
1851                                if(parseInt(res.data.total_discount_price) < 30000) {
1852                                    $('#delivery_text').text("¹è¼Ûºñ");
1853                                    $('#sum_delivery').show();
1854                                    $('#free_delivery').html("+"+(30000 - (parseInt(res.data.total_discount_price))).number_format() +"¿ø ´õ ÁÖ¹®½Ã ¹«·á¹è¼Û");
1855
1856
1857                                } else if(parseInt(res.data.total_discount_price) >= 30000) {
1858                                    $('#delivery_text').text("¹è¼Ûºñ ¹«·á");
1859                                    $('#free_delivery').hide();
1860
1861
1862                                } else {
1863                                    $('#delivery_text').text("¹è¼Ûºñ");
1864                                }
1865                            }
1866
1867
1868                            $('#sum_total_price').html( parseInt( res.data.sum_goods_price ).number_format() + '¿ø').text();
1869
1870
1871                            if(parseInt( res.data.total_discount_price) == 0) {
1872                                $('#sum_total_price_goods').html(  (parseInt( res.data.total_discount_price ) + parseInt( res.data.sum_delivery_price )).number_format() + '¿ø').text();
1873                            } else {
1874                                $('#sum_total_price_goods').html(  (parseInt( res.data.total_discount_price ) + parseInt( res.data.sum_delivery_price )).number_format() + '¿ø').text();
1875                                $('#naver_total_price').val( parseInt( res.data.total_discount_price ) );
1876                            }
1877
1878                        }
1879                        return false;
1880                    }
1881                }); // $.ajax()
1882            }
1883
1884            function delivery_check(){
1885                if(document.getElementById('delivery_time') != undefined && document.getElementById('delivery_time') != 'undefined'){
1886                    $.ajax({
1887                        type: 'POST',
1888                        url: '/shop/goods/goods_cart_ajax.php',
1889                        data: { mode: 'delivery_check' },
1890                        dataType: 'json',
1891                        success: function(res) {
1892
1893        					var devliery_text = res.data.date.day_deli_text;
1894                            $('#delivery_time').html(devliery_text);
1895                        }
1896                    }); // end ajax
1897                }
1898            }
1899
1900
1901            delivery_check();
1902        });
1903
1904    }(jQuery));
1905
1906
1907// ³×À̹ö ÆäÀÌ ±¸¸Å¹öư Ŭ¸¯½Ã
1908function naverPayBuyBtn(e){
1909
1910    if ($('#naver_total_price').val() >= 40000) {
1911        var altMsg = '';
1912            altMsg += 'NÆäÀÌ °áÁ¦ ½Ã ¾Æ·¡ÀÇ ³»¿ëÀ» ÀоîÁÖ¼¼¿ä!\n\n';
1913            //altMsg += '1. ¹è¼ÛÁ¶È¸ ¹× °áÁ¦³»¿ªÀº NÆäÀÌ¿¡¼­ Á¶È¸µË´Ï´Ù.\n';
1914            altMsg += '1. NÆäÀÌ·Î ±¸¸Å½Ã ±¸¸Å±Ý¾×º° »çÀºÇ°ÀÌ Áö±ÞµÇÁö ¾Ê½À´Ï´Ù.\n';
1915            altMsg += '    (ĹÆÎÀ¸·Î ÁÖ¹®ÇÏ½Ã¸é ±¸¸Å±Ý¾×º° ÇýÅÃÀ» ¹ÞÀ¸½Ç¼ö ÀÖ½À´Ï´Ù)\n\n';
1916            altMsg += 'NÆäÀÌ °áÁ¦¸¦ ÁøÇàÇϽðڽÀ´Ï±î?';
1917
1918        if(confirm(altMsg)) {
1919
1920        } else {
1921            return false;
1922        }
1923
1924    } else {
1925        //var altMsg = '';
1926        //    altMsg += 'NÆäÀÌ °áÁ¦ ½Ã ¾Æ·¡ÀÇ ³»¿ëÀ» ÀоîÁÖ¼¼¿ä!\n\n';
1927        //    altMsg += '1. ¹è¼ÛÁ¶È¸ ¹× °áÁ¦³»¿ªÀº NÆäÀÌ¿¡¼­ Á¶È¸µË´Ï´Ù.\n\n';
1928        //    altMsg += 'NÆäÀÌ °áÁ¦¸¦ ÁøÇàÇϽðڽÀ´Ï±î?';
1929
1930        //if(confirm(altMsg)) {
1931
1932        //} else {
1933        //    return false;
1934        //}
1935
1936    }
1937
1938
1939    $.ajax({
1940        type: 'POST',
1941        url: '/shop/goods/naver_ad_pay.php',
1942        
1943        data: {
1944            viewCode: '',
1945            mixSno: '',
1946            n_ad : '',
1947            n_keyword : '',
1948            mall_type : 'catpang'
1949        }
1950    }); // $.ajax()
1951
1952
1953	 $.each($('.cart-rows'), function() {
1954		$(this).prev('.alarm-rows').children('.alarm-wrap').html('');
1955	});
1956
1957	cart_flag	= true;
1958	checkStock();
1959    if(cart_flag == false) {
1960        layerMod.alert('','¾Ë¸²','Àç°í°¡ ºÎÁ·ÇÑ »óǰÀÌ ÀÖ½À´Ï´Ù.<br>ÁÖ¹®¼ö·®À» È®ÀÎÇØÁÖ¼¼¿ä.','È®ÀÎ','','layerMod.close()');
1961        return false;
1962    }
1963
1964    if(buycutQuantity_flag == false) {
1965        layerMod.alert('','¾Ë¸²','ÃÖ´ë ±¸¸Å¼ö·®º¸´Ù ¸¹½À´Ï´Ù.<br>ÁÖ¹®¼ö·®À» È®ÀÎÇØÁÖ¼¼¿ä.','È®ÀÎ','','layerMod.close()');
1966        return false;
1967    }     
1968                
1969    if(mix_buycutQuantity_flag == false) {
1970        layerMod.alert('','¾Ë¸²','ÃÖ´ë ±¸¸Å¼ö·®º¸´Ù ¸¹½À´Ï´Ù.<br>ÁÖ¹®¼ö·®À» È®ÀÎÇØÁÖ¼¼¿ä.','È®ÀÎ','','layerMod.close()');
1971        return false;
1972    }   
1973
1974	if(cart_flag == true) {
1975		var _total_count = 0;
1976		$.each($('.cart-rows'), function(k, v) {
1977			_total_count++;
1978		});
1979
1980		if(_total_count == 0) {
1981			layerMod.alert('','¾Ë¸²','Àå¹Ù±¸´Ï¿¡ ´ã±ä »óǰÀÌ ¾ø½À´Ï´Ù.','È®ÀÎ','','layerMod.close()');
1982		} else {
1983			var ajaxData    = {};
1984			ajaxData.viewCode	= [];
1985			ajaxData.mixSno		= [];
1986			ajaxData.quantity	= [];
1987            ajaxData.combo	= [];
1988
1989			$.each($('.cart-rows'), function(k, v) {
1990				ajaxData['mode']            = 'naverPay';
1991				ajaxData.viewCode.push($(v).attr('goods-viewCode'));
1992				ajaxData.mixSno.push($(v).attr('goods-mixSno'));
1993				ajaxData.quantity.push($(v).find('input[name="cart_quantity"]').val());
1994                ajaxData.combo.push($(v).find('input[name="combo_list"]').val());
1995			});
1996
1997
1998            return new Promise(function(resolve, reject) {
1999                $.ajax({
2000                        type: 'POST',
2001                        url: '/shop/goods/naverPayCheck.php',
2002                        data: ajaxData,
2003                        dataType: 'json',
2004                        success: function(res) {
2005                            if(res.success == true){
2006                                resolve(res); // ¼º°ø½Ã res ¹Ýȯ
2007                            } else {
2008                                reject(res.msg); // ½ÇÆÐ½Ã ¿¡·¯ ¸Þ½ÃÁö ¹Ýȯ
2009                            }
2010                        },
2011                        error: function(err) {
2012                            reject(err);
2013                        }
2014                    });
2015            });
2016		}
2017	}
2018
2019
2020}
2021
2022
2023
2024// ³×À̹öÆäÀÌ Âò ¹öư Ŭ¸¯½Ã
2025var naverPayZZimWin = '';
2026function naverPayZZimBtn(e){
2027
2028	//°¡´É±¸¸Å¼ö·®ÀÌ ¾ø°Å³ª ÀûÀ»°æ¿ì
2029	if(_pack_stock_status == true) {
2030		return false;
2031	}
2032	if ($('[name="quantity"]').val() < 1) {
2033		layerMod.alert('','¾Ë¸²','¼ö·®Àº 1°³ ÀÌ»ó ¼±ÅÃÇØ¾ßµË´Ï´Ù.','È®ÀÎ','','layerMod.close()');
2034		return false;
2035	}
2036
2037	if($("input[name='mixSno']").val() == "") {
2038
2039		if($('[name="viewType"]').val() == 'OPTION') {
2040			layerMod.alert('','¾Ë¸²','»óǰ ¿É¼ÇÀ» ¼±ÅÃÇØÁÖ¼¼¿ä.','È®ÀÎ','','layerMod.close()');
2041		} else if($('[name="viewType"]').val() == 'PACK') {
2042			layerMod.alert('','¾Ë¸²','»óǰ ¹­À½À» ¼±ÅÃÇØÁÖ¼¼¿ä.','È®ÀÎ','','layerMod.close()');
2043		}
2044		return false;
2045	}
2046
2047	var ajaxData    = {};
2048	ajaxData['mode']            = 'naverPayZZim';
2049	ajaxData['viewCode[]']      = $('#viewCode').val();
2050	ajaxData['mixSno[]']        = $('#mixSno').val();
2051	ajaxData['quantity[]']      = $('[name="quantity"]').val();
2052
2053	$.ajax({
2054		type: 'POST',
2055		url: '/shop/goods/naverPayCheck.php',
2056		data: ajaxData,
2057                dataType: 'json',
2058		success: function(res) {
2059//			console.log(res);
2060			if(res.success == true){
2061
2062									var testFlag	= false;
2063				
2064                					if(testFlag == true){
2065						$('#naverPayZZimForm').attr('action', 'https://test-pay.naver.com/customer/wishlistPopup.nhn');
2066					}else{
2067						$('#naverPayZZimForm').attr('action', 'https://pay.naver.com/customer/wishlistPopup.nhn');
2068					}
2069                
2070                naverPayZZimWin = window.open("", "naverPayZZimWin", "width=100, height=100, scrollbars=0");
2071                $('input[name="ITEM_ID"]').remove();
2072
2073                $('#naverPayZZimForm input[name="SHOP_ID"]').val(res.shopId);
2074
2075                if(res.data.itemId){
2076                    $.each(res.data.itemId, function(k, id){
2077                        $('#naverPayZZimForm').append('<input type="hidden" name="ITEM_ID" value="' + id + '">');
2078                    });
2079                }
2080
2081
2082                $('#naverPayZZimForm').submit();
2083
2084			}else{
2085
2086			}
2087		}
2088	}); // $.ajax()
2089}
2090
2091$('.review_choice_be_order li').click(function(){
2092    var go = $(this).find('a').attr("href");
2093    location.href = go;
2094});
2095
2096// ³ªÁß¿¡ »ç±â
2097$('.cart_later').on('click', function(e) {
2098    e.stopPropagation();
2099    _move_cart($(this).parents('.cart-rows:first'), 'move_later');
2100    return false;
2101});
2102
2103// Àå¹Ù±¸´Ï À̵¿Çϱâ
2104$('.cart_move').on('click', function(e) {
2105    e.stopPropagation();
2106    _move_cart($(this).parents('.later-rows:first'), 'move_cart');
2107    return false;
2108});
2109
2110//º°Á¡º°·Î º¸±â ó¸®
2111$("#catpangPay_story").click(function(){
2112    layerMod.contents('#catpangPay','next');
2113});
2114
2115 //À¯Åë±âÇÑ ¼³¸í
2116$(".expire_layer").click(function(){
2117	layerMod.contents('#expire_layer_view','next');
2118});
2119
2120 //µµ¼­»ê°£
2121 $(".delivery_help").click(function(){
2122	layerMod.alert('','¾Ë¸²','Á¦ÁÖ ¹× µµ¼­»ê°£ Áö¿ªÀº 3,000¿øÀÌ Ãß°¡µË´Ï´Ù.','È®ÀÎ','','layerMod.close()');
2123});
2124
2125
2126
2127
2128// Àå¹Ù±¸´Ï »óǰ À̵¿
2129var _move_cart = function(_rows, mode) {
2130    $.ajax({
2131        type: 'POST',
2132        url: '/shop/goods/goods_cart_ajax.php',
2133        data: {
2134            mode: mode,
2135            cart_idx: _rows.attr('cart-idx')
2136        },
2137        dataType: 'json',
2138        success: function(res) {
2139            if (res.success === true) {
2140                location.reload();
2141            }
2142        }
2143    }); // $.ajax()
2144
2145};
2146
2147//Àå¹Ù±¸´Ï ÄíÆù¿­±â
2148function openCouponPop(_rows,memberCouponNo) {
2149
2150    //ÇØ´ç»óǰ ajax
2151    $.ajax({
2152        type: 'POST',
2153        url: '/shop/goods/goods_cart_ajax.php',
2154        async:false,
2155        data: {
2156            mode    : 'couponCartList',
2157            couponNo: memberCouponNo,
2158            cart_idx: _rows.attr('cart-idx')
2159        },
2160        dataType: 'json',
2161        success: function(res) {
2162            if (res.success === true) {
2163                var data = res.data;
2164
2165                var total_coupon_text = 0;
2166
2167                var tr = '';
2168
2169                tr += '<section class="sect info" id="goodsCoupon_'+ _rows.attr('cart-idx') +'">';
2170                tr += '    <input type="hidden" id="cartId" name="cartId" value="'+ _rows.attr('cart-idx') +'">';
2171                tr += '    <input type="hidden" id="saleAmt_'+ _rows.attr('cart-idx') +'" name="saleAmt" value="'+ data.info.couponSaleAmt +'">';
2172                tr += '    <input type="hidden" id="optimalMbrCpNo" name="optimalMbrCpNo" value="'+ data.info.memberCouponNo +'">';
2173                tr += '    <input type="hidden" id="selMbrCpNo" name="selMbrCpNo" value="'+ data.info.cartCouponNo +'">';
2174                tr += '    <input type="hidden" id="compGbCd" name="compGbCd" value="'+ data.info.cartCouponPrice +'">';
2175                tr += '    <input type="hidden" id="itemPrice" name="itemPrice" value="'+ data.info.couponTotaltmpViewPrice +'">';
2176                tr += '    ';
2177                tr += '    <div class="pdset">';
2178                tr += '        <div class="pic"><img src="'+ data.info.mainImage  +'" alt="'+ data.info.viewName +'" class="img"></div>';
2179                tr += '        <div class="disc">';
2180                tr += '            <span class="name">'+ data.info.viewName +'</span>';
2181                tr += '        </div>';
2182                tr += '    </div>';
2183                tr += '    <div class="totprc">';
2184                tr += '        <div class="price ptp">';
2185                tr += '            <span class="tit">ÆÇ¸Å°¡</span>';
2186                tr += '            <span class="prc"><em class="p">'+ data.info.couponTotaltmpViewPrice.number_format() +'</em><span class="w">¿ø</span></span>';
2187                tr += '        </div>';
2188                tr += '        <div class="price dis">';
2189                tr += '            <i class="cq m">-</i>';
2190                tr += '            <span class="tit">ÇÒÀαݾ×</span>';
2191                tr += '            <span class="prc"><em class="p goodsDcAmt_'+ _rows.attr('cart-idx') +'" id="goodsDcAmt_'+ _rows.attr('cart-idx') +'" style="color:#c34;font-weight:700;">'+ data.info.cartCouponPrice.number_format() +'</em><span class="w" style="color:#c34;font-weight:700;">¿ø</span></span>';
2192                tr += '        </div>';
2193                tr += '        <div class="price cpn">';
2194                tr += '            <i class="cq e">=</i>';
2195                tr += '            <span class="tit">ÄíÆù Àû¿ë°¡</span>';
2196                tr += '            <span class="prc"><em class="p goodsTotalAmt_'+ _rows.attr('cart-idx') +'" id="goodsTotalAmt_'+ _rows.attr('cart-idx') +'">'+ data.info.couponSaleAmt.number_format() +'</em><span class="w">¿ø</span></span>';
2197                tr += '        </div>';
2198                tr += '    </div>';
2199                tr += '    <div class="totprc" style="margin-top:10px;min-height:18px;">';
2200                tr += '         ¾È³»»çÇ× : ³×À̹öÆäÀÌ °áÁ¦ ½Ã ÄíÆù Àû¿ëºÒ°¡';
2201                tr += '    </div>';                
2202                tr += '</section>';
2203
2204                trc = '';
2205                $.each($(data.couponList), function(k, v){
2206                
2207                var totCpDcAmt = v.couponPrice ;
2208                
2209                trc += '<li>';
2210                trc += '    <label class="radio">';
2211                trc += '        <input type="hidden" name="cpNo" value="'+ v.couponNo +'">';
2212                trc += '        <input type="hidden" name="memberCouponNo" value="'+ v.memberCouponNo +'">';
2213                trc += '        <input type="hidden" name="chkCompGbCd" value="'+ v.couponBenefit +'">';
2214                trc += '        <input type="hidden" name="chkCompGbCdType" value="'+ v.couponBenefitType +'">';
2215                trc += '        <input type="hidden" name="cpDcAmt" value="'+ v.couponPrice +'">';
2216                trc += '        <input type="hidden" name="totCpDcAmt" value="'+ totCpDcAmt  +'">';
2217
2218        
2219                    
2220                if(parseInt(data.info.cartCouponNo) == parseInt(v.memberCouponNo)) {
2221
2222                    $('[dummy-id=couponApply]').attr("data-coupon-cart-idx",_rows.attr('cart-idx'));
2223                    $('[dummy-id=couponApply]').attr("data-member-coupon-no",memberCouponNo);
2224                    total_coupon_text = totCpDcAmt;
2225
2226
2227                    trc += '        <input type="radio" onClick="couponChange(this,'+ _rows.attr('cart-idx') +');" name="rdb_cpupon_'+ _rows.attr('cart-idx') +'" checked="checked" value="'+ v.memberCouponNo +'"  data-cart-id="'+ _rows.attr('cart-idx') +'">';
2228                } else {
2229
2230                    trc += '        <input type="radio" onClick="couponChange(this,'+ _rows.attr('cart-idx') +');" name="rdb_cpupon_'+ _rows.attr('cart-idx') +'" value="'+ v.memberCouponNo +'"  data-cart-id="'+ _rows.attr('cart-idx') +'">';
2231                }
2232                trc += '        <div class="txt">';
2233                trc += '            <div class="hdd">';
2234                trc += '                <em class="prc"><em class="p">'+ (v.couponPrice ).number_format()  +'</em><span class="w">¿ø</span></em>';
2235
2236                if(v.overlap_flag == true) {
2237                trc += '                    <span class="msg" style="display:none;">´Ù¸¥ »óǰ Àû¿ëÁß</span>';
2238                } else {
2239                trc += '                    <span class="msg" style="display:inline-block;">´Ù¸¥ »óǰ Àû¿ëÁß</span>';
2240                }
2241                trc += '            </div>';
2242                trc += '            <div class="cdd">';
2243                trc += '                <div class="dt">'+ v.couponUseTypeName +' '+ v.couponNm +'</div>';
2244                trc += '                <div class="dd">';
2245
2246                if(v.couponMaxBenefitType == 'y') {    
2247                    trc += 'ÃÖ´ë '+ Math.floor(v.couponMaxBenefit).number_format() +'¿ø ÇÒÀÎ';
2248                }
2249                
2250                trc += '                </div>';
2251                trc += '            </div>';
2252                trc += '        </div>';
2253                trc += '    </label>';
2254                trc += '</li>';
2255
2256
2257                });
2258
2259
2260
2261                trc += '<li>';
2262                trc += '    <label class="radio">';
2263                trc += '        <input type="hidden" name="cpDcAmt" value="0">';
2264                trc += '        <input type="hidden" name="totCpDcAmt" value="0">';
2265                trc += '        <input type="hidden" name="memberCouponNo" value="0">';
2266                if(data.info.cartCouponNo == 0) {
2267                trc += '        <input type="radio" onClick="couponChange(this,'+ _rows.attr('cart-idx') +');" name="rdb_cpupon_'+ _rows.attr('cart-idx') +'" id="noAplGoodsBtn_'+ _rows.attr('cart-idx') +'" checked="checked" value="" data-cart-id="'+ _rows.attr('cart-idx') +'">';
2268                } else {
2269                trc += '        <input type="radio" onClick="couponChange(this,'+ _rows.attr('cart-idx') +');" name="rdb_cpupon_'+ _rows.attr('cart-idx') +'" id="noAplGoodsBtn_'+ _rows.attr('cart-idx') +'"  value="" data-cart-id="'+ _rows.attr('cart-idx') +'">';
2270                }
2271                trc += '        <div class="txt">';
2272                trc += '            <div class="hdd">';
2273                trc += '                <em class="amt"><em class="t">Àû¿ë¾ÈÇÔ</em></em>';
2274                trc += '            </div>';
2275                trc += '        </div>';
2276                trc += '    </label>';
2277                trc += '</li>                ';
2278
2279
2280                
2281                $('#couponInfo').html(tr);
2282                $('.cplist').html(trc);
2283
2284                if(data.info.cartCouponNo == 0) {
2285                    $('[dummy-id=couponApply]').html('ÃÑ -0¿ø ÇÒÀÎ ÄíÆù Àû¿ë');
2286                } else {
2287                    $('[dummy-id=couponApply]').html('ÃÑ -'+ total_coupon_text.number_format() +'¿ø ÇÒÀÎ ÄíÆù Àû¿ë');
2288                }
2289
2290                layerMod.contents('#coupon-member','next');
2291            }
2292        }
2293    }); // $.ajax()
2294
2295
2296}
2297
2298//Àå¹Ù±¸´Ï ÄíÆù ¼±ÅÃ
2299function couponChange(e,cart_idx) {
2300
2301
2302    var totCpDcAmt = $(e).siblings("input[name=totCpDcAmt]").val();
2303    var itemPrice = $('#itemPrice').val();
2304    var totalCpDcAmt = itemPrice - totCpDcAmt;
2305
2306
2307    $('.goodsDcAmt_'+cart_idx).text(totCpDcAmt.number_format());
2308    $('.goodsTotalAmt_'+cart_idx).text(totalCpDcAmt.number_format());
2309
2310    var memberCouponNo = $(e).siblings("input[name=memberCouponNo]").val();
2311    var cartId = $("input[name=cartId]").val();
2312    
2313    $('#couponApply').attr("data-coupon-cart-idx",cartId);
2314    $('#couponApply').attr("data-member-coupon-no",memberCouponNo);
2315    $('#couponApply').html('ÃÑ -'+ totCpDcAmt.number_format() +'¿ø ÇÒÀÎ ÄíÆù Àû¿ë');
2316
2317
2318}
2319
2320//Àå¹Ù±¸´Ï ÄíÆù Àû¿ë
2321function couponApply(e) {
2322    var cartId = $(e).attr("data-coupon-cart-idx");
2323    var memberCouponNo = $(e).attr("data-member-coupon-no");
2324
2325
2326    //ÇØ´ç»óǰ ajax
2327    $.ajax({
2328        type: 'POST',
2329        url: '/shop/goods/goods_cart_ajax.php',
2330        async:false,
2331        data: {
2332            mode    : 'couponCartApply',
2333            couponNo: memberCouponNo,
2334            cart_idx: cartId
2335        },
2336        dataType: 'json',
2337        success: function(res) {
2338            if (res.success === true) {
2339
2340
2341                $.each(res.data.cartList, function(k, v) {
2342                    $.each( $('.cart-rows'), function(){
2343
2344                        if($(this).attr("cart-idx") == v.cart_idx) {
2345                            $(this).find('.item-price').text( ( v.couponTotaltmpViewPrice ).number_format() + '¿ø' );  
2346                            $(this).find('.couponApplyText').text("");
2347                            return false;
2348                        }
2349                    });
2350                
2351                });     
2352                
2353                
2354                $.each( $('.cart-rows'), function(){
2355                    if($(this).attr("cart-idx") == cartId){
2356
2357                        $(this).find('.item-price').text( ( res.data.couponSaleAmt ).number_format() + '¿ø' );  
2358                        if(res.data.cartCouponPrice > 0) {
2359                            $(this).find('.couponApplyText').text("ÄíÆùÀû¿ë°¡");
2360                        } else {
2361                            $(this).find('.couponApplyText').text("");
2362                        }
2363                        return false;
2364                    } 
2365                });                
2366                cart_sum_total_coupon();
2367                layerMod.close();
2368
2369            } else {
2370                layerMod.alert('','¾Ë¸²','ÄíÆùÀ» Àû¿ëÀ» ½ÇÆÐÇß½À´Ï´Ù. ´Ù½Ã ½ÃµµÇØÁÖ¼¼¿ä.','È®ÀÎ','','layerMod.close()');
2371            }
2372        }
2373    });
2374
2375}
2376
2377
2378// ÃÑ ±Ý¾× °è»ê
2379function cart_sum_total_coupon() {
2380
2381    $.ajax({
2382        type: 'POST',
2383        url: '/shop/goods/goods_cart_ajax.php',
2384        data: { mode: 'cart_sum_total' },
2385        dataType: 'json',
2386        success: function(res) {
2387            if (res.success === true) {
2388
2389                if((parseInt(res.data.sum_goods_price) - parseInt(res.data.total_discount_price)) <= 0) {
2390
2391                    $('#sum_price').html("0¿ø");
2392                    $('#delivery_text').text("¹è¼Ûºñ");
2393                    $('#sum_discount').hide();
2394                    $('#sum_delivery').show();
2395                    $('#sum_delivery').html(res.data.sum_delivery_price.number_format() + '¿ø').text();
2396
2397                    if(res.data.sum_point_price == 0) {
2398                        $('.detail-point').hide();
2399                    } else {
2400                        $('#sum_point').html("-"+res.data.sum_point_price.number_format() + 'P').text();
2401                    }
2402
2403                    $('#free_delivery').html((30000 - (parseInt(res.data.total_discount_price))).number_format() +"¿ø ´õ ÁÖ¹®½Ã ¹«·á¹è¼Û");
2404                    $('#free_delivery').hide();
2405                } else {
2406                    $('#delivery_text').text("¹è¼Ûºñ ¹«·á");
2407                    $('#free_delivery').show();
2408                    $('#sum_price').html( res.data.sum_goods_price.number_format() + '¿ø').text();
2409                    $('#sum_discount').html( "ÇÒÀιÞÀº±Ý¾× -" + (parseInt(res.data.sum_goods_price) - parseInt(res.data.total_discount_price)).number_format() + '¿ø').text();
2410                    $('#sum_delivery').hide();
2411                    $('#sum_delivery').html(res.data.sum_delivery_price.number_format() + '¿ø').text();
2412
2413                    if(res.data.sum_point_price == 0) {
2414                        $('.detail-point').hide();
2415                    } else {
2416                        $('#sum_point').html("-"+res.data.sum_point_price.number_format() + 'P').text();
2417                    }
2418
2419
2420                    if(parseInt(res.data.total_discount_price) < 30000) {
2421                        $('#delivery_text').text("¹è¼Ûºñ");
2422                        $('#sum_delivery').show();
2423                        $('#free_delivery').html("+"+(30000 - (parseInt(res.data.total_discount_price))).number_format() +"¿ø ´õ ÁÖ¹®½Ã ¹«·á¹è¼Û");
2424
2425
2426                    } else if(parseInt(res.data.total_discount_price) >= 30000) {
2427                        $('#delivery_text').text("¹è¼Ûºñ ¹«·á");
2428                        $('#free_delivery').hide();
2429
2430
2431                    } else {
2432                        $('#delivery_text').text("¹è¼Ûºñ");
2433                    }
2434                }
2435
2436
2437                $('#sum_total_price').html( parseInt( res.data.sum_goods_price ).number_format() + '¿ø').text();
2438
2439
2440                if(parseInt( res.data.total_discount_price) == 0) {
2441                    $('#sum_total_price_goods').html(  (parseInt( res.data.total_discount_price ) + parseInt( res.data.sum_delivery_price )).number_format() + '¿ø').text();
2442                } else {
2443                    $('#sum_total_price_goods').html(  (parseInt( res.data.total_discount_price ) + parseInt( res.data.sum_delivery_price )).number_format() + '¿ø').text();
2444                    $('#naver_total_price').val( parseInt( res.data.total_discount_price ) );
2445                }
2446
2447            }
2448            return false;
2449        }
2450    }); // $.ajax()
2451}
2452</script>
2452
2453
2454
2455            <!-- msg-modify-layer start  -->
2456            <span id="catpangPay" class="hide">¸Þ¼¼Áö ·¹À̾î</span>
2457            <div class="clone-layer"> <!-- ·¹ÀÌ¾î »óÅ¿¡¼­ ·¹À̾ ºÒ·¯¿Í¾ß ÇÒ °æ¿ì clone-confirm-->
2458                <h2 class="tit type02"><b>ĹÆÎÆäÀÌ Ã¹ °áÁ¦½Ã 5% °áÁ¦ÇÒÀÎ</b></h2>
2459                <div class="clone-content">
2460                    ĹÆÎÆäÀ̸¦ ÀÌ¿ëÇϽøé 6ÀÚ¸® PIN¹øÈ£¸¸ ÀÔ·ÂÇÏ¿© °£ÆíÇÏ°Ô °áÁ¦°¡ °¡´ÉÇÕ´Ï´Ù.<br><br>
2461
2462                    ĹÆÎÆäÀÌ´Â º»ÀÎÀÎÁõ °¡ÀÔÈÄ °áÁ¦¼ö´Ü(Ä«µå) µî·Ï ÈÄ ÀÌ¿ëÇÏ½Ç ¼ö ÀÖ½À´Ï´Ù.<br><br>
2463
2464                    < ÀÌ¿ë¹æ¹ý ><br>
2465
2466                    1. º»ÀÎÀÎÁõ<br>
2467                    2. Ä«µåµî·Ï<br>
2468                    3. 6ÀÚ¸® PIN ÀÔ·Â<br>
2469                    4. 6ÀÚ¸® PIN¹øÈ£·Î »óǰ°áÁ¦<br><br>
2470
2471                    <ĹÆÎÆäÀÌ Áö¿ø Ä«µå><br><br>
2472                    (½ÅÇÑÄ«µå, BCÄ«µå, NHÄ«µå, ±¹¹ÎÄ«µå, ·Ôµ¥Ä«µå, »ï¼ºÄ«µå, Çϳª(¿Üȯīµå), Çö´ëÄ«µå)<br><br><br>
2473
2474                    ĹÆÎÆäÀÌ Ã¹ °áÁ¦½Ã ¿ÀDZâ³ä 5% °áÁ¦ÇÒÀÎ À̺¥Æ®¸¦ ÁøÇàÇÕ´Ï´Ù.<br>
2475                    <b>°áÁ¦ÆäÀÌÁö => °áÁ¦Çϱ⠹öưÀ» ´­·¯Áֽøé Áï½Ã ÇÒÀÎÀû¿ëÀÌ µË´Ï´Ù.</b><br><br>
2476
2477                    ¡Ø ĹÆÎÆäÀ̴ ĹÆÎȸ¿ø¸¸ Áö¿øµË´Ï´Ù. (ºñȸ¿ø ¹ÌÁö¿ø)<br>
2478                    ¡Ø 5% ÇÒÀÎÀ¸·Î °áÁ¦ ÈÄ ÀüüÃë¼Ò½Ã ´Ù½Ã 5% ÇÒÀα¸¸Å °¡´ÉÇÕ´Ï´Ù.  (ºÎºÐÃë¼Ò½Ã ÀçÇÒÀκҰ¡)<br>
2479                    ¡Ø ID´ç 1ȸ¸¸ 5% ÇÒÀÎÀÌ °¡´ÉÇÕ´Ï´Ù.<br>
2480                    ¡Ø ÄíÆù »ç¿ë½Ã Áߺ¹ÇÒÀÎÀÌ ¾ÈµË´Ï´Ù.<br>
2481                    ¡Ø īī¿À¹ðÅ© üũīµå, ¾¾Æ¼Ä«µå Áö¿ø ºÒ°¡<br>
2482                    <div class="btn-area">
2483
2484                        <button type="button" class="btn-type type03 size03" onclick="layerMod.close()"><b>´Ý±â</b></button>
2485                    </div>
2486                </div>
2487                <button type="button" class="btn-close01">´Ý±â</button>
2488            </div>
2489            <!-- msg-modify-layer end -->
2490
2491
2492            <!-- msg-modify-layer start  -->
2493            <span id="total_member" class="hide">¸Þ¼¼Áö ·¹À̾î</span>
2494            <div class="clone-layer"> <!-- ·¹ÀÌ¾î »óÅ¿¡¼­ ·¹À̾ ºÒ·¯¿Í¾ß ÇÒ °æ¿ì clone-confirm-->
2495                <h2 class="tit type02"><b>ĹÆÎ, µµ±×ÆÎ ȸ¿øÅëÇÕ °¡ÀÔ ¾È³»</b></h2>
2496                <div class="clone-content" style="font-size:13px;line-height: 20px;">
2497
2498                    ĹÆÎÀ̳ª µµ±×ÆÎÀ» ÀÌ¿ëÁßÀ̽Š°í°´´Ô²²¼­´Â ÇϳªÀÇ ¾ÆÀ̵ð·Î ÅëÇÕȸ¿øÀ¸·Î º¯°æÇÏ¿© »ç¿ëÇÏ½Ç ¼ö ÀÖ½À´Ï´Ù.<br>
2499                    ÇÏ´ÜÀÇ µ¿ÀÇ ¹öưÀ» ´©¸£½Ã¸é Áï½Ã ÅëÇÕȸ¿øÀ¸·Î º¯°æµË´Ï´Ù.<br><br>
2500
2501                    < ĹÆÎ & µµ±×ÆÎ ÅëÇÕȸ¿ø ÇýÅà ><br><br>
2502
2503                    1. ĹÆÎ, µµ±×ÆÎ »óǰÀ» Àå¹Ù±¸´Ï¿¡ ÇÔ²² ´ã¾Æ °áÁ¦ÇÏ¿© ¹Þ¾Æº¸½Ç ¼ö ÀÖ½À´Ï´Ù.<br>
2504                    2. ĹÆÎ, µµ±×ÆÎ °áÁ¦±Ý¾×À» ÇÕ»êÇÑ ±Ý¾×À¸·Î ȸ¿øµî±Þ ÇýÅÃÀ» ¹ÞÀ¸½Ç ¼ö ÀÖ½À´Ï´Ù.<br>
2505                    3. Àû¸³±Ý ¹× Æ÷ÀÎÆ®¸¦ ÅëÇÕÇÏ¿© »ç¿ëÇÏ½Ç ¼ö ÀÖ½À´Ï´Ù.<br>
2506                    4. ĹÆÎ, µµ±×ÆÎ Áß ¿øÇϽô °÷¿¡¼­ »çÀºÇ°À» ¼±ÅÃÇÏ¿© °áÁ¦ÇÏ½Ç ¼ö ÀÖ½À´Ï´Ù.<br>
2507                    5. ĹÆÎ, µµ±×ÆÎ Áß Ä£±¸ Ãßõ Äڵ嵵 ÅëÇÕÇÏ¿© ÇÒÀÎ ¹× Àû¸³ÀÌ µË´Ï´Ù.<br>
2508                    6. ĹÆÎ, µµ±×ÆÎ »óǰ ÄíÆùµµ ¾îµð¼­µç ÅëÇÕ »ç¿ë °¡´ÉÇÕ´Ï´Ù.<br><br>
2509
2510                    ¡Ø ÅëÇÕȸ¿ø¿¡ µ¿ÀÇÇÏ½Ã¸é µ¿ÀÏÇÑ ¾ÆÀ̵ð·Î ĹÆÎ, µµ±×ÆÎÀ» ¸ðµÎ ÀÌ¿ëÇÏ½Ç ¼ö ÀÖ½À´Ï´Ù.<br>
2511                    ¡Ø Å»Åð½Ã ĹÆÎ, µµ±×ÆÎ ¸ðµÎ Å»ÅðµÇ¿À´Ï À¯ÀÇÇϽñ⠹ٶø´Ï´Ù.<br>
2512                    ¡Ø ¾Æ·¡ÀÇ ÅëÇÕȸ¿ø µ¿ÀÇÇϱ⠹öưÀ» ´©¸£½Ã¸é Áï½Ã ÀÌ¿ëÇÏ½Ç ¼ö ÀÖ½À´Ï´Ù.<br>
2513                    ¡Ø ºñȸ¿ø ±¸¸Å½Ã ¸ÞÀλó´Ü µµ±×ÆÎ ¹öư Ŭ¸¯À¸·Î ĹÆÎ, µµ±×ÆÎ »óǰÀ» ÇÔ²² ÁÖ¹® °¡´ÉÇÕ´Ï´Ù.<br>
2514
2515                    <div class="btn-area">
2516                        <button type="button" class="btn-type type03 size03 total_member_ok"><b>ÅëÇÕȸ¿ø µ¿ÀÇÇϱâ</b></button>
2517                    </div>
2518                </div>
2519                <button type="button" class="btn-close01">´Ý±â</button>
2520            </div>
2521            <!-- msg-modify-layer end -->            
2522            <input type="hidden" name="scroll_review" id="scroll_review"/>
2523
2524
2525
2526
2527
2528
2529
2530                        <div id="footer">
2531                <div class="wrap">
2532                                        <div class="wrap-top">
2533                        <a href="#skip-nav" id="btn-top" style="bottom: 100px;">»ó´ÜÀ¸·Î ¿Ã¶ó°¡±â</a>
2534                    </div>
2535                                        
2536                    <div class="util-nav">
2537                        <ul>
2538                            <li><a href="http://www.seoilap.com/" target="_blank">ȸ»ç¼Ò°³</a></li>
2539                            <li><a href="/shop/service/company.php">ĹÆÎ¼Ò°³</a></li>
2540                            <li><a href="/shop/service/term.php">ÀÌ¿ë¾à°ü</a></li>
2541                            <li><a href="/shop/service/private.php"><b>°³ÀÎÁ¤º¸Ã³¸®¹æÄ§</b></a></li>
2542                            <li><a href="/shop/mypage/notice.php">°øÁö»çÇ×</a></li>
2543                            <li><a href="/shop/service/faq.php">FAQ</a></li>
2544                            <li><a href="javascript:;" onClick="javascript:chatChannel();">Ä«Åå »ó´ãÇϱâ</a></li>
2545                            <li><a href="/shop/service/cooperation.php">ÀÔÁ¡¹®ÀÇ</a></li>
2546                        </ul>
2547                    </div>
2548
2549                    <div class="company-info">
2550                        <h2 class="logo">CatPang ĹÆÎ</h2>
2551                        <div class="center-info">
2552                            <h2>Ä£Àý°í°´¼¾ÅÍ</h2>
2553                            <span class="tel">1588-3010</span>
2554                            <dl style="margin-bottom:3px;">
2555                                <dt>ÆòÀÏ</dt>
2556                                <dd>10:00 ~ 17:30</dd>
2557                            </dl>
2558                            <dl style="margin-bottom:3px;">
2559                                <dt>Á¡½É½Ã°£</dt>
2560                                <dd>12:00 ~ 13:00</dd>
2561                            </dl>
2562
2563                            <b>°í°´¼¾ÅÍ</b>: &nbsp;&nbsp;&nbsp;&nbsp;Åä,ÀÏ / °øÈÞÀÏ ÈÞ¹«<br>
2564                            <b>ÅùèÃâ°í</b>: &nbsp;&nbsp;&nbsp;&nbsp;ÆòÀÏ ¿ÀÈÄ 4½Ã±îÁö
2565
2566                        </div>
2567                        <div class="add-ceo">
2568                            <span>ÁÖ½Äȸ»ç ¼­ÀÏÆÊÅØ | ´ëÇ¥ÀÌ»ç : ½ÅÁö½Ä</span>
2569                            <address>ÃæÃ»³²µµ õ¾È½Ã µ¿³²±¸ ÃæÀý·Î 441</address>
2570                            <div>»ç¾÷ÀÚ µî·Ï¹øÈ£ : 298-81-00251<br/>Åë½ÅÆÇ¸Å¾÷½Å°í : Á¦2020-Ãæ³²Ãµ¾È-1028È£<br/>À̸ÞÀÏ : <a href="mailto:[email protected]">[email protected]</a><br><a href="https://www.ftc.go.kr/bizCommPop.do?wrkr_no=2988100251" target="_blank" class="biz-box">»ç¾÷ÀÚÁ¤º¸È®ÀÎ</a></div>
2571                            <span>¨ÏWelogis Inc. All Rights Reserved.</span>
2572                        </div>
2573
2574                                                <div class="etc-info">
2575                            <ul>
2576                                <a class="footer-button" href="https://play.google.com/store/apps/details?id=com.catpang.byapps" target="_blank"><li class="google">±¸±ÛÇ÷¹ÀÌ</li></a>
2577                                <a class="footer-button" href="https://itunes.apple.com/kr/app/id1340047266?l=ko&ls=1&mt=8" target="_blank"><li class="apple">¾Û½ºÅä¾î</li></a>
2578                                <a class="footer-button" href="https://www.instagram.com/catpang_official/" target="_blank"><li class="instar">ÀνºÅ¸±×·¥</li></a>
2579                    
2580                            </ul>
2581                        </div>
2582                                            </div>
2583                </div>
2584            </div>
2585
2586        
2587
2588
2589    	<!-- ³×À̹öÆäÀÌ ¹öư Á¾·á ½ºÅ©¸³Æ® start -->
2590	
2590<script>
2591		wcs_do();
2592	</script>
2592
2593	<!-- ³×À̹öÆäÀÌ ¹öư Á¾·á ½ºÅ©¸³Æ® end -->
2594
2595    
2595<script type="text/javascript">
2596
2597
2598    // »ç¿ëÇÒ ¾ÛÀÇ JavaScript ۸¦ ¼³Á¤ÇØ ÁÖ¼¼¿ä.
2599    Kakao.init('cb55e75d9d40a3266721764bfd4db081');
2600    function chatChannel() {
2601      Kakao.Channel.chat({
2602        channelPublicId: '_hxozzxl' // īī¿ÀÅå ä³Î Ȩ URL¿¡ ¸í½ÃµÈ id·Î ¼³Á¤ÇÕ´Ï´Ù.
2603      });
2604    }
2605
2606    $('#gnb-new').hide();
2607    $('#gnb').show();
2608    
2609
2610    //¹ÙIJ½ºÀ̺¥Æ®
2611    $('#header_banner_event').click(function() {
2612        $.cookie('header_banner_event', 'Y', { expires: 14, path: '/' });
2613        $('#top-banner2').slideUp();
2614    });
2615
2616
2617    $('#delivery_banner').click(function() {
2618         $.cookie('delivery_banner', 'Y', { expires: 1, path: '/' });
2619         layerMod.close();
2620    });
2621
2622    $('#header_banner').click(function() {
2623        $.cookie('header_banner', 'Y', { expires: 7, path: '/' });
2624        $('#top-banner2').slideUp();
2625    });
2626
2627    $('.btn-close02').click(function() {
2628        layerMod.close();
2629    });
2630
2631
2632    //mobile
2633    $('#delivery_banner2').click(function() {
2634       $.cookie('delivery_banner', 'Y', { expires: 1, path: '/' });
2635        $('.dim-layer').hide();
2636    });
2637
2638    //mobile
2639    $('#delivery_banner2_close').click(function() {
2640        $('.dim-layer').hide();
2641    });
2642
2643    $('.dimBg').click(function() {
2644        $('.dim-layer').hide();
2645    });
2646
2647
2648    //ĹÆÎÆäÀÌ º¸±â ó¸®
2649    $("#catpangPayTop_story").click(function(){
2650        layerMod.contents('#catpangPay','next');
2651    });
2652
2653    
2654    $('#movie_banner').click(function() {
2655        $.cookie('movie_banner', 'Y', { expires: 3, path: '/' });
2656        layerMod.close();
2657    });
2658
2659    $('.total_member_ok').click(function() {
2660        $.ajax({
2661                type: 'POST',
2662                url: '/shop/member/member_ajax.php',
2663                data: {
2664                    mode: 'total_member_ok'
2665                },
2666                dataType: 'json',
2667                success: function(res) {
2668                    if (res.msg == "true") {
2669                        layerMod.alert('','¾Ë¸²','ÅëÇÕȸ¿øÀÌ Àû¿ëµÇ¾ú½À´Ï´Ù.','È®ÀÎ','','layerMod.allClose()');
2670                    } else {
2671                        layerMod.alert('','¾Ë¸²','ÅëÇÕȸ¿ø ÀÎÁõ¿¡ ¿À·ù°¡ ¹ß»ýÇÏ¿´½À´Ï´Ù. °í°´¼¾ÅÍ·Î ¹®ÀÇÁÖ¼¼¿ä.','È®ÀÎ','','layerMod.allClose()');
2672                    }
2673                    return false;
2674                }
2675            }); // $.ajax()
2676      
2677    });
2678
2679    $(".footer-gotop").on("click",function(){scrollTo(0,0)});
2680
2681    $('.mobile_search_btn').click(function() {
2682        $(this).addClass("on");
2683        var search_word = getArray('search_word',true);
2684        var tr = '';
2685 
2686
2687
2688
2689
2690        for(let i = 0; i < search_word.length; i++) {
2691
2692        tr += "<li class=\"s-widget-26__item\" id=\"search_26_"+((search_word.length -1) - i)+"\">";
2693        tr += "    <a href=\"/shop/goods/goods_list.php?search_word="+search_word[i]+"\" class=\"s-widget-26__anchor\">" + search_word[i] + "</a>";
2694        tr += "    <button type=\"button\" class=\"s-widget-26__delete\" onClick=\"deleteToDo("+ ((search_word.length -1) - i) +")\">";
2695        tr += "        <span class=\"blind\">°Ë»ö¾î »èÁ¦</span>";
2696        tr += "    </button>";
2697        tr += "</li>";
2698
2699        }
2700
2701   
2702        $('.s-widget-26__list').html(tr);
2703        
2704        $('.srchSearchLayerWrap').addClass('active');
2705        $('.searchLayer').show();
2706        $('.srchHeaderInput').focus();
2707
2708       
2709    });
2710
2711    $('._srchSearchLayer_backBtn').click(function() {
2712        $('.auto_keyword').empty();
2713        $('.mobile_search_btn').removeClass("on");
2714        $('.searchLayer').hide();
2715    });
2716
2717    $('.srchSearchLayerDim').click(function() {
2718        $('.auto_keyword').empty();
2719        $('.mobile_search_btn').removeClass("on");
2720        $('.srchSearchLayerWrap').removeClass('active');
2721        $('.searchLayer').hide();
2722    });
2723
2724    $('.btnHeaderSearchDel').click(function() {
2725        $("ul.ui-autocomplete").hide();
2726        $('.srchPopularSearchHeadArea').show();
2727        $('.auto_keyword').show();
2728        $('.srchHeaderInput').val("");
2729        $('.srchHeaderInput').focus();
2730    });
2731
2732    $('.footer_toggle').click(function() {
2733        if($(".footer_copyright").css("display") == "none"){
2734            $('.footer_toggle').addClass("on");
2735            $(".footer_copyright").slideDown();
2736        } else {
2737            $('.footer_toggle').removeClass("on");
2738            $(".footer_copyright").slideUp();
2739        }
2740    });
2741
2742    
2743
2744        </script>
2744
2745  
2746
2747
2748    	<!-- Facebook Pixel Code -->
2749<script>
vendor: 408 bytes, lines 2749-2758
2749
2750!function(f,b,e,v,n,t,s)
2751{if(f.fbq)return;n=f.fbq=function(){n.callMethod?
2752n.callMethod.apply(n,arguments):n.queue.push(arguments)};
2753if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0';
2754n.queue=[];t=b.createElement(e);t.async=!0;
2755t.src=v;s=b.getElementsByTagName(e)[0];
2756s.parentNode.insertBefore(t,s)}(window, document,'script',
2757'https://connect.facebook.net/en_US/fbevents.js');
2758fbq('init', '
2758194918948541606
vendor: 32 bytes, lines 2758-2759
2758');
2759fbq('track', 'PageView');
2760</script>
2760
2761<noscript><img height="1" width="1" style="display:none"
2762src="https://www.facebook.com/tr?id=194918948541606&ev=PageView&noscript=1"
2763/></noscript>
2764<!-- End Facebook Pixel Code -->
2765
2766<!-- Google Tag Manager -->
2767<script>
vendor: 331 bytes, lines 2767-2771
2767(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
2768new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
2769j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
2770'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
2771})(window,document,'script','dataLayer','
2771GTM-PVBMQD4
vendor: 3 bytes, line 2771
2771');
2771</script>
2771
2772<!-- End Google Tag Manager -->
2773
2774<!-- Global site tag (gtag.js) - Google Analytics -->
2775<!--
vendor: 64 bytes, line 2775
2775 <script async src="https://www.googletagmanager.com/gtag/js?id=
2775UA-99774142-1
vendor: 12 bytes, line 2775
2775"></script> 
2775-->
2776<script>
2777    
vendor: 145 bytes, lines 2777-2780
2777window.dataLayer = window.dataLayer || [];
2778    function gtag() { dataLayer.push(arguments); }
2779    gtag('js', new Date());
2780    gtag('config', '
2780AW-851611828
vendor: 9 bytes, lines 2780-2781
2780');
2781    
2781gtag('config', 'UA-99774142-1');
2782</script>
2782
2783
2784
2785<script type="text/javascript" charset="UTF-8" src="//t1.daumcdn.net/kas/static/kp.js"></script>
vendor: 2 bytes, line 2785
2785
2786<script type="text/javascript">
2787      kakaoPixel('1450752895204570295').pageView();
2788      </script>
2788
2789
2790    <!-- 
2790<script src="/shop/skin_new/js/video.js?time=20261009035104"></script>
2790 -->
2791
2792
2793   
2794
2795    
2796
2797
2798</body>
2799</html>

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.