Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

one Item in Stock sold 30,000 TIMES!!!


snagelcat

Recommended Posts

I have one of a kind Items, when one is sold I don't have another to sell.

How can I get the product to stop selling after ONE is bought?

 

(I know I can go into the admin and list it out of stock...but what If I'm not around?)

ver 2.1

 

 

:shock: :shock: :shock:

Link to comment
Share on other sites

Don't know too much about 2.1 but in 2.2 the stock can be automatically updated. If this is (guess not) not the case in 2.1 it should not be too hard to implement it. All you really need is a sql query at the last page of the checkout that updates the stock to minus 1. Then another sql statement checks if the stock is zero or less and de-activates the product.

 

HTH

Mattice

"Politics is the art of preventing people from taking part in affairs which properly concern them"

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...