Out of Stock
<?php$stock = uc_stock_level($node->model);
if ($stock > 0) {
?>Stock: <?php print $stock;
// add to cart buttons
print $node->content['add_to_cart']["#value"];
} else {
?>
}
I'll write more explaining this later. If you know PHP and drupals templating system, this solution will explain itself!
Post new comment