Add To Cart Button

Hi
I am making an app on thunkable. I am trying to make an add to cart button so the items chosen by the user saves. Can you please tell me how to do it.
Thank you

the cart could be a simple list… i.e. just use the add items to list block and save the list to TinyDB…

Taifun

Hi Taifun
do u know how to make that work… at the bottom of my screen, i have an add to cart button. when someone presses that button, I want it to add to cart. at the end of the app, i want a screen that shows ALL the items the user has chosen.

follow the previous recommendations
Taifun

those recommendations are confusing for me as a beginner

1 Like

as @Taifun said you have to add item to a list and then manage it for your goal.
This is one way :point_down: but not the only one!

If you don’t want to use a database delete all the blocks violet named TinyDb.

If you don’t spent a little of time to study at least the basic components, your confusion can only increase exponentially :sweat_smile:
If you add some pic or relevant block we will help you better

1 Like

Check out the Thunkable YouTube channel, there are lots of great videos for getting started:
https://www.youtube.com/channel/UCTVZRyybOCDBL2zLXSeQVsw


A very good way to learn App Inventor is to read the free Inventor’s Manual here in the AI2 free online eBook http://www.appinventor.org/book2 … the links are at the bottom of the Web page. The book ‘teaches’ users how to program with AI2 blocks.
There is a free programming course here http://www.appinventor.org/content/CourseInABox/Intro and the aia files for the projects in the book are here: http://www.appinventor.org/bookFiles
How to do a lot of basic things with App Inventor are described here: http://www.appinventor.org/content/howDoYou/eventHandling .

Also do the tutorials http://appinventor.mit.edu/explore/ai2/tutorials.html to learn the basics of App Inventor, then try something and follow the Top 5 Tips: How to learn App Inventor

Taifun

I don’t have that version of thunkable so those blocks are not there for me
also, mine recently upgraded to pro automatically shoudl I be worried

1 Like

So I think you are using Thunkable X , I changed your discussion tag. If you set Thunkable classic you will receive help for Thunkable Classic :rofl::joy:
The way is the same. Add item to list and save it in a variable to manage value as you like.
Here docs for LIST
Here docs for VARIABLE
Maybe now (with the right tag) other users can help you, I don’t use Thunkable X

But this app is for an assessment so I HAVE to use Thunkable X

What about study a little? :point_up_2::point_up_2: I don’t use Thunkable X but in a few minutes I find what you need in the docs


There are 3 kind of variables , so decide the best for you, I set an only variable so I can’t lost my data.
Without any information about your app , it is the best I can do