In an e-commerce application, when the user clicks the ‘Remove’ button next to each product on the bag screen, the corresponding product should be deleted from the bag.
Configuration Steps:
- Products are listed on the bag screen.
- A ‘Remove’ button is added to each product row.
- The following action is assigned to this button:
- ADD ACTION → OnClick → Bag → Remove From Bag
- The parameters are linked as follows:
- Bag Key: ‘default’ or currentUser.id + ‘_bag’
- When the user clicks the button, the relevant product is removed from the list in the shopping cart and the updated shopping cart is displayed.