We've setup this module to work with views. We've added the Stock field to the view so when the product is out of stock it displays an out of stock badge. Clicking on the badge adds the visitor to the notification list.
Problem: Strangely the setup we have works for annonymous visitors but not registered member. This is the code we've placed in the tpl file:
<?php
$data = $row->uc_product_stock_stock;
if ($data == "0") {
print "<a href='/stock_notify/".$row->uc_products_model."'><img src='/sites/default/files/oos.png' width='116' height='116'></a>";
}
?>