Events
Action
Remove from Cart

Basket/Remove

Triggered when a user removes

roomstay.events.on('Basket/Remove', (event: StepCheckoutViewEvent) => {
  console.log(
    `User removed room ${event.basketRow.getRoom().name} from their basket`
  )
})

basketRow

The row removed from the guest's booking.

Type: BasketRow

currentBasket

Current basket as the user would see it, after the item was removed.

Type: BasketRow[]