Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6176877
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T00:10:42+00:00 2026-05-24T00:10:42+00:00

I am working on an online store i developp from scratch using Ruby On

  • 0

I am working on an online store i developp from scratch using Ruby On rails.

I have a design question about stock and orders.

When do you update stock when a user select a product

  • If you lower the stock when the product is put in the cart, you must be able to restock if the user close his browser. Problem, rails does not handle session expiration for this use case

  • If i lower stock before sending the customer to my payment solution (like paypal, google checkout or amazon), i still am not notified if the user close his browser.

-If i lower stock once the payment is valid, i may have two different customers buying the same product when only one is left, and the shop now must deliver two product when he has only one left.

Do you know how online store handle this problem ?

Where can i find design documents of open source online store ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T00:10:43+00:00Added an answer on May 24, 2026 at 12:10 am

    Well normally you keep inventory separated such that you have one value for what is in the warehouse and one value for submitted but not shipped orders.

    When an item is placed in a shopping cart all you can do is inform the user when the effective inventory changes, i.e. when another user has submitted an order. There are no guarantees until the cart has been checked out.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm currently working on an online store for a sports card website using Ruby
I'm working on an online store. I have it setup on my testing server.
I have written an application for an online clothing store in Rails 2.3.5. I
I have an online Java game I'm working on, how would I go about
I am working on an online store on the Magento platform and have hit
I'm working on an online forex trading system and a while back we have
I am working on project -online file management where we have to tore file
I'm currently working on wholesale online t-shirt shop. I have done this for fixed
I'm working on a small online game where there is a need to store
Software I'm working with uses a text field to store XML. From my searches

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.