Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Locking product once customer adds to cart - singl qty pr


dru

Recommended Posts

Posted

I sell products that usually have a max qty of 1. Do we have the ability to lock that product so other website browsers won't see it and do a double purchase on a single quantity product? :?:

Posted

You would need to make some sort of special routine to update the products table and flag that the product has been added to someone's cart.

 

But, you then need to add some kind of timer to clear the flags should the customer change his mind and leave the site.

 

One idea that comes to mind is an additional table where products_id is added and the time. When something is placed in the cart, the product gets flagged as a temp sold out or some such wording and it gets added to the new table. Then on a periodic basis that table is checked for products sitting in it that have not really sold. Clear the products flag and remove the product from the new table.

  • 2 weeks later...
Posted

I'm looking for a similar solution... but I also want to change a few bits of OSC so that you can't accidently add an item to the cart twice (or if you do the item quantity doesn't increment).

 

I'm at the point where I need to code this, so if you know of any solutions that are already out there for this, please let me know!

 

-al

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...