window.dataLayer = window.dataLayer || [];
function gtag(){
dataLayer.push(arguments);
}
gtag('js', new Date());
var _paq = _paq || [];
var _paq = _paq || []
_paq.push(['trackEvent', 'product', 'visit', '51359']);
Светофильтр Freewell Sherpa Kaleidoscope
Артикул: 51359
$(document).on('change', 'input[type="checkbox"].related_product_checkbox_field', function () {
let sum = 0;
$('input[type="checkbox"].related_product_checkbox_field:checked').each(function (i, e) {
sum = sum + parseInt($(e).data('price'));
});
$('#related_total_amount').text(sum.toLocaleString());
});
$(document).on('click', '.related_product_container .black_btn', function () {
//e.preventDefault();
$('input[type="checkbox"].related_product_checkbox_field:checked').each(function (i, e) {
var btn = $('.related_product_container .black_btn');
var cont = $('.related_product_container');
$(e).prop('checked', false);
$.ajax({
type: "POST",
url: "/cart/add/",
data: {
product_id: $(e).data('product-id'), quantity: 1
},
beforeSend: function () {
btn.addClass('processing');
cont.addClass('white-fade');
},
success: function (response) {
console.log(response)
if (response.hasOwnProperty("data")) {
updateCartRelated(response.data)
} else {
alert(response.errors)
}
},
complete: function () {
btn.removeClass('processing');
cont.removeClass('white-fade');
}
});
});
});
$(document).on('DOMNodeInserted', 'input[name="load_complete"]', function (e) {
let endOffset = 0;
const floatHeight = $('#product_left_block').outerHeight(true);
if ($('.also_buy').length) {
endOffset = $('.also_buy').position().top;
} else if ($('#upper_tabs').length) {
endOffset = $('#upper_tabs').position().top;
}
console.log('STICKY! '+ endOffset);
if (endOffset > 0) {
var stickyBottomOffset = $('.also_buy').height();
console.log('sticky_offset '+endOffset);
console.log( $(document).outerHeight(true))
$('#product_left_block').sticky({
topSpacing: $('#top_menu_search').outerHeight(), bottomSpacing: $(document).outerHeight(true) - endOffset
});
}
});
function updateCartRelated(data) {
$("#cart_header .cart-total").html(data.total.replace(/[^0-9 ]/gi, ''));
let el = $('.header_list--cart .header_product[data-id="' + data.item_id + '"]').find('.multiplier');
el.data('data-count', parseInt(el.attr('data-count')) + 1).html('(' +el.attr('data-count') + ' шт)');
$('.header_action_counter--cart').html(data.count)
if (data.count == 0) {
$(".cart-total").empty();
$('.header_action_counter--cart').empty().hide();
$(".cart-total span:first").attr('data-total', 0);
}
}
if (typeof yamaps == 'undefined') {
(function() {
return new Promise(function (resolve, reject) {
var s;
s = document.createElement('script');
s.src = "https://api-maps.yandex.ru/2.1/?apikey=c9fff453-c3f4-4a82-a88c-63b1b148c552&lang=ru-RU";
s.onload = resolve;
s.onerror = reject;
document.body.appendChild(s);
})
})();
}
Оплата заказа при получении
var country_town = localStorage.getItem('formStorage');
var date = new Date();
let compare_location = '';
obj_town = JSON.parse(country_town);
if (obj_town !== "undefined" && obj_town !== null) {
compare_location = obj_town.user_region;
} else {
compare_location = Cookies.get('city-choose-full')
}
if (compare_location == 'Россия, Москва' && date.getHours() < 12) {
$("#updateDelivery span").html("Доставим сегодня");
} else {
$("#updateDelivery span").html("Доставим быстро");
}
Светофильтр нового поколения разработан специально для чехлов серии Sherpa от Freewell. Благодаря магнитному креплению установка происходит быстро и легко, без лишних действий. Линза имеет олеофобное покрытие, а также устойчива к царапинам
Данная модель представляет собой настоящий калейдоскоп, что создаст волшебный кадр
Характеристики
Линз в комплекте
1 шт
Вид фильтра
креативный
Регулируемый
Нет
Артикул производителя
FW-SH- KDPRISM
ВНИМАНИЕ
для установки необходим чехол Freewell Sherpa для iPhone
Страна-производитель
Китай
Особенности конструкции
крепление Sherpa
Вес
236 г
Похожие товары
Светофильтр Kase Soft GND1.2 Mobile Magnetic
Нет оценок
Светофильтр Kase Soft GND1.5 Mobile Magnetic
Нет оценок
Светофильтр Kase ND4000 Mobile Magnetic
Нет оценок
Светофильтр Kase ND4 Mobile Magnetic
Нет оценок
Светофильтр Kase ND32 Mobile Magnetic
Нет оценок
Светофильтр SmallRig MagEase Magnetic CPL 52мм
Нет оценок
Комплект светофильтров NiSi IP-A+P2 Landscape Kit для iPhone
Нет оценок
Комплект светофильтров Kase Magnetic Square (Star Burst/Streak Blue)
Нет оценок
gtag('event', 'view_item_list', {
"send_to": "UA-32432488-1",
"ecomm_pagetype": "Главная",
"items": [
{
"id": 24631,
"name": "Светофильтр Kase Soft GND1.2 Mobile Magnetic",
"list_name": "Главная"
},
{
"id": 24632,
"name": "Светофильтр Kase Soft GND1.5 Mobile Magnetic",
"list_name": "Главная"
},
{
"id": 24634,
"name": "Светофильтр Kase ND4000 Mobile Magnetic",
"list_name": "Главная"
},
{
"id": 24639,
"name": "Светофильтр Kase ND4 Mobile Magnetic",
"list_name": "Главная"
},
{
"id": 24636,
"name": "Светофильтр Kase ND32 Mobile Magnetic",
"list_name": "Главная"
},
{
"id": 29869,
"name": "Светофильтр SmallRig MagEase Magnetic CPL 52мм",
"list_name": "Главная"
},
{
"id": 48774,
"name": "Комплект светофильтров NiSi IP-A+P2 Landscape Kit для iPhone",
"list_name": "Главная"
},
{
"id": 25561,
"name": "Комплект светофильтров Kase Magnetic Square (Star Burst/Streak Blue)",
"list_name": "Главная"
},
]
});
$(".goods .goods_row a").click(
function(e) {
gtag('event', 'select_content', {
"content_type": "product",
"send_to": "UA-32432488-1",
"ecomm_prodid": $(this).data("uidgood"),
"ecomm_totalvalue": $(this).data("pricegood"),
"items": [
{
"id": $(this).data("uidgood"),
"name": $(this).data("namegood"),
"list_name": "Главная",
"ecomm_pagetype": "Главная",
}
]
});
}
);
$('.lazy').lazy(
{
afterLoad: function(element) {
$(element).closest('.float-left.first').find('.productShimmerLoader').hide();
},
onError: function(element){
$(element).attr("src",'/wa-content/img/design/themes/no-image.png');
$(element).closest('.float-left.first').find('.productShimmerLoader').hide()
}
});
$('.item_action_block .item_like').off('click').on('click', function() {
let productId = $(this).closest('.item_action').find('input[type="submit"]').attr('data-pid');
let productPrice = $(this).closest('.item_action').find('input[type="submit"]').attr('data-pprice');
if (productId == undefined) {
productId = $(this).closest('.item_action').find('input[type="hidden"][name="product_id"]').val();
productPrice = parseInt($(this).closest('.item_desc').find('.price .current').text());
}
console.log(productId + ' - '+ productPrice)
var _tmr = window._tmr || (window._tmr = [])
_tmr.push({
type: 'reachGoal',
id: 3325343,
value: productPrice,
goal: 'addtofavorites',
params: {
product_id: productId
}
});
_tmr.push({
type: 'reachGoal',
id: 3245403,
value: productPrice,
goal: 'add_to_wishlist',
params: {
product_id: productId
}
});
});
Удалённый склад
Вы добавили товар с удаленного склада. Это значит, что на доставку такого товара
потребуется на 3-5 дней больше чем расчетное время доставки в корзине
var _tmr = window._tmr || (window._tmr = [])
_tmr.push({
type: 'reachGoal',
id: 3325343,
value: '5990.0000',
goal: 'prosmotrel_kartochku_tovara',
params: {
product_id: '51359'
}
});
$('.product_action--like').off('click').on('click', function() {
var _tmr = window._tmr || (window._tmr = [])
_tmr.push({
type: 'reachGoal',
id: 3325343,
value: '5990.0000',
goal: 'addtofavorites',
params: {
product_id: '51359'
}
});
_tmr.push({
type: 'reachGoal',
id: 3245403,
value: '5990.0000',
goal: 'add_to_wishlist',
params: {
product_id: '51359'
}
});
});
var _tmr = window._tmr || (window._tmr = []);
_tmr.push({
type: "reachGoal",
id: 3245403,
value: "5990.0000",
goal: "viewProduct",
params:
{
product_id: "51359"
}
});
gtag('event', 'view_item', {
"send_to": "UA-32432488-1",
"ecomm_prodid": "51359",
"ecomm_pagetype": "product",
"ecomm_totalvalue": '5990.0000',
"items": [
{
"id": "51359",
"name": "Светофильтр Freewell Sherpa Kaleidoscope",
"price": '5990.0000'
}
]
});
window.vkAsyncInit = function() {
VK.Retargeting.Init('VK-RTRG-1347429-hq2AP');
const eventParams = {
"products" : [{"id":"51359"}],};
VK.Retargeting.ProductEvent(240231, "view_product", eventParams);
}