Кран шаровой стандартнопроходной GENEBRE 2008 06 DN025 PN140, AISI316 / AISI316 / PTFE + 15% GF, ВР/ВР, двухсоставной, рукоятка-рычаг, резьба BSPT
Модель 2008 / Article 2008 Характеристики
Диаметр DN, мм 25 Давление PN, бар 140 Материал корпуса нержавеющий Присоединение: резьбовой Рабочая среда Вода Бренд Genebre
');
//console.log(counter_code);
$('body').append(counter_code);
if (!!params && params.ecommerce_flag === 1) {
if (!window[params.ecommerce_object]) {
window[params.ecommerce_object] = [];
}
if (typeof(params.action) === "string") {
//Добавляем объект "Просмотр товара"
if (params.action === 'product') {
if (!!params.object) {
window[params.ecommerce_object].push(params.object);
//console.log(params.object);
}
}
}
//Добавляем объект "Заказ"
if (reg_str_success.test(location.href)) {
if (params.referer_flag === 1) {
if (!!params.object) {
$.post(params.path_script, {'action': 'purchase', 'cart_code': params.cart_code, 'cart': params.cart}, function(response){
if (response.data.state) {
window[params.ecommerce_object].push(params.object);
//console.log(params.object);
if (response.data.user && response.data.user_orders) {
tmp_object = {};
if (typeof response.data.user_orders == 'object') {
for (i in response.data.user_orders) {
tmp_object[i] = response.data.order_format.replace('\{$order.id\}', response.data.user_orders[i]);
}
response.data.user_orders = tmp_object;
}
window[ya_counter_object_name].userParams({
'user': response.data.user,
'user_orders': response.data.user_orders
});
//console.log(response.data.user);
//console.log(response.data.user_orders);
}
if (!!params.object['ecommerce']) {
document.location.reload(true);
}
}
}, 'json');
}
}
}
$(document).on('ajaxSuccess', function (evt, xhr, options) {
var
fields = [],
field = [],
tmp_object = {},
query_params = {},
i, features = {}, key = '',
regexp = /^features(\[\d+\]){1}.*$/;
//counter_object;
///////////////////////////////Добавление товара в корзину/////////////////////
if (reg_str_add.test(options.url)) {
fields = [];
field = [];
tmp_object = {};
query_params = {};
features = {};
key = '';
fields = options.data.split('&');
for (i in fields) {
field = fields[i].split('=');
if (decodeURI(field[0]).indexOf('features') >= 0) {
key = regexp.exec(decodeURI(field[0]));
key = key[1];
key = key.replace('[', '').replace(']', '');
features[key] = parseInt(field[1]);
}
query_params[decodeURI(field[0])] = parseInt(field[1]);
}
/////////////Передача цели add_cart////
/*counter_object = 'yaCounter'+$('#script_ywa_app').data('counter_id');
if (!!window[counter_object]) {
window[counter_object].reachGoal('add_cart');
//console.log(counter_object);
}*/
////////////////////////////////////////////////
$.post(params.path_script, {'action': 'add', 'product_id': query_params['product_id'], 'sku_id' : query_params['sku_id'], 'features': features, 'cart_code': params.cart_code, 'cart': params.cart}, function (response) {
if (response.data.state) {
params.cart = response.data.cart;
tmp_object.ecommerce = response.data.result;
window[params.ecommerce_object].push(tmp_object);
//console.log(tmp_object);
}
}, 'json');
}
///////////////////////////////Удаление товара из корзины/////////////////////////////////////
if (reg_str_delete.test(options.url)) {
tmp_object = {};
$.post(params.path_script, {'action': 'delete', 'cart_code': params.cart_code, 'cart': params.cart}, function(response){
if (response.data.state) {
tmp_object.ecommerce = response.data.result;
params.cart = response.data.cart;
window[params.ecommerce_object].push(tmp_object);
//console.log(tmp_object);
}
}, 'json');
}
///////////////////////Изменение количества товара в корзине/////////////////////////////
if (reg_str_save.test(options.url)) {
fields = [];
field = [];
query_params = {},
tmp_object = {};
fields = options.data.split('&');
for (i in fields) {
field = fields[i].split('=');
query_params[field[0]] = parseInt(field[1]);
}
clearTimeout(timer_id);
timer_id = setTimeout(function () {
$.post(params.path_script, {'action': 'save', 'cart_code': params.cart_code, 'cart': params.cart, 'params': query_params}, function (response) {
if (response.data.state) {
params.cart = response.data.cart;
tmp_object.ecommerce = response.data.result;
window[params.ecommerce_object].push(tmp_object);
//console.log(tmp_object);
}
}, 'json');
}, 700);
}
});
}
})(jQuery, "\n%tag_script_start%\n (function(m,e,t,r,i,k,a){\n m[i]=m[i]||function(){(m[i].a=m[i].a||[]).push(arguments)};\n m[i].l=1*new Date();\n k=e.createElement(t),a=e.getElementsByTagName(t)[0],k.async=1,k.src=r,a.parentNode.insertBefore(k,a)\n })(window, document,'script','\/\/mc.yandex.ru\/metrika\/tag.js', 'ym');\n\n ym(43151799, 'init', {accurateTrackBounce:true, trackLinks:true, clickmap:true, ecommerce:\"dataLayer\", params: {__ym: {isFromApi: 'yesIsFromApi'}}});\n%tag_script_end%\n\n", {"ecommerce_flag":1,"path_script":"\/ywa\/getecommerceobject\/","ecommerce_object":"dataLayer","cart":[],"side_plugins":["\/wa-apps\/ywa\/js\/metrika\/stat\/side_plugins\/ecommerce_for_quickorder.js","\/wa-apps\/ywa\/js\/metrika\/stat\/side_plugins\/ecommerce_for_storequickorder.js"],"action":"product","object":{"ecommerce":{"currencyCode":"RUB","detail":{"products":[{"id":"45700111","name":"\u041a\u0440\u0430\u043d \u0448\u0430\u0440\u043e\u0432\u043e\u0439 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u043e\u043f\u0440\u043e\u0445\u043e\u0434\u043d\u043e\u0439 GENEBRE 2008 06 DN025 PN140, AISI316 \/ AISI316 \/ PTFE + 15% GF, \u0412\u0420\/\u0412\u0420, \u0434\u0432\u0443\u0445\u0441\u043e\u0441\u0442\u0430\u0432\u043d\u043e\u0439, \u0440\u0443\u043a\u043e\u044f\u0442\u043a\u0430-\u0440\u044b\u0447\u0430\u0433, \u0440\u0435\u0437\u044c\u0431\u0430 BSPT","category":"\u0422\u0440\u0443\u0431\u043e\u043f\u0440\u043e\u0432\u043e\u0434\u043d\u0430\u044f \u0430\u0440\u043c\u0430\u0442\u0443\u0440\u0430\/\u0417\u0430\u043f\u043e\u0440\u043d\u044b\u0435 (\u0440\u0435\u0433\u0443\u043b\u0438\u0440\u043e\u0432\u043e\u0447\u043d\u044b\u0435) \u043a\u043b\u0430\u043f\u0430\u043d\u044b\/\u0428\u0430\u0440\u043e\u0432\u044b\u0435 \u043a\u0440\u0430\u043d\u044b","price":3196.0412999999999,"quantity":1,"variant":""}]}}},"counter_id":"43151799"});