Workflow - Product listing with quantities

I need help!
I am building a marketplace App. (I started building on bubble with zero experience - please help)
In the App, a seller can list one product with multiple quantities. Eg, for one product listing, let’s say a laptop, I am selling 5 quantities.

Now as a buyer, I bought 2 out of the 5 quantities. How do I set up my data type and workflow to communicate this action with listing data that 3 of 5 selling quantities are left? And, when the quantity of laptops bought equals 5, the product is taken off the marketplace, or the product cannot be bought.
Is there a plugin, please help! Thanks

Are these products listed on bubble or somewhere else?

Hi Pattokane, Yes, I listed the products myself on the bubble app I am building so that I can test the functionality. As I test, I can, unfortunately, buy more than the quantities available for sale

You can try and introduce a data field "product_count’ in the data type that represents the products. Then you can limit the max quantity of a certain product that can be bought to this new entry. This way, each time a buyer buys a certain quantity, let’s say 3, you can go ahead and subtract this number to the total ‘product_count’

Hope that is helpful.

I am still pretty new myself mate and I am sure the bubble pros in here will have more input but I hope this helps :slight_smile:

1 Like

Hello Denis, thanks for the suggestion. So I have a data field called"quantity_selling" in the data type of Product listing. So when a seller is listing his product, he can add 5 or 10 as the quantity he’s selling, which is then stored as a number in the data field called “quantity selling”. If I create a data field called “product_count”, how do I connect the workflow between the buying quantity, (so minus buying quantity from the maximum quantities offered) and the product_count?

Hello pattokane. I really appreciate your input. I will follow your video and try the steps. Thank you so much

1 Like

Feel free to hit me up if you need some more help mate

1 Like

Hi Vence,
That you for your input as well. I am so greatfull I can get support here!

1 Like


Hello Pattokane,

It worked!!! :heart_eyes: :+1:

Thank you so much for taking the time to make a sample video for me. It worked!!! Thank you for unblocking this stage in my application development, I really really appreciate it :hugs: :hugs:

1 Like

Awesome mate :sunglasses:

Glad it help, feel free to reach out if you have any more questions :blush:

1 Like

:hugs: :hugs: :hugs: :+1: