Hi everyone,
I’m very close to finishing my project, but I’m stuck on an issue. I’ve created a Cart screen where order items are grouped by their seller. The buyer needs to make a payment for each seller separately.
On the Cart screen:
- The outer list displays sellers.
- The inner list shows the order items for each seller.
- I’ve added a button inside the seller’s list to calculate the total price, including shipping.
However, the “Checkout” button is placed outside these lists. When I try to trigger an action with this button, I can only update the logged-in user, but I cannot update the “IsSold?” status of the order items.
How can I achieve this in Adalo? Since I’m a beginner, I’m struggling to figure out the right approach. Any help would be greatly appreciated!
Thanks!
Hi @kartolog
Make the button a list of order items then you could access them. I’m not sure if this will be the better solution performance wise.
regards
Hi @kartolog
I think your Checkout button needs to be linked to another screen, like a loading screen. On this screen, you can add a custom list of the order items and place a timer (set to 1 second) inside the list. The timer will update each order item’s “IsSold?” status then back action.
To keep things clean, you can make the custom list invisible and design the screen however you like.
I’m not sure how you’re handling your project and the collections, but in my experience, I usually track the “paid” or “sold” status at the order level rather than on individual order items. If a buyer doesn’t want an item, it shouldn’t be included in the order in the first place.
Hope this helps! 
make the button a list as well