uc_stock hide product if threshold is hit

Project:Ubercart Contributions
Component:Code
Category:feature request
Priority:normal
Assigned:chourmovs
Status:active
Description
Project: 
uc_stock2

Could we make a predicate to hide product (unpublish it)if the stock hit the threshold
It will be very usefull for unique products shop

Thank you by advance

Version: 
Ubercart 2.0-beta4
bjarkekr's picture
Offline
Joined: 02/24/2009
Juice: 16
One more thing...

It would be a very good thing if customers can not put anymore in their cart than the stock level. If I have a stock of 5 items, I dont want a customer to buy 10.

Also the stock should temperaryly fall as soon as its put in the cart. Then there could be a cron job to refresh stock levels, if a customers cart times out.

cha0s's picture
Offline
Getting busy with the Ubercode.
Joined: 08/22/2008
Juice: 422
Re: One more thing...
Assigned to:bjarkekr» cha0s

I agree guys. I always felt like the stock support isn't up to par, but I haven't gotten to working on it yet. I definitely have this issue queued though. Thanks for the suggestions! ^^

Try FreeBASIC!
My game Lynn's Legacy

pruebas's picture
Offline
Joined: 11/16/2007
Juice: 5
Re: uc_stock hide product if threshold is hit
Assigned to:cha0s» pruebas

Hello, I'm looking also for this. Any idea about the get it done with Conditional actions.

thanks

Oskar

jasonabc's picture
Offline
Uber Donor
Joined: 05/05/2008
Juice: 573
#4
Project:uc_stock, new and improved» Ubercart Contributions
Category:» feature request
Assigned to:pruebas» chourmovs

A way to automatically unpublish products when stock level reaches zero is a much needed feature. For the above posters (and anyone else looking to do this) I found this solution which works well:

http://www.ubercart.org/forum/support/7177/automatically_remove_oneoff_p...