How to get the from a views-xyz.tpl.php?

I would like to use the info about the stock to make a change on the produktimage, for example to put a red border on or to use an alpha filter.

I tried to geht the status with variable_get('uc_product_stock_sku', $default) or to geht $stockinfo['stock'] but I don't geht the right value.

Could you tell me how I could use stockinfo for the stock picture?

Comments

hanoii’s picture

How to get the from a views-xyz.tpl.php?

What do you mean with this?

You should be able to use some of the internal variables to get the stock of a product, but I am not sure I follow what you are trying to do.

xxm’s picture

I don't know how to use the stock info in a views-xyz.tpl.php to change some css classes.
How I could use ''uc_product_stock_sku' in a template file?

hanoii’s picture

Project: Ubercart Out of stock Notification » Ubercart
Version: 6.x-1.4 » 6.x-2.x-dev
Status: Active » Closed (won't fix)

Probably a bit old to get back, but this should have been placed on the Uberart queue.

Closing it for now not to bloat an already big issue queue.