# Grouping items in a cart

**URL:** <https://forum.bubble.io/t/grouping-items-in-a-cart/297674>\
**Category:** Need help\
**Created:** [December 14, 2023, 10:49am UTC](https://forum.bubble.io/t/grouping-items-in-a-cart/297674 "2023-12-14T10:49:17Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![marketinginhightech](https://avatars.discourse-cdn.com/v4/letter/m/b5a626/32.png) [@marketinginhightech](https://forum.bubble.io/u/marketinginhightech)\
**Post date:** [December 14, 2023, 10:49am UTC](https://forum.bubble.io/t/grouping-items-in-a-cart/297674/1 "2023-12-14T10:49:17Z")

</div>

Hello,  
this is the cart of my user, but if he purchase 1 article multiple times it dos’ent regroup them i want to regroup them and add the quantity  
for exemple he purchase the first time 10 QTY then 3, i want to regroup them and do 10 + 3 = 13

 ![regroup](https://us1.discourse-cdn.com/bubble/original/3X/b/8/b8e717a0daa1db96eff577d7b107eec1ee00df41.png)

please be nice to me im new 🙂

---

<div class="post-metadata">

**Author:** ![nico.dicagno](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/nico.dicagno/32/207961_2.png) [@nico.dicagno](https://forum.bubble.io/u/nico.dicagno)\
**Post date:** [December 14, 2023, 11:00am UTC](https://forum.bubble.io/t/grouping-items-in-a-cart/297674/2 "2023-12-14T11:00:04Z")

</div>

Hi, there are many ways to do this, but it depends on the set-up you are using.

Can you please share some screenshots? Mainly of the Repeating Group settings and of the workflow which adds items to the cart.

---

<div class="post-metadata">

**Author:** ![marketinginhightech](https://avatars.discourse-cdn.com/v4/letter/m/b5a626/32.png) [@marketinginhightech](https://forum.bubble.io/u/marketinginhightech)\
**Post date:** [December 14, 2023, 2:25pm UTC](https://forum.bubble.io/t/grouping-items-in-a-cart/297674/3 "2023-12-14T14:25:38Z")

</div>

![01 buy](https://us1.discourse-cdn.com/bubble/original/3X/9/b/9bbc68120a6bde85a3fe99865b9853ab13357415.png)  
 ![02 buy](https://us1.discourse-cdn.com/bubble/original/3X/6/c/6cf4eff05fb361ad7367d1066132c001cfedd669.png)  
 ![03 buy](https://us1.discourse-cdn.com/bubble/original/3X/4/7/470a62cddb1a165fbe43c2ed1226233c3609e4e0.png)  
 ![04 buy](https://us1.discourse-cdn.com/bubble/original/3X/4/f/4f0eab5a385099c0a587fb04ad00eab8dafe9e22.png)  
 ![05 buyy](https://us1.discourse-cdn.com/bubble/original/3X/1/9/19ea4b6dbd11c328a238ea0ea49d9118273b107c.png)

---

<div class="post-metadata">

**Author:** ![marketinginhightech](https://avatars.discourse-cdn.com/v4/letter/m/b5a626/32.png) [@marketinginhightech](https://forum.bubble.io/u/marketinginhightech)\
**Post date:** [December 14, 2023, 3:09pm UTC](https://forum.bubble.io/t/grouping-items-in-a-cart/297674/4 "2023-12-14T15:09:56Z")

</div>

@nico.dicagno this is some screeshoots please if you can give some help

---

<div class="post-metadata">

**Author:** ![fogsgeneral](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/fogsgeneral/32/188467_2.png) [@fogsgeneral](https://forum.bubble.io/u/fogsgeneral)\
**Post date:** [December 14, 2023, 6:07pm UTC](https://forum.bubble.io/t/grouping-items-in-a-cart/297674/5 "2023-12-14T18:07:26Z")

</div>

Here my flow for the add items use case, the idea is.  
" add + items if there product with same specification, IF no product then add ( create new items ) only when in my cart there is no product ( with specification )

 ![image](https://us1.discourse-cdn.com/bubble/original/3X/2/c/2c1716ab209dbb4a45981cfb6d257c933213a273.png)  
 ![image](https://us1.discourse-cdn.com/bubble/original/3X/f/6/f68e6fd6a2b213d0fe7f2998fc76d4b4d6ef894d.png)  
 ![image](https://us1.discourse-cdn.com/bubble/original/3X/f/4/f4e49eee943c58fe3c22ab6755a87db1edc498ab.png)  
 ![image](https://us1.discourse-cdn.com/bubble/original/3X/5/9/595bd04317f1617bd51ae71ba6abe2f0ff85e184.png)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/bubble/original/3X/2/8/2847faa74692c2ffa5d939d3dc3724cdd060d247.png) [@system](https://forum.bubble.io/u/system)\
**Post date:** [February 22, 2024, 10:49am UTC](https://forum.bubble.io/t/grouping-items-in-a-cart/297674/6 "2024-02-22T10:49:31Z")

</div>

This topic was automatically closed after 70 days. New replies are no longer allowed.
