Sunday, November 24, 2024 6:54:13 PM
//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);
});
}
});