Pour une livraison avant Noel, consultez notre tableau des  DELAIS MOYENS DE PRODUCTION
Personnalisez vos cartes avec vos photos préférées.
commander
Passer la commande
var dakisItems = JSON.parse('<%= JSON.stringify(cart.items) %>'); var items = []; for (var i = 0; i < dakisItems.length; i++ ) { itemSku = (dakisItems[i].merchandise_details !== undefined) ? dakisItems[i].merchandise_details.sku : dakisItems[i].id; itemBrand = (dakisItems[i].merchandise_details !== undefined) ? dakisItems[i].merchandise_details.brand : "Gosselin Photo Vidéo Inc."; itemPrice = (dakisItems[i].merchandise_details !== undefined) ? dakisItems[i].price : dakisItems[i].subtotal; items.push({ item_name: dakisItems[i].text, item_id: itemSku, item_brand: itemBrand, price: itemPrice, quantity: dakisItems[i].quantity }) } // Measure a view of product details. This example assumes the detail view occurs on pageload // View Cart dataLayer.push({ ecommerce: null }); // Clear the previous ecommerce object. dataLayer.push({ event: "view_cart", ecommerce: { currency: "CAD", value: <%= cart.total %>, items: items } }); // Begin Checkout document.getElementById("checkout").addEventListener("click", function() { dataLayer.push({ event: "begin_checkout", ecommerce: { currency: "CAD", value: <%= cart.total %>, items: items } }); }); // Add to Cart // Only get last item for add_to_cart var z = dakisItems.length - 1; var productList = items.pop(); var referrer = document.referrer; var argus = referrer.includes("argus"); var codex = referrer.includes("codex"); if(argus === true || codex === true) { dataLayer.push({ event: "add_to_cart", ecommerce: { currency: "CAD", value: <%= cart.total %>, items: productList } }); };