Version: Next
Events
We've included some events that you can listen to in order to and make something happens when these events are triggered.
#
Example#
List of eventsEvent triggered | Description |
---|---|
PelcroElementsCartOpened | This occurs when the cart is opened using the switchView("cart"); function, and includes the cart items in the event detail. |
PelcroElementsCartItemAdded | This occurs when adding a new item to your cart using the addToCart(123); function, and includes the added item in the event detail. |
PelcroElementsCartItemRemoved | This occurs when removing an item from your cart using the removeFromCart(123); function, and includes the removed item in the event detail. |