# Need help with cart button function

**URL:** <https://community.thunkable.com/t/need-help-with-cart-button-function/1180825>\
**Category:** Questions about Thunkable X\
**Tags:** beginner\
**Created:** [March 22, 2021, 1:09pm UTC](https://community.thunkable.com/t/need-help-with-cart-button-function/1180825 "2021-03-22T13:09:43Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![nazrulf3ygrvt4](https://avatars.discourse-cdn.com/v4/letter/n/50afbb/32.png) [@nazrulf3ygrvt4](https://community.thunkable.com/u/nazrulf3ygrvt4)\
**Post date:** [March 22, 2021, 1:09pm UTC](https://community.thunkable.com/t/need-help-with-cart-button-function/1180825/1 "2021-03-22T13:09:43Z")

</div>

Pls help need guide on creating cart button function. 😕

---

<div class="post-metadata">

**Author:** ![codeswept](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/codeswept/32/87755_2.png) [@codeswept](https://community.thunkable.com/u/codeswept)\
**Post date:** [March 22, 2021, 1:31pm UTC](https://community.thunkable.com/t/need-help-with-cart-button-function/1180825/2 "2021-03-22T13:31:20Z")

</div>

Please explain more about what you have tried. What do you mean by cart button function? WHta have you tried so far? Screenshots and videos are also helpful.

---

<div class="post-metadata">

**Author:** ![nazrulf3ygrvt4](https://avatars.discourse-cdn.com/v4/letter/n/50afbb/32.png) [@nazrulf3ygrvt4](https://community.thunkable.com/u/nazrulf3ygrvt4)\
**Post date:** [March 22, 2021, 2:06pm UTC](https://community.thunkable.com/t/need-help-with-cart-button-function/1180825/3 "2021-03-22T14:06:36Z")

</div>

i didn’t try anything yet, because i kinda confused with guide on internet. By cart function i mean when i click on data list (each of it) i can put it into cart and proceed with calculation. im trying to create a food ordering app for my college btw

---

<div class="post-metadata">

**Author:** ![catsarisky](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/catsarisky/32/100661_2.png) [@catsarisky](https://community.thunkable.com/u/catsarisky)\
**Post date:** [March 22, 2021, 3:34pm UTC](https://community.thunkable.com/t/need-help-with-cart-button-function/1180825/4 "2021-03-22T15:34:04Z")

</div>

(Puts on her teacher hat:) What guide on the internet? What specifically are you confused about? We’d like to help you, but need more details. 🙂

---

<div class="post-metadata">

**Author:** ![nazrulf3ygrvt4](https://avatars.discourse-cdn.com/v4/letter/n/50afbb/32.png) [@nazrulf3ygrvt4](https://community.thunkable.com/u/nazrulf3ygrvt4)\
**Post date:** [March 22, 2021, 7:41pm UTC](https://community.thunkable.com/t/need-help-with-cart-button-function/1180825/5 "2021-03-22T19:41:53Z")

</div>

![test2](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/4/7/47e5feb5cccaffac4aec6107bec3f001c819698c.png) ![test](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/d/7/d7f05fc511e36b9a47c53055edccdbe9955509f4.png)  
What i trying to do is actually when i click the food item, it will automatically assign to cart, and the quantity increasing each click. Please guide me how to do so…

---

<div class="post-metadata">

**Author:** ![codeswept](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/codeswept/32/87755_2.png) [@codeswept](https://community.thunkable.com/u/codeswept)\
**Post date:** [March 23, 2021, 3:56am UTC](https://community.thunkable.com/t/need-help-with-cart-button-function/1180825/6 "2021-03-23T03:56:39Z")

</div>

You can first create a Local DB called ‘cart items’. Add a column called ‘item rowID’. This will hold the rowID of the clicked item to add to the cart, so it can be referenced later. Then, add a  
when data\_viewer\_list1 click  
block.  
Inside that, put,  
DataViewerList cart items create row  
RowID value = rowid( the green block that comes with when dataviewerlist click).

---

<div class="post-metadata">

**Author:** ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)\
**Post date:** [November 8, 2024, 1:25pm UTC](https://community.thunkable.com/t/need-help-with-cart-button-function/1180825/7 "2024-11-08T13:25:45Z")

</div>


