Contributions
Stock Status in Product Listing
Show your customers whether an item is "In Stock" or "Out of Stock" as they browse the product listing.
Simple changes, replacing the Quantity column.
Thanks to Matti Ressler for the core code for this.
Expand All / Collapse All
This is a fix for those of you who had the issue of all products displaying "OUT OF STOCK".
Use this code in
includes/modules/product_listing.php
instead of the original.
Text file only.....
Basically took the last two fixes and put them in the actual php files. It was driving me nuts the other way. Full archive attached.
This addition to “Stock Status in Product Listing” allows you to display the Notification Box only when an item is out of stock.
The Notification Box would also be removed from the right column directly into the product description.
In addition to the contribution "Automatic Customer Stock Update Notification' http://www.oscommerce.com/community/contributions,3152. you can now automatically inform customers once you restock an item.
It makes sense for all stores that sell spare parts ect. and therefore product notifications are only usefull for stock updates.
I've added multilingual functionality allowing you to show stock announcements to product_info.php and products_new.php. in store's languages.
Two more additions, enabling a stock announcement in specials.php, and allowing you to disable the "Add to Cart" button in product_reviews_xxx.php.
The code in v1.21 is unaffected.
Two major improvements.
1) Original code fine tuned to decrease the number of database queries.
2) Readme rewritten in a much easier to understand way, with images.
I've added some extra options allowing you to add stock announcements to product_info.php and products_new.php.
Also, there is an option to disable the "Add to Cart" button if an item is out of stock.
Sorry, the changes from v1.02 are not included as I cannot see what they actually are!
Only change is that the script will display your current stock level when the stock is above 0
Made a slight error in the original, I had omitted a couple of "break;" commands required in the product_listing.php
Should be sorted now.
Show your customers whether an item is "In Stock" or "Out of Stock" as they browse the product listing.
Simple changes, replacing the Quantity column.
Thanks to Matti Ressler for the core code for this.
Note: Contributions are used at own risk.