Friday, November 1, 2024 3:04:33 AM
//addToCart
$('.add-to-cart-button, .product-box-add-to-cart-button').each(function () {
var productid = GoogleEEHelper._getProductId(this);
if (productid > 0) {
$(this).click({ productid: productid }, function (event) {
event.preventDefault();
GoogleEEHelper.AddToCart('addToCart', event.data.productid);
});
}
});