I want to be able to display a message to my users when a product is out of stock. That way, when they place an order for an out-of-stock product, they will be aware of the possibility that order may not be fulfilled.
After searching through the forums, I concluded that the best way of doing this would be to add a snippet of PHP to my to my template.
The following:
<?php
print uc_stock_level($node->model);
?>Does anyone know of a solution to my problem (or a good resource that explains how to write PHP IF statements that doesn’t require a knowledge of PHP to understand).
[I know that there is a contributed module, Simple Stock Levels, that does this. However, at the bottom of the page [http://www.ubercart.org/contrib/132], there is a message saying that it is not a good idea to use this module with the updated ubercart].
Thanks ^_^




Joined: 01/20/2008