# Adding view cart after adding item to cart

**URL:** <https://community.glideapps.com/t/adding-view-cart-after-adding-item-to-cart/17339>\
**Category:** Ask for Help\
**Created:** [October 19, 2020, 9:59pm UTC](https://community.glideapps.com/t/adding-view-cart-after-adding-item-to-cart/17339 "2020-10-19T21:59:22Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Valentine\_Madzhie](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/valentine_madzhie/32/11453_2.png) [@Valentine\_Madzhie](https://community.glideapps.com/u/Valentine_Madzhie)\
**Post date:** [October 19, 2020, 9:59pm UTC](https://community.glideapps.com/t/adding-view-cart-after-adding-item-to-cart/17339/1 "2020-10-19T21:59:22Z")

</div>

Hi Team almost done with APP finally

I am struggling how can I have a button and view that shows up after a user adds item to cart

 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/2X/1/1b43fa97d93d739576b8fe21a59bafe2214c916b.jpeg)

I want something like this one

 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/2X/1/17c5a84c6e3058f1d596dda06f924ecff470bb8e.jpeg)

---

<div class="post-metadata">

**Author:** ![abhilashabhatia](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/abhilashabhatia/32/10618_2.png) [@abhilashabhatia](https://community.glideapps.com/u/abhilashabhatia)\
**Post date:** [October 20, 2020, 2:28pm UTC](https://community.glideapps.com/t/adding-view-cart-after-adding-item-to-cart/17339/2 "2020-10-20T14:28:53Z")

</div>

Hi @Valentine_Madzhie

This might be a useful thread: [Custom CART FUNCTION with/without payment button](https://community.glideapps.com/t/custom-cart-function-with-without-payment-button/14137)

A feature request for this feature: [Link to shopping cart](https://features.staging.glideapp.io/dl/ewAiAHQAIgA6ADAALAAiAHMAIgA6ACIAYwBsAGEAcwBzAC0ARgBlAGEAdAB1AHIAZQBzACIALAAiAHIAIgA6ACIAcgB1AGQALgBHAGwAcAAtAFMAZgBLADYATABNAFAALQB6AE8AdwByAFcAQQAiACwAIgBuACIAOgAiAEwAaQBuAGsAIAB0AG8AIABzAGgAbwBwAHAAaQBuAGcAIABjAGEAcgB0AKAAIgB9AA%3D%3D)

Also check out some topics related to designing and floating buttons. It might help you achieve this specific design.

---

<div class="post-metadata">

**Author:** ![Robert\_Petitto](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/robert_petitto/32/25193_2.png) [@Robert\_Petitto](https://community.glideapps.com/u/Robert_Petitto)\
**Post date:** [October 20, 2020, 3:10pm UTC](https://community.glideapps.com/t/adding-view-cart-after-adding-item-to-cart/17339/3 "2020-10-20T15:10:29Z")

</div>

Are you using Glide’s Built-in cart/buy button?

---

<div class="post-metadata">

**Author:** ![Valentine\_Madzhie](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/valentine_madzhie/32/11453_2.png) [@Valentine\_Madzhie](https://community.glideapps.com/u/Valentine_Madzhie)\
**Post date:** [October 20, 2020, 3:11pm UTC](https://community.glideapps.com/t/adding-view-cart-after-adding-item-to-cart/17339/4 "2020-10-20T15:11:30Z")

</div>

No I am using a custom-built cart

---

<div class="post-metadata">

**Author:** ![Robert\_Petitto](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/robert_petitto/32/25193_2.png) [@Robert\_Petitto](https://community.glideapps.com/u/Robert_Petitto)\
**Post date:** [October 20, 2020, 3:14pm UTC](https://community.glideapps.com/t/adding-view-cart-after-adding-item-to-cart/17339/5 "2020-10-20T15:14:24Z")

</div>

You’d need to create a relation between the item ID of the item to the Item ID in your cart. On the screen, you can create a button that links to screen using the relation. Add a text component with the verbiage you’d like. Set the visibility of both components to only be visible if the relation is not empty.

---

<div class="post-metadata">

**Author:** ![Valentine\_Madzhie](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/valentine_madzhie/32/11453_2.png) [@Valentine\_Madzhie](https://community.glideapps.com/u/Valentine_Madzhie)\
**Post date:** [October 20, 2020, 3:16pm UTC](https://community.glideapps.com/t/adding-view-cart-after-adding-item-to-cart/17339/6 "2020-10-20T15:16:38Z")

</div>

okay first time I hear of relation let me watch a tutorial and make it work

---

<div class="post-metadata">

**Author:** ![Robert\_Petitto](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/robert_petitto/32/25193_2.png) [@Robert\_Petitto](https://community.glideapps.com/u/Robert_Petitto)\
**Post date:** [October 20, 2020, 3:17pm UTC](https://community.glideapps.com/t/adding-view-cart-after-adding-item-to-cart/17339/7 "2020-10-20T15:17:18Z")

</div>

Yeah…relation components = Magic in Glide apps.
