Closed (won't fix)
Project:
Ubercart
Version:
6.x-2.x-dev
Component:
Documentation
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
8 May 2010 at 12:18 UTC
Updated:
24 Sep 2011 at 22:33 UTC
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
Comment #1
hanoiiWhat 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.
Comment #2
xxm commentedI 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?
Comment #3
hanoiiProbably 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.