#Suggestion on how to build order creating?

15 messages · Page 1 of 1 (latest)

hallow kernel
#

Hi! Currently i'm building a website that's need a virtual field that is visible and not editable to user (There is a way to do that on payload website)
However, it's a calculated field that's need to fetch the data from another collection. Good example is product item inside order.
Is there a way to display the subtotal in each array box and the grand total outside the block while the admin is creating order? Thank you

loud foxBOT
weak latch
#

You can essentially listen in on data from other fields, do whatever you need and display it as needed

hallow kernel
hallow kernel
weak latch
#

yep

#

you can also write a server component that returns a client if you need to pass down some logic to it

#

you cant use the local API in the client server so there you need to use the rest api

hallow kernel
weak latch
#

client

#

it will be able to get it from the state

hallow kernel
loud foxBOT