$(".addtocart").bind("click", function(){
var product_id = $(this).attr('product-id');
var name = $(this).attr('p-name');
var price = $(this).attr('price');
var special = $(this).attr('special');
var tax = $(this).attr('tax');
window.dataLayer = window.dataLayer || []
dataLayer.push({ ecommerce: null });
dataLayer.push({
'event': 'add_to_cart',
'ecommerce': {
'detail': {
'actionField': {'Product-Views': name}, // 'detail' actions have an optional list property.
'products': [{
'name': name, // Name or ID is required.
'id': product_id,
'price': price,
'special-price': special,
'exclusive-tax-price': tax,
}]
}
}
});
var qty = 1;
window.dataLayer = window.dataLayer || []
dataLayer.push({ ecommerce: null });
dataLayer.push({
'event': 'add_to_cart',
'ecommerce': {
'detail': {
'actionField': {'Product-Views': name}, // 'detail' actions have an optional list property.
'products': [{
'name': name, // Name or ID is required.
'id': product_id,
'price': price,
'exclusive-tax-price': tax,
'quantity': qty,
}]
}
}
});
});
$(".addtowishlist").bind("click", function(){
var product_id = $(this).attr('product-id');
var name = $(this).attr('p-name');
var price = $(this).attr('price');
var special = $(this).attr('special');
var tax = $(this).attr('tax');
window.dataLayer = window.dataLayer || []
dataLayer.push({ ecommerce: null });
dataLayer.push({
'event': 'add_to_wishlist',
'ecommerce': {
'detail': {
'actionField': {'Product-Views': name}, // 'detail' actions have an optional list property.
'products': [{
'name': name, // Name or ID is required.
'id': product_id,
'price': price,
'special-price': special,
'exclusive-tax-price': tax,
}]
}
}
});
var qty = 1;
window.dataLayer = window.dataLayer || []
dataLayer.push({ ecommerce: null });
dataLayer.push({
'event': 'add_to_wishlist',
'ecommerce': {
'detail': {
'actionField': {'Product-Views': name}, // 'detail' actions have an optional list property.
'products': [{
'name': name, // Name or ID is required.
'id': product_id,
'price': price,
'exclusive-tax-price': tax,
'quantity': qty,
}]
}
}
});
});
$("#addtowishlist").bind("click", function(){
window.dataLayer = window.dataLayer || []
dataLayer.push({
'event':'add_to_wishlist',
'ecommerce': {
'detail': {
'actionField': {'Product-Views': 'السمي'}, // 'detail' actions have an optional list property.
'products': [{
'name': 'السمي', // Name or ID is required.
'id': '343',
'price': '109 ريال ',
'special-price': '82 ريال ',
'exclusive-tax-price': '71 ريال ',
'brand': 'جومبا لاهيري',
'model': '25686139 ',
'stock': 'انتهى من المخزون',
}]
}
}
});
var qty = 1;
window.dataLayer = window.dataLayer || []
dataLayer.push({ ecommerce: null });
dataLayer.push({
'event': 'add_to_wishlist',
'ecommerce': {
'detail': {
'actionField': {'Product-Views': 'السمي'}, // 'detail' actions have an optional list property.
'products': [{
'name': 'السمي', // Name or ID is required.
'id': '343',
'price': '109 ريال ',
'exclusive-tax-price': '71 ريال ',
'brand': 'جومبا لاهيري',
'model': '25686139 ',
'quantity': qty,
}]
}
}
});
});
});
function addToCartClicked() {
var qty = $('#input-quantity').val();
window.dataLayer = window.dataLayer || []
dataLayer.push({ ecommerce: null });
dataLayer.push({
'event': 'add_to_cart',
'ecommerce': {
'detail': {
'actionField': {'Product-Views': 'السمي'}, // 'detail' actions have an optional list property.
'products': [{
'name': 'السمي', // Name or ID is required.
'id': '343',
'price': '109 ريال ',
'exclusive-tax-price': '71 ريال ',
'brand': 'جومبا لاهيري',
'model': '25686139 ',
'quantity': qty,
}]
}
}
});
}
} else {
$(document).ready(function(){
window.dataLayer = window.dataLayer || []
dataLayer.push({ ecommerce: null });
dataLayer.push({
'event' : 'view_item',
'ecommerce': {
'detail': {
'actionField': {'Product-Views': 'السمي'}, // 'detail' actions have an optional list property.
'products': [{
'name': 'السمي', // Name or ID is required.
'id': '343',
'price': '109 ريال ',
'special-price': '82 ريال ',
'exclusive-tax-price': '71 ريال ',
'brand': 'جومبا لاهيري',
'model': '25686139 ',
'stock': 'انتهى من المخزون',
'rating' : '0',
}]
}
}
});
var related_products = [];
var all_related_products = [];
jQuery.each(all_related_products, function(key, value ) {
related_products[key] = {
'product': [{
'product_id': value.product_id, //item-id and item-name are required
'name': value.name,
'special-price': value.special,
'exclusive-tax-price': value.tax,
'price': value.price,
'total-price': value.total,
'rating': value.rating,
}]
};
});
window.dataLayer = window.dataLayer || []
dataLayer.push({ ecommerce: null });
dataLayer.push({
'event': 'view_item_list',
'ecommerce': {
'detail': {
'actionField': {'Product-Views': "السمي"},
'related_list_id':"343",
'related_list_name':"السمي",
'related_products':related_products,
}
},
});
السمي
كتب لنفس المؤلف
56 ريال 75 ريال
السعر بدون ضريبة :49 ريال
35 ريال 46 ريال
السعر بدون ضريبة :30 ريال
عروض خاصة
39 ريال 52 ريال
السعر بدون ضريبة :34 ريال
39 ريال 52 ريال
السعر بدون ضريبة :34 ريال
65 ريال 86 ريال
السعر بدون ضريبة :56 ريال
69 ريال 92 ريال
السعر بدون ضريبة :60 ريال
20 ريال 26 ريال
السعر بدون ضريبة :17 ريال
82 ريال 109 ريال
السعر بدون ضريبة :71 ريال
17 ريال 23 ريال
السعر بدون ضريبة :15 ريال
35 ريال 46 ريال
السعر بدون ضريبة :30 ريال
65 ريال 86 ريال
السعر بدون ضريبة :56 ريال
41 ريال 55 ريال
السعر بدون ضريبة :36 ريال
القائمة البريدية اشترك للحصول على أخبار وعروض النادي