Jump to content
Sign in to follow this  

Show Soldout (quantity 0) products rather than remove?

Recommended Posts

I was wondering if anyone else has implemented this in their BS/Edge version?



Basically if product quantity gets to 0, to keep the product listing showing on the front end, but show it is Out of stock or sold out, and disable anyone from checking out.



Currently, if product quantity gets to 0, then the product dissapears completely from front end.


I found an old post with this code

<?php if ($product_info['products_quantity'] == 0 ) echo 'this item is currently out of stock, but can be backordered'; ?>

I suppose this could be used twice on the product info page,

once to display a message,


and a second time to disable the "add to cart" button and display a blank button or message.


I suppose for index.php same thing will be needed.

If anyone can advise, let me know.


That old plugin must also specify to show the product listing if in admin its set to "out of stock".





Edited by vampirehunter

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this