Active
Project:
Ubercart Stock Notify
Version:
6.x-1.0
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
13 Dec 2011 at 02:52 UTC
Updated:
13 Dec 2011 at 02:52 UTC
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>";
}
?>