Remove product after out of stock

36 views
Skip to first unread message

John Richfield

unread,
Jan 21, 2018, 1:55:37 PM1/21/18
to django-oscar
I would've thought products, after they're out of stock, would be deleted, or hidden from view, but instead they're just marked with 'unavailable'. Is there any way to hide 'unavailable' products from view? 

Samir Shah

unread,
Jan 21, 2018, 9:34:04 PM1/21/18
to django-oscar
By default Oscar shows all products including out of stock ones (in fact it lets you sign up for alerts when products come back in stock).

To customise which products are visible then you can override the model managers (https://github.com/django-oscar/django-oscar/blob/master/src/oscar/apps/catalogue/managers.py) to perform your own filtering.

John Richfield

unread,
Jan 28, 2018, 11:17:06 AM1/28/18
to django-oscar
Oh okay. Thanks!
Reply all
Reply to author
Forward
0 new messages