Product Quantity Counter

This is possible, but it requires you to nest custom lists.

  1. Create a custom list of your menu options,
  2. then put a custom list inside that to be your list of orders filtered so that only 1 item shows (the current user’s current order),
  3. then you can put a custom list inside of that, filtered so that only the last order item shows which is in both that order and of the menu option type that you are in (eg, sort high to low by date and only show one result).

Put your two icons and text in this third-level list. Set the text in the middle to Current Order > Order Items > Count (filtered so Line Item Menu Option Name = Current Menu Option Name) - this will tell you how many of these are in the order.

When you ‘Add’, you can create a new order line item of that menu option in that order. This will become the one you see in the list (though you won’t know it’s changed). When you ‘remove’, tell it to delete the current order line item (because it is showing the latest one). This will delete on a last-in, first-out basis.

There’s quite a lot there, but it does allow you to build the cart all on one screen. When Adalo open up demo/read-only apps, I’ll be happy to build it for you so you can see how it works!

4 Likes