variable passing
-tmx- described the exact process that I did. I had the same scenario where I added a new "leadtime" field to the products table. All that went into that field was a CODE that was translated from a new table ("leadtimes"). In the product.php code, I pulled the contents of the leadtimes table into an array. In the product.tpl, I then just referenced the matching entry in the array to the code in the product. That way I could change the "leadtimes" table at any time to change custom leadtimes based upon product characteristics without having to do a mass change in to all entries in the products table.
Let me know if you want an example of either the php or tpl files.
__________________
-Derrick
FreeRangeMinds, LLC
|