Contributions
Display Out Of Stock Buttons
This is my first contrib so please bare with me if it's not 100% accurate.
Since some people wanted to know how I added a "OUT OF STOCK" button to my site I though I'd whip up some basic tweak instrucations.
please read the TXT file included in the ZIP file. Let me know if anything is missing in the instructions...
oh and.. BACK UP BACK UP BACK UP YOUR FILES!!!
Expand All / Collapse All
First of all, thank you to everyone--this add-on was a lifesaver: it did what my Client wanted quickly and easily with one glitch: It displayed everything as out-of-stock in the product listing when the quantity column was disabled in the admin section (config/product listing).
So, here's the fix for anyone else who's having this problem. Hopefully it will help. ;)
Credit to airsoftmart over at the forum link (second post)--I discovered that he figured it out the same way, but after I got everything working. His PHP is probably solider than mine, too. :)
Based off the original files, including gif's.
BACK UP FIRST!!!! I am not responsible for your irresponsibility!!!
If the stock image gif´s from the site of the last file changes, your images changes, too .....
put the images in your own images folder, it is just a better way .....
like:
http://www.yourpage.com/catalog/catalog/images/sin_stock.gif
and
http://www.yourpage.com/catalog/catalog/images/en_stock.gif
Mark-Aurelius
When a product was out of stock, and there was some orders pending on it (Negative Stock) no meesages were shown on the product listing.
This modification includes a pair of Gifs instead of the text, and also includes a message when stock is Ok..
Ive updated the file
My Appoligies
What php file must one edit for this to work there is no ref to it in the doc you posted.
This isnt the origional script, Its one I made for myself.
Very simple just one line to insert.
100% working
Thought I would help out this Contribution.
eMail me if you like it, as I am new to PHP
Enjoy
This CONTRIB DOES NOT FULLY WORK.. be careful..
everything works great EXCEPT the Product_listing.php does not function as it should. It displays only OUT OF STOCK button no matter what stock level you set.
In the products description, this works perfect.
If you still want to use it, don't alter your products_listing.php file as the instruction insist. Instead go in your Admin/products listing and set the buy it now colum = 0.
This is a fantastic Contrib, I wish someone could get this to work.
I started a help thread fo us to work this issue out..
http://forums.oscommerce.com/index.php?showtopic=100329
This is my first contrib so please bare with me if it's not 100% accurate.
Since some people wanted to know how I added a "OUT OF STOCK" button to my site I though I'd whip up some basic tweak instrucations.
please read the TXT file included in the ZIP file. Let me know if anything is missing in the instructions...
oh and.. BACK UP BACK UP BACK UP YOUR FILES!!!
Note: Contributions are used at own risk.