Product display at zero stock

Open to all! Ask other shopowners for help.
Post Reply
spoole76
Member
Posts: 5
Joined: Thu Dec 29, 2022 3:55 pm
Phoenix Version:
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


Join The Code Co-op to get access to your library in the Code Co-op Forum
User avatar
Kofod95
Senior Contributor
Posts: 748
Joined: Sat Feb 06, 2021 7:38 pm
Phoenix Version: 1.0.8.20
Has thanked: 99 times
Been thanked: 179 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
Senior Contributor
Posts: 498
Joined: Fri Oct 25, 2019 2:14 pm
Phoenix Version: 1.0.8.21
Has thanked: 67 times
Been thanked: 61 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


Join The Code Co-op to get access to your library in the Code Co-op Forum
Post Reply