I sell a product that is in HIGH DEMAND. I have VERY limited quantities. I can NOT have oversells! Refunding 20 customers every day is not practical

Now to just find someone to DO this for me.....

~Rachel
That doesn't work if 2 or more people have the 1 item in the cart and they checkout at the same time. The stock will go into the negative, regardless. I have the settings already set in the example you showed above.FnF wrote:System>>Settings>>Option>>Stock>>
Stock Checkout:
Allow customers to still checkout if the products they are ordering are not in stock. `NO'
If I change the oc_cart table to MyISAM engine, This is the reason for the negative result of it?liquidpele wrote:This is actually a pretty big problem - a busy site might have 3 people trying to buy the same thing at the same time! The answer is: Just have the database handle it for you.
Make the table you track the carts/stock with InnoDB instead of myISAM. Then track the cart/stock in that table and use table locks to verify things if you're verifying and then updating the table. The performance doesn't matter if the only thing using the locking table are people with carts because you're not going to have 200 people checking out and refreshing at the same time and having good concurrency is more important.
Users browsing this forum: No registered users and 95 guests