Attraqt
Search…
Remove from Cart
When your user decides to remove a product entirely from the cart, you should send an remove-from-cart action.
1
const removeFromCartAction = {
2
"action":"remove-from-cart",
3
"target": {
4
"product":"83647582"
5
},
6
}
7
8
xo.activity.send(removeFromCartAction);
Copied!
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 modified 21d ago
Copy link