Hi All,
I was wondering if anyone has any tips on the best way I could create a 'limited edition' product that would display the current stock level on the product detail page?
I've tried code that I noticed on another post by Marillion@drupal.org (dropped into template.php)
<?php
/**
* Display the stock level of products
*/
function phptemplate_uc_product_add_to_cart( $node ) {
$stocklevel = uc_stock_level($node->model);
return( '' . t('Only ') . $stocklevel . t(' left in stock') . '' ) . theme_uc_product_add_to_cart($node);
}
?>This certainly returns the correct information but I only want to associate/display it with a particular type of product. As the Product content type is generic I'm guessing I somehow need to modify this code so that it includes some form of category restriction (I have a taxonomy term for Limited Edition)...OR am I better off taking a completely different approach?
Any pointers would be greatly appreciated. Many thanks 

)