Quote:
Originally Posted by tmx
Ok correct me if I'm wrong but could you add that into the array that products.php already creates, that is if the array doesn't already have it, and then in the tpl file use it by something like { $products[product].unit } ?
|
That would be easy to do, if the $products[product].unit variable was actually what I wanted to display. In that form, it would just be a code (ie, ST4, ST12). I need to use the $products[product].unit variable to query another table to translate the unit code to the unit name.
I guess what this may come down to is just finding a different way of storing the unit information in the db, but I'm once again having to do things differently just to cater to Smarty. Ugh.