On my B2B Marketplace app, I want my app to create a single order page if multiple products are checked out from the same seller, but if the products are from different sellers there should be a separate page for each product like AliExpress. Is that possible with Bubble.io?
I may be unable to share the web app editor as it is confidential, but I appreciate your help!
These selected products are from different sellers, but if I checkout, I pay for all at once. At my Orders screen, I get a separate order page for each product as it is from different sellers.
But if these selected products are from the same seller, I pay for all at once, but at my Orders screen, I get just a single page, for all the products.
I hope it makes sense! Sorry about the less screenshots.
Case: Product from Same Seller
You must (should) be creating a (single) order after the payment is received.
Case: Product from Multiple Seller
You must (should) be creating a (multiple) order after the payment is received. This can be done via API workflow which can trigger Create Order action for each seller’s (products filtered by Seller).
Create a API workflow to create a Order. Set Seller and List of Products as Input.
Use this API workflow for Case 1 and Case 2. Same workflow can be used to handle both cases.
After the payment confirmation, When you schedule the Order Creation Workflow, Search for Unique Sellers in the Cart (It can be 1 or many), then schedule API workflow on a list accordingly.
You might need to tweak the actions and data references as per your exact use case.
@codefree aka Mohit has the solution, if you need any help related to the bubble.io problem, let Mohit do his magic, his excellence in skills will help you get the job done.