Product display at zero stock

Ask the community for help and support.
Post Reply
spoole76
Posts: 5
Joined: Thu Dec 29, 2022 3:55 pm
Been thanked: 1 time

Product display at zero stock

Post by spoole76 »

Hi,

Does anyone now how to keep a product displayed at zero stock ? When I test purchase items and the stock is depleted it no longer shows on the site. If possible I would still like it to show. I can click the green tick and it shows again but I assume all items with disappear when the stock reaches zero ?

Thanks
Steve
User avatar
Kofod95
VIP Member
VIP Member
Posts: 605
Joined: Sat Feb 06, 2021 7:38 pm
Has thanked: 80 times
Been thanked: 141 times

Re: Product display at zero stock

Post by Kofod95 »

You could make a hook that fires at checkout_success or during the order processing, but after the stock-subtraction, that simply re-activates the product by setting the status = 1.

//Daniel
I'm not smart, but sometimes even a blind chicken can find a corn.
Here are a lot of corns: Phoenix user guide
Dan Cole
VIP Member
VIP Member
Posts: 222
Joined: Fri Oct 25, 2019 2:14 pm
Has thanked: 24 times
Been thanked: 13 times

Re: Product display at zero stock

Post by Dan Cole »

I'm on an older version but I assume that the allow checkout setting is still used and if so, try setting it to true.

admin>configuration>stock

Dan
Post Reply