snagelcat Posted December 10, 2002 Share Posted December 10, 2002 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 More sharing options...
mattice Posted December 10, 2002 Share Posted December 10, 2002 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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.