require([ 'jquery' ], function ($) { function trackAddToCart(content_ids, content_name, content_category, value, eventId) { fbq('set', 'agent', 'magento2-2.4.2-1.4.3', '279732030210585'); fbq('track', 'AddToCart', { source: "magento2", version: "2.4.2", pluginVersion: "1.4.3", content_type: "product", currency: "EUR", content_ids: content_ids, content_name: content_name, content_category: content_category, value: value }, { eventID: eventId } ); } var product_info_url = 'https://www.thriftify.ie/fbe/Pixel/ProductInfoForAddToCart'; $(document).on('ajax:addToCart', function (event, data) { var product_sku = data.sku; var form_key = jQuery("[name='form_key']").val(); $.ajax({ url: product_info_url, data: { product_sku: product_sku, form_key: form_key }, type: 'post', dataType: 'json', success: function (res) { trackAddToCart( [res.id], res.name, res.content_category, res.value, res.event_id ); } }); }); });

Classical

12 Items

per page
Set Ascending Direction

12 Items

per page
Set Ascending Direction
Copyright © 2023 Thriftify Technologies. All rights reserved