Creating the cart for Etsy Demo

I am trying to create a shopping cart. In addition to the models we've already made, I have a LineItems model and controller per suggestion. What I'm confused about is separating the orders from different vendors at checkout like Etsy does. For example, I would like to have the items from the same shop bunched together in one order, another shop with items in one order, etc. with all orders to be paid separately. Also good suggestions for calculating shipping would be nice too if possible.

Posted over 4 years ago by Kamilah W illiams
Posted over 4 years ago by Kamilah W illiams

I would love to have users pay all at once. I am just concerned about shipping. Mainly I just don't want the different shipping costs messed up. If everything can be distributed out correctly I will keep the cart with one checkout process.

1
Posted over 4 years ago by Alex Yang

Then it depends on how you're calculating shipping - shouldn't shipping be calculated on a per-order basis anyway? For example, if a customer is ordering Product A from Seller A and Product B from Seller B, shouldn't the total shipping cost just be the cost of shipping Product A from Seller A's location and Product B from Seller B's location?

1
Posted over 4 years ago by Kamilah W illiams

Yes. I was just wondering if because the site is dealing with multiple sellers instead of one, is there special functions that would have to be included in the cart. If there's no difference from multi-vendors and just one seller, than that answers my questions.

1
Posted over 4 years ago by Alex Yang

I wouldn't imagine there would be any special functions that would be necessary from either the buyer's or seller's point of view. You should be all set!

1
Posted over 4 years ago by Alex Yang

From a user experience standpoint, I would recommend allowing users to pay for multiple items at once regardless of which shop the items are from. Imagine a situation where a user wants to order five items from five different shops. Going through the order forms for each would be pretty tedious. Why not let the user order everything at once and have your app handle the payments to each of the shops?

While this is my suggestion, take it with a grain of salt since I don't have much context and it's your app after all :-). If you still want to place shop-specific orders, you need to think about what will happen when a user already has an item in their cart and tries to add a second item from a different shop. Will the second item overwrite the first? Will a warning message pop up? Will the second item be added to a second cart somehow?

1