# How do I calculate the topping price when a customer chooses more than one topping?

**URL:** <https://community.glideapps.com/t/how-do-i-calculate-the-topping-price-when-a-customer-chooses-more-than-one-topping/61810>\
**Category:** Ask for Help\
**Created:** [May 16, 2023, 2:21pm UTC](https://community.glideapps.com/t/how-do-i-calculate-the-topping-price-when-a-customer-chooses-more-than-one-topping/61810 "2023-05-16T14:21:04Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![agung\_Taufik](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/agung_taufik/32/2589_2.png) [@agung\_Taufik](https://community.glideapps.com/u/agung_Taufik)\
**Post date:** [May 16, 2023, 2:21pm UTC](https://community.glideapps.com/t/how-do-i-calculate-the-topping-price-when-a-customer-chooses-more-than-one-topping/61810/1 "2023-05-16T14:21:04Z")

</div>

Hi…  
I’m making a food app  
There are several food menus that offer additional toppings, each topping has a different price.  
My question is, how do I calculate the topping price when a customer chooses more than one topping?

 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/3/7/37cc039e27782c677a8bdefe62f446f30edcb956.png)  
 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/f/4/f4cc29536992639e987378f7e1afadf2c92ba8bf.jpeg)

---

<div class="post-metadata">

**Author:** ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)\
**Post date:** [May 16, 2023, 2:22pm UTC](https://community.glideapps.com/t/how-do-i-calculate-the-topping-price-when-a-customer-chooses-more-than-one-topping/61810/2 "2023-05-16T14:22:56Z")

</div>

Use a split text column to turn the selected toppings into an array, then use this to create a multiple relation to your Toppings table, then do a rollup-\>sum of the price through that relation.

---

<div class="post-metadata">

**Author:** ![agung\_Taufik](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/agung_taufik/32/2589_2.png) [@agung\_Taufik](https://community.glideapps.com/u/agung_Taufik)\
**Post date:** [May 16, 2023, 3:05pm UTC](https://community.glideapps.com/t/how-do-i-calculate-the-topping-price-when-a-customer-chooses-more-than-one-topping/61810/3 "2023-05-16T15:05:07Z")

</div>

thank’s @Darren_Murphy

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/system/32/53398_2.png) [@system](https://community.glideapps.com/u/system)\
**Post date:** [May 17, 2023, 3:05pm UTC](https://community.glideapps.com/t/how-do-i-calculate-the-topping-price-when-a-customer-chooses-more-than-one-topping/61810/4 "2023-05-17T15:05:50Z")

</div>

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.
