Use Case: Clearing the Cart in an E-Commerce Application

On an e-commerce platform, when a user accidentally adds many products or wants to reset their selection, they click the ‘Clear Cart’ button. The Clear Bag action completely empties the active cart. To inform the user that the operation was successful, the Notify action can be used to display the message ‘Your cart has been cleared.’

Configuration Steps:

  • Add a ‘Clear Cart’ button to the screen where products are listed or appear in the cart.
  • Add the following action to the button:
  • + ADD ACTION → OnClick → Bag → Clear Bag
  • Optionally, feedback can be provided with the Notify action on the same button or after the Clear Bag action.

This allows the user to remove all products from the cart with a single click and enjoy a clean shopping experience.