I am making an eCommerce app, I am stuck into the cart page, can anyone helps me to send all the items to the cart page. I want to show all the products as a Custome list View. Also, Want a total Price for all of the cart items. I also Buy Deep Host Custom List View Extension.
I also try Tinydb but, can’t find any solution. please help me to build the cart system. show me some block to make the product list, and show it into cart page as a list.
As @Rogerio_Rios said go step by step.
For Add items to cart, do
Add a button for cart when it pressed then add item to the list ( products name, price,etc) and store it in tinydb.
On cart page display the information accordingly.
You must try and if you have any problem then we are here to help
Answering the first question:
I haven’t looked at your blocks, but normally, when we want to read a list of items or several records in a table, we can use a feature called “loop” (repetition structure). It will read a specified start to an end specified by the programmer.
Answering the second question:
Every list / array / vector has items and each item has a number that identifies it: index. Through this index you can find your item. Index 0, Index 1, Index 2 … some lists start with 0 others with 1
How can i set the index value in the list. I receive multiple data in in multiple tag then i process it into a single list, so I can’t understand how to set the index value for each list. I am trying to make a loop store multiple value.