Remove from Cart

When your user decides to remove a product entirely from the cart, you should send an remove-from-cart action.

const removeFromCartAction = {
    "action":"remove-from-cart",
    "target": {
        "product":"83647582"
    },
}

xo.activity.send(removeFromCartAction);

The properties needed for sending a remove from cart event are as follows:

  • action - you need to specify the action as remove-from-cart

  • target.product - you need to specify the product id that is removed from cart. If you are implementing an FHR integration, this would be equal to the secondId available in the FHR query response.

Any additional information you wish to send can also be included in the metadata _**_object.

Last updated