# How can i create a add to cart function . is there any way to created using data base?

**URL:** <https://community.glideapps.com/t/how-can-i-create-a-add-to-cart-function-is-there-any-way-to-created-using-data-base/74062>\
**Category:** Ask for Help\
**Created:** [June 12, 2024, 4:38am UTC](https://community.glideapps.com/t/how-can-i-create-a-add-to-cart-function-is-there-any-way-to-created-using-data-base/74062 "2024-06-12T04:38:13Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)\
**Post date:** [June 12, 2024, 2:22pm UTC](https://community.glideapps.com/t/how-can-i-create-a-add-to-cart-function-is-there-any-way-to-created-using-data-base/74062/2 "2024-06-12T14:22:30Z")

</div>

> [@Adding Multiple Products to an order](https://community.glideapps.com/t/adding-multiple-products-to-an-order/73378/5):
>
> The flow would look like this, assuming your users are signed in: Add a Cart table that would contain the order id, the item id and the quantity. In your users table, add a “current order ID” column. Assuming you have an Items screen, on the entry to the details view of that screen, check if your “current order ID” is empty. If empty, set a unique ID to the “current order ID” column, then show them the details screen. Else just show them the details screen without doing anything. Add a form in…

Here’s what we discussed recently.

---

_[View the full topic](https://community.glideapps.com/t/how-can-i-create-a-add-to-cart-function-is-there-any-way-to-created-using-data-base/74062)._
