Hi Everyone,
I’m building a food delivery app, similar to UberEats. How can my end-user customize their orders?
For example, we sell takeouts, however the user needs to select between:
- 1 (required) out of 3 options of rice
- 1 (required) out of 2 options of beans
- 2 (required) out of 3 options of salads
If the takeout size is small:
- 2 (required) out of 5 options of meats
If the takeout size is medium or large:
- 3 (required) out of 2 options of meats
I’m not able to find a way to build in a efficient collection and also how to represent that with the components available.
Originally, I’ve tried the following relationships:
Menu > Menu Items (one to many)
Menu Items > Menu Item Add-Ons (one to many)
Unless I don’t specify a column for each add-on, I don’t know what to do:
Thank you,
Valter.
Hello
I do have the same and implemented it as the following
regardless of the menu and menu items design, for each menu item I add addons-groups , and adding addons-items to these groups
***addons-group collection
.
.
.
*****addons-item collection
.
.
.
the min and max attributes in the group collection determine if this addons group is REQUIRED or OPTIONAL, like if the min is Zero then its optional, if min is more than Zero its required and the upper limit of selection capped by the max
to represent this I am using a custom component built specifically for this, and display as this
.
.
.
HTH
1 Like
Hi @mohmdfawzi , thank you for your reply. May I know what custom component are you using? Is it available in the Adalo marketplace?
No not availabe in market place
I paid for a developer to build this custom component for me
Hi there,
I am also looking to get this done - do you have the details of who you used?
thanks
Hi Valter,
Did you ever manage to get this done as I am looking to get the same?
Thanks
Hi,
yes, are you looking for the exact same component or something customized? I can share with you his contact details
Hello, how are you? I would do it this way
In a client’s ice cream ordering app we did this
Databases: orders, products, order items, flavors
The order starts and asks you to select the type of ice cream
1kg = 4 flavors, 1/2 = 3 flavors 1/4 = two flavors
In the database you already create the Products (type of ice cream, price, quantity of flavors, etc.) and in another database the flavors…
When you create the order, when you press 1 kilo an ORDER ITEM of current order is created (you must create it in the database), when you press it a modal opens that says select flavors…
Example: select a Kilo, on the select flavors page there are 4 dropdowns that say flavor 1, in another flavor 2, the other flavor 3 and the other flavor 4… when you select the 4 press the Continue button… the continue button updates the CURRENT ORDER ITEM And save in the database in flavor 1 = dropdown1 and so on with the same… then you have an order item that is 1 kilo with those flavors and the price per kilo
Then in the order summary you say show me the order items of the current order… then Product opens: 1 kilo, Price, flavors (and in text you put the ones you saved in the database)
I think you can play with some of this and the idea can help you… it worked great for us… you should play with visibilities and conditions