How to Display Ordered Dishes with Quantity in “Order” Data Type?

Hi everyone,

I’m building a restaurant ordering app. When a user places an order, I save a list of “PozycjaKoszyka” (cart items) to a new “Zamówienie” (Order) entry.

Each “PozycjaKoszyka” has fields like:

  • danie (dish)
  • ilość (quantity)
  • cena_łączna (total price for that item)

What I want to do:

In the Zamówienie data type, I’d like to save and later display all the ordered dishes with their quantities, e.g.:

“Margherita x3, Pepperoni x2”

instead of just showing the list of dish names or unique IDs.

What I’ve tried:

  • Using a backend workflow with “Schedule API Workflow on a list” to update the dania field in Zamówienie
  • Using :grouped by and :format as text to display name + quantity

But I can’t get the result to save as one string or formatted output into the Zamówienie’s dania field.

What’s the best way to format this list and store it inside the Order?

Ideally I’d like the admin view to show a summary like:

“Spaghetti x1, Tiramisu x2, Cola x3”

Thanks so much for any help or examples!

You can create a repeating group using Do a search for Dishes:unique elements.

In each row you can insert two texts elements.

  1. This Dish’s name.
  2. Do a search for Dishes where Dish is this row’s Dish:Count

Sorry about the format, I am using my phone :melting_face:.

1 Like

This topic was automatically closed after 70 days. New replies are no longer allowed.