You could do this with getting user location with adalo’s new location features (Location | Adalo Resources) and match that city with the collection record city. Could you share your current setup with some screenshots or from a video, so we could get a proper solution?
Thank you for your advice @dilon_perera
It looks useful. However, the location feature is not exact what I need now. My problem is not how to get locations, but how to get and use one value from related multiple ones.
Sorry for the late reply because actual data is more complicated and written in Japanese, so I prepared simple one.
Case 1
A user lives in Okinawa and buys product A. Then DeliveryCost will be 1000.
Case 2
Another user lives in Hokkaido and buys product A. Then DeliveryCost will be 5000.
The DeliveryCosts are related to the User’s locations, so one of them should be added to the product’s price when it is charged.
So you want like, if the user want to purchase then the total would be 1000+1000=2000 right?
Why you need a relation with DeliveryCost and products. With your setup you should be able to get logged in user’s > location’s> DeliveryCost’s > Cost > SUM + all product’s price.
Thank you @dilon_perera
Your advice is nice. Unfortunately, trying the formula, DeliveryCosts other than Product A were summed up too. (Sorry my example was too simple)
DeliveryCosts depend on the Location and the PRODUCTS, like deliveries for a pencil and a TV are not the same price.