1jQuery(document).ready(function($) { 2 3 if (userName !== '') { 4 userengage('event.Register', { 5 'userName': '"' + userName + '"', 6 'email': '"' + userEmail + '"' 7 }); 8 } 9 $(document).on('click', '.add_to_cart_button', function() { 10 11 $this = $(this); 12 var productId = $(this).attr('data-product_id'); 13 var productName = $(this).closest('.product').find('.woocommerce-loop-product__title').text(); 14 var productPrice = $(this).closest('.product').find('.woocommerce-Price-amount').text(); 15 var productSku = $(this).attr('data-product_sku'); 16 var obj = { 17 id: productId, 18 name: productName, 19 price: productPrice, 20 sku: productSku 21 }; 22 userengage('event.AddCart', obj); 23 }); 24});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.