Hmm, I took a look through the BDK plugin and am not sure “easy_lists” are the way to go. I could be wrong but I don’t see how to manipulate them to display price subtotals, aggregate quantities, total price, etc. @gaurav, any pointers?
All that said, I made a plugin that can update a cart stored as a cookie. It can add and remove items as well as calculate quantities, item subtotals and order totals - all in real time! (note: the item quantities shown on the app are only state driven… not reading from the cookie )
The only thing I can’t figure out is how to get it to send these cart objects back into Bubble and saved as things. That would be a dream! Can @cal, or @sam8 or @peterj explain how this could be done (or whether it’s impossible as Vini has said)? I would Platonic love you forever
EDIT:
And I’ll add, if this can’t be done, can you please advise as to the best way to create a shopping cart since creating them in Bubble is actually quite unintuitive. Many users share my pain. For example:
-
HELP needed please - Creating shopping cart
The answer in that thread was to use AirDev’s shopping cart plugin (@vlad ) . The problem with that is that it can be unusable as shown in the recording below:
First it opens up without showing any data As a prospective customer, that’s strike 1. Where’s my order? When I add or substract items, it takes a bit to respond, so perhaps I click the button again thinking I hadn’t clicked it the first time. Now I see it’s laggy. That’s strike 1.5 or 2. Say I’m rich and really need these Alpacas. I’ll take 10
Oops, as I clicked up to 10, the counter incremented to 10, then mysteriously went back down to 9, then went back up to 10. Or when I decrement down to 7, it goes back up to eight then back down to 7. Now I’m more than a little worried this site isn’t going to get my order right. That’s strike 3! I’m out of a sale from my most lucrative potential customer)! -
How to add numbers in Repeating Group? (For a shopping cart)
-
This one was asked May of 2019 Create a shopping cart using custom states
-
This poor person never got an answer Data structure example for shopping cart
-
Can I create a shopping cart with Bubble and integrate it into Webflow?
-
Asked May 2019 Dropdown Menu QTY Selector to Update Database
-
@Vini originally asked this shopping cart question in 2016 and in a comment above recently said
This point is a bit of a pain for me too
-
Asked Jan 2019 Stumped - Trying To Change List Of Item’s Fields Based On Selected List (still doesn’t have an answer)
Seems like this should be simple because it’s what any shopping cart would have to do to reflect the new available quantity in stock of products after a purchase. I just can’t seem to get around this logic.
-
Not precisely about creating a shopping cart but further demonstrates this is a core Bubble use case Making a online ordering system
-
What would be the best way to display a list of things for a shopping cart app
-
This post doesn’t specifically try to make a cart but it’s effectively what they’re doing… to which they get the reply:
This is surprisingly tricky to do, for a number of frustrating Bubble reasons that I won’t get into. That being said, the following seems to work, sort of, but I would be interested to see if anyone has a better approach…
I can go on and on… here’s the pile of over 143 shopping cart related questions on our forum… The point is People use Bubble to sell stuff. There are 12 Stripe Plugins which collectively have been used over 24,300 times. And look at this list of top plugins by usage:
- Ionic Elements - 47,655
- API Connector - 42,286
- Google Material Icons - 32,277
- Toolbox - 31,794
- Slidable Menu - 21,687
- Random User Generator - 21,356
- Multiselect Dropdown - 17,207
- Stripe - 15,442
- Draggable Elements - 14,454
Most of those plugins have to do with just making an app look pretty - visual sugar. Filter those out and the official Bubble Stripe plugin is effectively the number one used plugin on Bubble. Ergo “Selling stuff” isn’t just a use case of Bubble, it is the use case.
So for the love of Zues make making shopping carts easy!