array ( 0 => array ( 0 => array ( 0 => '<script src="catalog/view/javascript/prostore/plugins.min.js?v1.3.1"></script>', 1 => 2795, ), ), 1 => array ( 0 => array ( 0 => '<script src="catalog/view/javascript/prostore/plugins/jquery.min.js?v1.3.1"></script>', 1 => 2878, ), ), 2 => array ( 0 => array ( 0 => '<script src="catalog/view/javascript/prostore/plugins/jquery.fancybox.min.js?v1.3.1"></script>', 1 => 2965, ), ), 3 => array ( 0 => array ( 0 => '<script src="catalog/view/javascript/prostore/plugins/swiper.min.js?v1.3.1"></script>', 1 => 3061, ), ), 4 => array ( 0 => array ( 0 => '<script src="catalog/view/javascript/prostore/plugins/readmore.min.js?v1.3.1"></script>', 1 => 3148, ), ), 5 => array ( 0 => array ( 0 => '<script src="catalog/view/javascript/prostore/plugins/jquery.countdown.min.js?v1.3.1"></script>', 1 => 3237, ), ), 6 => array ( 0 => array ( 0 => '<script src="catalog/view/javascript/prostore/plugins/css-vars-ponyfill.min.js?v1.3.1"></script>', 1 => 3334, ), ), 7 => array ( 0 => array ( 0 => '<script src="catalog/view/javascript/prostore/plugins/sticky-kit.min.js?v1.3.1"></script>', 1 => 3432, ), ), 8 => array ( 0 => array ( 0 => '<script src="catalog/view/javascript/prostore/plugins/priority-nav.min.js?v1.3.1"></script>', 1 => 3523, ), ), 9 => array ( 0 => array ( 0 => '<script src="catalog/view/javascript/prostore/plugins/matchMedia.min.js?v1.3.1"></script>', 1 => 3616, ), ), 10 => array ( 0 => array ( 0 => '<script src="/catalog/view/javascript/imask.js" type="text/javascript"></script>', 1 => 3708, ), ), 11 => array ( 0 => array ( 0 => '<script src="catalog/view/javascript/prostore/bootstrap/3.3.5/bootstrap.min.js?v1.3.1"></script>', 1 => 3793, ), ), 12 => array ( 0 => array ( 0 => '<script src="catalog/view/javascript/prostore/app.min.js?v31.3.1"></script>', 1 => 3892, ), ), 13 => array ( 0 => array ( 0 => '<script src="catalog/view/javascript/prostore/plugins/jquery.ez-plus.min.js"></script>', 1 => 3969, ), ), 14 => array ( 0 => array ( 0 => '<script src="catalog/view/theme/extension_liveopencart/related_options/js/product_page_with_related_options.js?v=1737965638"></script>', 1 => 4057, ), ), 15 => array ( 0 => array ( 0 => '<script src="catalog/view/theme/extension_liveopencart/related_options/js/liveopencart.select_option_toggle.js?v=1737965638"></script>', 1 => 4193, ), ), 16 => array ( 0 => array ( 0 => '<script src="catalog/view/theme/extension_liveopencart/related_options/js/liveopencart.ro_common.js?v=1737965638"></script>', 1 => 4329, ), ), 17 => array ( 0 => array ( 0 => '<script src="catalog/view/theme/extension_liveopencart/related_options/js/liveopencart.related_options.js?v=1737965638"></script>', 1 => 4454, ), ), 18 => array ( 0 => array ( 0 => '<script type="text/javascript"> window.dataLayer = window.dataLayer || []; </script>', 1 => 4618, ), ), 19 => array ( 0 => array ( 0 => '<script src="/catalog/view/javascript/jquery/magnific/jquery.magnific-popup.min.js" type="text/javascript"></script>', 1 => 4713, ), ), 20 => array ( 0 => array ( 0 => '<script src="/catalog/view/javascript/v3/slick/slick.min.js" type="text/javascript"></script>', 1 => 4834, ), ), 21 => array ( 0 => array ( 0 => '<script src="/catalog/view/javascript/ajax.js?v=39" type="text/javascript"></script>', 1 => 4933, ), ), 22 => array ( 0 => array ( 0 => '<script src="/catalog/view/javascript/psblock/script.js?v=23" type="text/javascript"></script>', 1 => 5020, ), ), 23 => array ( 0 => array ( 0 => '<script type="application/ld+json"> { "@context": "http://schema.org/", "@type": "Organization", "name": "Monument-Service", "logo": "https://monument-service.ru/image/catalog/logo.png", "url": "https://monument-service.ru/", "email": "monument-service@mail.ru", "address": { "@type": "PostalAddress", "streetAddress": "ул. Линии Октябрьской Железной Дороги, 2, стр. 2, офис 15, этаж 3", "addressLocality": "Москва", "postalCode": "127238", "addressCountry": "Russia" }, "contactPoint": { "@type": "ContactPoint", "telephone": "+7-925-49-55-777", "contactType": "customer service", "areaServed": "RU", "availableLanguage": "Russian" }, "sameAs": [ "https://vk.com/monument_service", "https://www.youtube.com/channel/UCjliUUOjKVFihp0adEjzZZA", "https://dzen.ru/monument_service", "https://ok.ru/group/58244401135660", "https://ru.pinterest.com/Monument_Service_ru/" ] } </script>', 1 => 5116, ), ), 24 => array ( 0 => array ( 0 => '<script type="text/javascript"> function googleTranslateElementInit() { new google.translate.TranslateElement({pageLanguage: \'ru\'}, \'google_translate_element\'); } </script>', 1 => 7427, ), ), 25 => array ( 0 => array ( 0 => '<script type="text/javascript" src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script>', 1 => 7603, ), ), 26 => array ( 0 => array ( 0 => '<script src="https://yastatic.net/share2/share.js"></script>', 1 => 158830, ), ), 27 => array ( 0 => array ( 0 => '<script type="text/javascript"><!-- function price_format(price) { c=0;d=\'.\';t=\' \';sl=\'\';sr=\'р.\';n=price*1;i=parseInt(n=Math.abs(n).toFixed(c))+\'\'; j=((j=i.length)>3)?j%3:0;price_text=sl+(j?i.substr(0,j)+t:\'\')+i.substr(j).replace(/(\\d{3})(?=\\d)/g,"$1"+t)+(c?d+Math.abs(n-i).toFixed(c).slice(2):\'\')+sr;return price_text; } function points_format(v) { return v.toFixed(0); } function process_discounts(price, quantity) { return price; } function calculate_tax(price) { var p=price;return p; } function autocalc_aap(s,p,ff){$(s).each(function(){var $t=$(this);$({value:$t.data(\'value\')||0}).animate({value:p},{easing:\'swing\',duration:500,step:function(value){$t.html(ff(value));$t.data(\'value\',value);}});});} function recalculateprice() { let m_discount = parseFloat($(\'#product[data-discount]\').attr(\'data-discount\')) if(!m_discount || isNaN(m_discount)) m_discount = 0; m_discount = 1 - m_discount / 100 var main_price = 400; var base_price = main_price var discount_price = main_price discount_price *= m_discount var special = 0; var input_quantity = Number($(\'#product input[name="quantity"]\').val()) || 1; var discount_coefficient = 1; var option_price = 0; var discount_quantity = 0; $(\'#product .owq-option input[type="checkbox"]\').each(function() { $qty = $(this).closest(\'tr\').find(\'.owq-input\'); if ($(this).data(\'split\')==\'/\') discount_quantity += Number($qty.val()) || 0; }); if (discount_quantity == 0) discount_quantity = input_quantity; main_price = process_discounts(main_price, discount_quantity); $(\'#product input:checked,#product option:selected\').each(function() { let quantity = parseInt($(this).attr(\'data-quantity\')) if(isNaN(quantity) || !quantity) quantity = 1 if ($(this).data(\'prefix\') == \'=\') { option_price += Number($(this).data(\'price\')) * quantity; main_price = Number($(this).data(\'price\')) * quantity; base_price += Number($(this).data(\'price\')) * quantity; discount_price = main_price * m_discount special = 0; } }); $(\'#product input:checked,#product option:selected\').each(function() { let quantity = parseInt($(this).attr(\'data-quantity\')) if(isNaN(quantity) || !quantity) quantity = 1 if ($(this).data(\'prefix\') == \'+\') { option_price += Number($(this).data(\'price\')) * quantity; main_price += Number($(this).data(\'price\')) * quantity; discount_price += Number($(this).data(\'price\')) * quantity; } if ($(this).data(\'prefix\') == \'-\') { option_price -= Number($(this).data(\'price\')) * quantity; main_price -= Number($(this).data(\'price\')) * quantity; discount_price -= Number($(this).data(\'price\')) * quantity; } if ($(this).data(\'prefix\') == \'%\') { pcnt = 1.0 + (Number($(this).data(\'price\')) / 100.0); option_price *= pcnt; main_price *= pcnt; main_price *= pcnt; discount_price *= pcnt; special *= pcnt; } if ($(this).data(\'prefix\') == \'*\') { option_price *= Number($(this).data(\'price\')); main_price *= Number($(this).data(\'price\')); discount_price *= Number($(this).data(\'price\')); special *= Number($(this).data(\'price\')); } if ($(this).data(\'prefix\') == \'/\') { option_price /= Number($(this).data(\'price\')); main_price /= Number($(this).data(\'price\')); discount_price /= Number($(this).data(\'price\')); special /= Number($(this).data(\'price\')); } }); $(\'#product input[data-price-add]:checked\').each(function (a) { option_price += Number($(this).data(\'price-add\')) }) special += option_price; // main_price += option_price; tax = main_price; if (input_quantity > 0) { main_price *= input_quantity; special *= input_quantity; } if(true || base_price > 0) { $(".form-group-price").show() $(".form-group-price-request").hide() } else { $(".form-group-price").hide() $(".form-group-price-request").show() } autocalc_aap(\'.autocalc-product-price\', main_price, price_format); autocalc_aap(\'.old-price .autocalc-product-price\', main_price, price_format); autocalc_aap(\'.discount-price .autocalc-product-price\', discount_price, price_format); if(parseInt(discount_price.toString()) == parseInt(main_price.toString())) { $(\'.old-price\').hide() $(\'.sku__price-del\').hide() } else { $(\'.old-price\').show() $(\'.sku__price-del\').show() } if(Math.round(main_price * 0.9) > 150000) { $(\'.order-credit-block\').hide() } else { $(\'.order-credit-block\').show() } // updateProductsCart() autocalc_aap(\'.v3-total-mobile-price\', main_price, price_format); } $(document).ready(function() { $(\'#product input[type="checkbox"],#product input[type="radio"],#product select\').each(function(){if($(this).data(\'autocalc\'))return;$(this).data(\'autocalc\',1).on(\'change\',function(){recalculateprice();});}); $(\'#product input[name="quantity"]\').each(function(){if($(this).data(\'autocalc\'))return;var $q=$(this);$q.data(\'autocalc\',1).data(\'val\',$q.val());(function(){if($q.val()!=$q.data(\'val\')){$q.data(\'val\',$q.val());recalculateprice();}setTimeout(arguments.callee,250);})();}); $(\'#product select[name^="option"] option[value=""]\').remove(); last_name=\'\';$(\'#product input[type="radio"][name^="option"]\').each(function(){if($(this).attr(\'name\')!=last_name)$(this).prop(\'checked\',true);last_name=$(this).attr(\'name\');}); recalculateprice(); }); //--></script>', 1 => 230074, ), ), 28 => array ( 0 => array ( 0 => '<script> $(window).on("load", function () { window.dataLayer = window.dataLayer || []; dataLayer.push({ecommerce: {detail: {products: [{ id: "2311", name: "Крест на памятник 7981", price: parseFloat(\'0\'+\'400р.\'), brand: "", variant: "7981" }]}}}); }); </script>', 1 => 235860, ), ), 29 => array ( 0 => array ( 0 => '<script src="catalog/view/javascript/prostore/plugins/jquery.ez-plus.min.js" type="text/javascript"></script>', 1 => 251546, ), ), 30 => array ( 0 => array ( 0 => '<script src="catalog/view/theme/extension_liveopencart/related_options/js/product_page_with_related_options.js?v=1737965638" type="text/javascript"></script>', 1 => 251656, ), ), 31 => array ( 0 => array ( 0 => '<script src="/catalog/view/javascript/v3/script.js?v=34"></script>', 1 => 251815, ), ), 32 => array ( 0 => array ( 0 => '<script src="/catalog/view/javascript/v4/script.js?v=34"></script>', 1 => 251882, ), ), 33 => array ( 0 => array ( 0 => '<script type="application/ld+json"> { "@context": "https://schema.org", "@type": "LocalBusiness", "name": "Monument Service", "image": "https://monument-service.ru/image/catalog/logo.png", "telephone": "+7 (925) 49-55-777", "email": "monument-service@mail.ru", "priceRange": "RUB", "address": { "@type": "PostalAddress", "streetAddress": "Россия, Москва, ул. Линии Октябрьской Железной Дороги, 2, стр. 2, офис 15, этаж 3", "addressRegion": "Москва", "addressCountry": "Российская Федерация" }, "geo": { "@type": "GeoCoordinates", "latitude": "55.673979821633246", "longitude": " 37.44162626946306" }, "description": "Закажите изготовление и установку памятника на могилу под ключ в гранитной мастерской Monument Service. ➠ Полный цикл работ - от ЭСКИЗА до УСТАНОВКИ. ➠ Собственное ПРОИЗВОДСТВО. ➠ Современное ОБОРУДОВАНИЕ. ⚐ Доставка по всей РОССИИ. ⚐ Консультация специалиста БЕСПЛАТНО +7 (925) 49-55-777", "url": "https://monument-service.ru/" } </script>', 1 => 251978, ), ), 34 => array ( 0 => array ( 0 => '<script src="catalog/view/javascript/prostore/plugins/jquery.ez-plus.min.js" type="text/javascript"></script>', 1 => 253339, ), ), 35 => array ( 0 => array ( 0 => '<script src="catalog/view/theme/extension_liveopencart/related_options/js/product_page_with_related_options.js?v=1737965638" type="text/javascript"></script>', 1 => 253450, ), ), 36 => array ( 0 => array ( 0 => '<script src="/catalog/view/javascript/jquery/jquery.matchHeight-min.js" type="text/javascript"></script>', 1 => 253608, ), ), 37 => array ( 0 => array ( 0 => '<script type=\'text/javascript\'> (function () { return false window[\'yandexChatWidgetCallback\'] = function () { try { window.yandexChatWidget = new Ya.ChatWidget({ guid: \'4d28a101-dad1-97d1-7f5c-a83db75753ce\', buttonText: \'\', title: \'Чат\', theme: \'light\', collapsedDesktop: \'never\', collapsedTouch: \'never\' }); } catch (e) {} }; var n = document.getElementsByTagName(\'script\')[0], s = document.createElement(\'script\'); s.async = true; s.charset = \'UTF-8\'; s.src = \'https://yastatic.net/s3/chat/widget.js\'; n.parentNode.insertBefore(s, n); })(); </script>', 1 => 254166, ), ), 38 => array ( 0 => array ( 0 => '<script type="text/javascript"> (() => { setTimeout(function () { (function (m, e, t, r, i, k, a) { m[i] = m[i] || function () { (m[i].a = m[i].a || []).push(arguments) }; m[i].l = 1 * new Date(); k = e.createElement(t), a = e.getElementsByTagName(t)[0], k.async = 1, k.src = r, a.parentNode.insertBefore(k, a) })(window, document, "script", "https://mc.yandex.ru/metrika/tag.js", "ym"); ym(48198551, "init", { clickmap: true, trackLinks: true, accurateTrackBounce: true, webvisor: true }); function tick() { var n = window.sessionStorage.getItem(\'tickMetrica\') if(!n) n = 0 n ++ switch (n) { case 30: yaCounter48198551.reachGoal("30sec"); break; case 60: yaCounter48198551.reachGoal("1minute"); break; case 120: yaCounter48198551.reachGoal("2minute"); break; case 180: yaCounter48198551.reachGoal("3minute"); break; case 300: yaCounter48198551.reachGoal("5minute"); break; } window.sessionStorage.setItem(\'tickMetrica\', n) } setInterval(function() { tick() }, 1000) }, 5000) })() </script>', 1 => 254758, ), ), 39 => array ( 0 => array ( 0 => '<script> setTimeout(function () { const script = document.createElement(\'script\') script.src = "https://www.googletagmanager.com/gtag/js?id=G-SFGWGP8EQ4" script.async = true document.body.appendChild(script) window.dataLayer = window.dataLayer || []; function gtag() { dataLayer.push(arguments); } gtag(\'js\', new Date()) gtag(\'config\', \'G-SFGWGP8EQ4\') }, 1) </script>', 1 => 256106, ), ), 40 => array ( 0 => array ( 0 => '<script> $(\'select[name=\\\'recurring_id\\\'], #product input[name="quantity"]\').change(function(){ $.ajax({ url: \'index.php?route=product/product/getRecurringDescription\', type: \'post\', data: $(\'input[name=\\\'product_id\\\'], #product input[name=\\\'quantity\\\'], select[name=\\\'recurring_id\\\']\'), dataType: \'json\', beforeSend: function() { $(\'#recurring-description\').html(\'\'); }, success: function(json) { $(\'.alert, .recurring .ui-error\').remove(); $(\'.recurring .ui-field\').removeClass(\'is-error\'); if (json[\'success\']) { $(\'#recurring-description\').html(json[\'success\']); } } }); }); $(document).on(\'ready\',function(e) { // -------------------------------------------------------------------------- // Calculate shipping cost // -------------------------------------------------------------------------- if ($(\'.sku__delivery-action\').length) { $(\'.sku__delivery-action\').html(\'<table class="ui-table-delivery"><thead><tr><th colspan="2"><span class="loading">Загрузка...</span></th></tr></thead></table>\'); $(\'.sku__delivery-action\').load(\'index.php?route=extension/module/prostore/prostore_theme/get_shipping_info&item_id=\'+2311,function(){ $(\'[data-fancybox]\').fancybox(fancyboxOptions); }); } }); var product_id = 2311; // -------------------------------------------------------------------------- // found_cheaper call // -------------------------------------------------------------------------- $(document).on(\'click\',\'.found_cheaper_send\',function(e) { e.preventDefault(); var success = \'false\'; $.ajax({ url: \'index.php?route=extension/module/found_cheaper\', type: \'post\', data: $(\'#popup-found-it-cheaper form\').serialize() + \'&action=send\', dataType: \'json\', beforeSend: function() { $(\'#popup-found-it-cheaper button.ui-btn\').attr(\'disabled\', \'disabled\'); }, complete: function() { $(\'#popup-found-it-cheaper button.ui-btn\').removeAttr(\'disabled\'); }, success: function(json) { $(\'#popup-found-it-cheaper .alert, #popup-found-it-cheaper .ui-error\').remove(); $(\'#popup-found-it-cheaper .ui-field\').removeClass(\'is-error\'); if (json[\'warning\']) { if (json[\'warning\'][\'name\']) { $(\'#popup-found-it-cheaper form input[name=\\\'name\\\']\').after(\'<span class="error ui-error">\' + json[\'warning\'][\'name\'] + \'</span>\').parent().addClass(\'is-error\'); } if (json[\'warning\'][\'email\']) { $(\'#popup-found-it-cheaper form input[name=\\\'email\\\']\').after(\'<span class="error ui-error">\' + json[\'warning\'][\'email\'] + \'</span>\').parent().addClass(\'is-error\'); } if (json[\'warning\'][\'link\']) { $(\'#popup-found-it-cheaper form input[name=\\\'link\\\']\').after(\'<span class="error ui-error">\' + json[\'warning\'][\'link\'] + \'</span>\').parent().addClass(\'is-error\'); } if (json[\'warning\'][\'captcha\']) { $(\'#popup-found-it-cheaper form input[name=\\\'captcha\\\']\').after(\'<span class="error ui-error">\' + json[\'warning\'][\'captcha\'] + \'</span>\').parent().addClass(\'is-error\'); } } if (json[\'success\']){ $(\'#popup-found-it-cheaper button.ui-btn\').before(\'<div class="alert alert--green alert--opacity"><p class="alert__text">\' + json[\'success\'] + \'</p></div>\'); success = \'true\'; $(\'#popup-found-it-cheaper form input\').val(\'\'); setTimeout(function(){ $.fancybox.close(); $(\'#popup-found-it-cheaper .alert--green\').remove(); }, 3000) } } }); }); $(document).on(\'click\',\'#button-cart,#button-cart-additional\', function() { var datapr = $(\'#product input[type=\\\'text\\\'], #product input[type=\\\'hidden\\\'], #product input[type=\\\'number\\\'], #product input[type=\\\'radio\\\']:checked, #product input[type=\\\'checkbox\\\']:checked, #product select, #product textarea\'); $.ajax({ url: \'index.php?route=checkout/cart/add\', type: \'post\', data: datapr, dataType: \'json\', beforeSend: function() { }, complete: function() { }, success: function(json) { $(\'.alerts-wrapper, .ui-error\').remove(); $(\'[id^="input-option"],.ui-field,.ui-select\').removeClass(\'is-error\'); if (json[\'error\']) { if (json[\'error\'][\'option\']) { for (i in json[\'error\'][\'option\']) { var element = $(\'#input-option\' + i.replace(\'_\', \'-\')); if (element.parent().hasClass(\'ui-select\')) { element.parent().after(\'<span class="error ui-error">\' + json[\'error\'][\'option\'][i] + \'</span>\').addClass(\'is-error\'); } else if (element.hasClass(\'ui-input\') || element.hasClass(\'ui-textarea\')) { element.after(\'<span class="error ui-error">\' + json[\'error\'][\'option\'][i] + \'</span>\').parent().addClass(\'is-error\'); } else { element.after(\'<span class="error ui-error">\' + json[\'error\'][\'option\'][i] + \'</span>\').addClass(\'is-error\'); } } } if (json[\'error\'][\'recurring\']) { $(\'select[name=\\\'recurring_id\\\']\').parent().after(\'<span class="error ui-error">\' + json[\'error\'][\'recurring\'] + \'</span>\').parent().addClass(\'is-error\'); } tab_target = $(\'.sku__settings\').offset().top - 20; if (window.matchMedia(\'(min-width: 1200px)\').matches) { if ( $(\'body\').is(\'.is-page-header-fixed\') ) { tab_target -= $(\'.header-fixed\').data(\'fixed-height\') || $(\'.header-fixed\').innerHeight(); } } else { tab_target = tab_target - $(\'.header__mobile-fixed\').innerHeight(); } $(\'html, body\').animate({ scrollTop: tab_target }, \'fast\'); } if (json[\'success\']) { cartExrtaElem(json[\'total\']); toCartButton(); if ($(\'.js-cart-call\').length && window.matchMedia(\'(min-width: 1200px)\').matches) { $(\'.js-cart-call\').trigger(\'click\'); } else { $(\'main\').prepend($(\'<div class="alerts-wrapper"><div class="alert alert--green"><button class="alert__close"><svg class="icon-close-alerts"><use xlink:href="catalog/view/theme/prostore/sprites/sprite.svg#icon-close-alerts"></use></svg></button><p class="alert__text"> \' + json[\'success\'] + \' </p></div></div>\')); alertAutoClose(); } $(\'.js-cart-total\').html(\'<span id="cart-total">\' + json[\'total\'] + \'</span>\'); sendYM(\'prostore_addtocart_product\'); sendGA(datapr,\'prostore_addtocart_product\'); $(\'#cart .header__cart-load\').load(\'index.php?route=common/cart/info .header__cart-offcanvas\',function(){ hasScrollBar(); $(\'[data-fancybox]\').fancybox(fancyboxOptions); }); } }, error: function(xhr, ajaxOptions, thrownError) { alert(thrownError + "\\r\\n" + xhr.statusText + "\\r\\n" + xhr.responseText); } }); }); $(document).on(\'click\',\'.js-button-cart\', function(e) { e.preventDefault(); $(\'#button-cart\').trigger(\'click\'); }); $(document).on(\'click\',\'.js-button-fast-cart\', function(e) { $(\'#cat_prod_id\').val(2311); }); if ($(\'body\').is(\'.bootstrap-5\')) { if ($(\'.date\').length) { $(\'.date\').daterangepicker({ singleDatePicker: true, autoApply: true, locale: { format: \'YYYY-MM-DD\' } }); } if ($(\'.time\').length) { $(\'.time\').daterangepicker({ singleDatePicker: true, datePicker: false, autoApply: true, timePicker: true, timePicker24Hour: true, locale: { format: \'HH:mm\' } }).on(\'show.daterangepicker\', function (ev, picker) { picker.container.find(\'.calendar-table\').hide(); }); } if ($(\'.datetime\').length) { $(\'.datetime\').daterangepicker({ singleDatePicker: true, autoApply: true, timePicker: true, timePicker24Hour: true, locale: { format: \'YYYY-MM-DD HH:mm\' } }); } } else { if ($(\'.date\').length) { $(\'.date\').datetimepicker({ language: \'ru\', pickTime: false }); } if ($(\'.datetime\').length) { $(\'.datetime\').datetimepicker({ language: \'ru\', pickDate: true, pickTime: true }); } if ($(\'.time\').length) { $(\'.time\').datetimepicker({ language: \'ru\', pickDate: false }); } } $(\'button[id^=\\\'button-upload\\\']\').on(\'click\', function() { var node = this; $(\'#form-upload\').remove(); $(\'body\').prepend(\'<form enctype="multipart/form-data" id="form-upload" style="display: none;"><input type="file" name="file"></form>\'); $(\'#form-upload input[name=\\\'file\\\']\').trigger(\'click\'); if (typeof timer != \'undefined\') { clearInterval(timer); } timer = setInterval(function() { if ($(\'#form-upload input[name=\\\'file\\\']\').val() != \'\') { clearInterval(timer); $.ajax({ url: \'index.php?route=tool/upload\', type: \'post\', dataType: \'json\', data: new FormData($(\'#form-upload\')[0]), cache: false, contentType: false, processData: false, beforeSend: function() { $(node).button(\'loading\'); }, complete: function() { $(node).button(\'reset\'); }, success: function(json) { $(\'.ui-error\').remove(); if (json[\'error\']) { $(node).parent().find(\'input\').after(\'<span class="error ui-error">\' + json[\'error\'] + \'</span>\'); } if (json[\'success\']) { alert(json[\'success\']); $(node).parent().find(\'input\').val(json[\'code\']); } }, error: function(xhr, ajaxOptions, thrownError) { alert(thrownError + "\\r\\n" + xhr.statusText + "\\r\\n" + xhr.responseText); } }); } }, 500); }); $(\'#review\').delegate(\'.pagination a\', \'click\', function(e) { e.preventDefault(); $(\'#review\').fadeOut(\'slow\'); $(\'#review\').load(this.href); $(\'#review\').fadeIn(\'slow\'); $(\'.sku [data-accordion-btn=\\\'reviews\\\']\').trigger(\'click\'); }); $(document).on(\'click\',\'[data-progress-link]\', function(e) { e.preventDefault(); $(\'#review\').load(\'index.php?route=product/product/review&\' + $(this).attr(\'data-progress-link\')); }); function reviewAdd() { $.ajax({ url: \'index.php?route=product/product/write&product_id=\' + product_id, type: \'post\', dataType: \'json\', data: $("#form-review").serialize(), beforeSend: function() { $(\'#form-review .ui-btn\').button(\'loading\'); }, complete: function() { $(\'#form-review .ui-btn\').button(\'reset\'); }, success: function(json) { $(\'#form-review .alert\').remove(); if (json[\'error\']) { $(\'#form-review .ui-btn\').before(\'<div class="alert alert--red alert--opacity"><button class="alert__close"> <svg class="icon-close-alerts"><use xlink:href="catalog/view/theme/prostore/sprites/sprite.svg#icon-close-alerts"></use></svg></button><p class="alert__text">\' + json[\'error\'] + \'</p></div>\'); } if (json[\'success\']) { $(\'#form-review .ui-btn\').before(\'<div class="alert alert--green alert--opacity"><button class="alert__close"><svg class="icon-close-alerts"><use xlink:href="catalog/view/theme/prostore/sprites/sprite.svg#icon-close-alerts"></use></svg></button><p class="alert__text">\' + json[\'success\'] + \'</p></div>\'); $(\'input[name=\\\'name\\\']\').val(\'\'); $(\'textarea[name=\\\'text\\\']\').val(\'\'); $(\'textarea[name=\\\'text_plus\\\']\').val(\'\'); $(\'textarea[name=\\\'text_minus\\\']\').val(\'\'); $(\'input[name=\\\'rating\\\']:checked\').prop(\'checked\', false); } } }); } $(document).on(\'click\',\'.details__comments-item-vote .ui-btn\', function(e) { e.preventDefault(); var subj = $(this); var review_id = subj.attr("data-for"); var like = 0; if (subj.hasClass(\'ui-btn--like\')) { like = 1; } $.ajax({ url: \'index.php?route=product/product/like&review_id=\' + review_id + \'&islike=\' + like, type: \'post\', dataType: \'json\', data: \'\', complete: function() { }, success: function(json) { if (json[\'success\']) { subj.find(\'span\').text(json[\'success\'][\'likes\']); } } }); }); $(document).on(\'click\',\'.youtube-video-place\', function(e) { e.preventDefault(); $(this).html(\'<iframe allow="autoplay" width="820" height="400" allowfullscreen frameborder="0" class="embed-responsive-item" src="\' + $(this).attr(\'href\') + \'"></iframe>\'); }); $(document).on(\'click\',\'.rutube-video-place\', function(e) { e.preventDefault(); $(this).html(\'<iframe id="my-player" allow="clipboard-write; autoplay" width="820" height="400" allowfullscreen frameborder="0" class="embed-responsive-item" src="\' + $(this).attr(\'href\') + \'"></iframe>\'); $(this).find(\'#my-player\').on(\'load\', function() { var rutubePlayer = $(this)[0]; rutubePlayer.contentWindow.postMessage(JSON.stringify( { type: \'player:play\', data: {} } ), \'*\'); rutubePlayer.contentWindow.postMessage(JSON.stringify( { type: \'player:unMute\' } ), \'*\'); }); }); $(document).on(\'change\',\'.sku__group--options input.ui-check__input,.sku__group--options select\', function(e) { toCartButtonReset(product_id); }); function reviewScroll() { if (window.location.hash.indexOf(\'review\') == 1) { var hash = window.location.hash; if ($(hash).length) { tab_target = $(hash).offset().top - 10; if (window.matchMedia(\'(min-width: 1200px)\').matches) { tab_target -= $(\'.sku__compact\').innerHeight(); if ( $(\'body\').is(\'.is-page-header-fixed\') ) { tab_target -= $(\'.header-fixed\').data(\'fixed-height\') || $(\'.header-fixed\').innerHeight(); } } else { tab_target = tab_target - $(\'.header__mobile-fixed\').innerHeight(); } $(\'html, body\').animate({ scrollTop: tab_target }, \'fast\'); } } } $(function() { $(\'#review\').load(\'index.php?route=product/product/review&product_id=\' + 2311, function(e) { reviewScroll(); }); }); </script>', 1 => 256489, ), ), 41 => array ( 0 => array ( 0 => '<script type="application/ld+json"> { "@context": "http://schema.org", "@type": "BreadcrumbList", "itemListElement": [ { "@type": "ListItem", "position": 1, "item": { "@id": "https://monument-service.ru/", "name": "Главная" } }, { "@type": "ListItem", "position": 2, "item": { "@id": "https://monument-service.ru/gravirovka-pamyatnika", "name": "Гравировка памятника " } }, { "@type": "ListItem", "position": 3, "item": { "@id": "https://monument-service.ru/gravirovka-pamyatnika/krest-7981", "name": "Крест на памятник 7981" } } ] } </script>', 1 => 269826, ), ), 42 => array ( 0 => array ( 0 => '<script type="application/ld+json"> { "@context": "http://schema.org/", "@type": "Product", "name": "Крест на памятник 7981", "image": [ "https://monument-service.ru/image/cache/catalog/image/data/gravirovka/kresti/kresty7981-1000x1000.jpg" ], "description": "price_schemaЗакажите Крест на памятник 7981 в гранитной мастерской Monument Service. ✔ Собственное ПРОИЗВОДСТВО. ✔ ТОЧНЫЕ СРОКИ изготовления и доставки. ✔ 3D проект памятника. ✆ Консультация и подготовка сметы +7 (925) 495-57-77", "mpn": "7981", "sku": "7981", "brand": "", "offers": { "@type": "Offer", "url": "", "priceCurrency": "RUB", "price": "400", "availability": "http://schema.org/InStock", "seller": { "@type": "Organization", "name": "Monument Service" } } } </script>', 1 => 270470, ), ), 43 => array ( 0 => array ( 0 => '<script> // category_depend_price function price_format(price) { c = 0; d =\'.\'; t =\' \'; sl =\'\'; sr =\'р.\'; n = price * 1; i = parseInt(n = Math.abs(n).toFixed(c)) + \'\'; j = ((j = i.length) > 3) ? j % 3 : 0; price_text = sl + (j ? i.substr(0, j) + t : \'\') + i.substr(j).replace(/(\\d{3})(?=\\d)/g, "$1" + t) + (c ? d + Math.abs(n - i).toFixed(c).slice(2) : \'\') + sr;return price_text; } const category_depend_option_price = []; const category_depend_update_options = function () { // apply category depend custom prices $(\'#product input[data-price],#product option[data-price]\').each(function (a) { const input = $(this); if (! input.attr(\'data-old-price\')) { input.attr(\'data-old-price\', input.attr(\'data-price\')); input.attr(\'data-old-points\', input.attr(\'data-points\')); input.attr(\'data-old-prefix\', input.attr(\'data-prefix\')); } // input.attr(\'data-price\', (input.attr(\'data-old-price\'))); // input.data(\'price\', (input.attr(\'data-old-price\'))); // input.attr(\'data-prefix\', input.attr(\'data-old-prefix\')); // input.data(\'prefix\', input.attr(\'data-old-prefix\')); // input.closest(\'label\').find(\'.product__optionstable-price\').text(price_format(input.attr(\'data-old-price\') > 0 ? input.attr(\'data-old-price\') : \'\')) }) if (false && !Object.keys(category_depend_option_price).length) { let points = 0 $(\'[data-points]:checked\').each(function (a) { console.log(\'points\', points) points += parseFloat($(this).attr(\'data-points\')) }) $(\'.option--title\').each(function (a) { if (!$(this).text().includes(\'Установ\')) return $(this).closest(\'.form-group\').find(\'[data-price]\').each(function (b) { let price = parseFloat($(this).data(\'price\')) if (price) { price += points } console.log(\'points\', points, price) $(this).attr(\'data-price\', price) $(this).data(\'price\', price) $(this).closest(\'label\').find(\'.product__optionstable-price\').text(price > 0 ? price_format(price) : \'\') }) }) return } for (a in category_depend_option_price) { const value = a.replace(/^a/, \'\'); const input = $(\'#product input[data-price][data-value-id="\' + value + \'"], #product option[data-price][data-value-id="\' + value + \'"]\'); for (b in category_depend_option_price["a" + value]) { const row = category_depend_option_price["a" + value][b]; if (typeof row != \'object\') continue; const value2 = b.replace(/^b/, \'\'); const input2 = $(\'#product input[data-price][data-value-id="\' + value2 + \'"]:checked\') if (input2.length) { input.attr(\'data-price\', row[\'price\']) input.data(\'price\', parseFloat(row[\'price\'])) input.attr(\'data-prefix\', "+") input.data(\'prefix\', "+") input2.attr(\'data-points\', 0) input2.data(\'points\', 0) if(row.first_to_zero) { input.attr(\'data-prefix\', "=") input.data(\'prefix\', "=") input2.attr(\'data-price\', 0) input2.data(\'price\', 0) input2.attr(\'data-prefix\', "=") input2.data(\'prefix\', "=") } input.closest(\'label\').find(\'.product__optionstable-price\').text(row[\'price\'] > 0 ? price_format(row[\'price\']) : \'\') } } } } </script>', 1 => 271430, ), ), )