• Resolved animesaulo

    (@animesaulo)


    I love the JavaScript Hooks. They’re great when implementing Google Analytics Enhanced Ecommerce on a website using the WP Shopify Plugin. But, one JavaScript Hook that would be great would be to detect when an item has been removed from the cart.

    You already have the JavaScript Hooks for:

    • before.product.addToCart
    • after.product.addToCart

    Can you add 2 more like:

    • before.product.removeFromCart
    • after.product.removeFromCart

    To detect when the product is removed from the cart using the “Remove” link or when the quantity reaches “0” and provides the “lineItem” and “variants” removed.

Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Remove From Cart JavaScript Hook’ is closed to new replies.