View Single Post
  #36  
Old 12-22-2003, 01:39 PM
 
jordan0 jordan0 is offline
 

Advanced Member
  
Join Date: Oct 2003
Location: San Francisco, CA
Posts: 77
 

Default

THANK YOU for that information! I have been searching around for a way to add fields to the inventory update function for a while now.
However, I'm not sure if it addresses my problem above.
The brand information is already in the xcart database Б─⌠ I put it there using a phpMyAdmin-style solution. I found this bit of code at the end of search.php which came from Tuner's mod.
Code:
$brands = func_query("select brand from $sql_tbl[products] where brand <> '' GROUP BY brand"); $smarty->assign("brands",$brands);
I am guessing that this creates the list of brands for the pull-down menu in my advanced_search.tpl. In the advanced_search.tpl I have the following code to create the menu:
Code:
<select name=search_brand> <option value="">None</option> {section name=i loop=$brands} <option value='{$brands[i].0}'>{$brands[i].0}</option> {/section} </select>
However, this doesn't seem to be working. I have 3 different brands throughout my entire store, and the menu contains only 3 blank choices in addition to "None". Somehow the {section} is getting the right number of brands, but not the actual values. What am I missing?
Thanks
-Jordan
__________________
Jordan Sitkin
http://www.kitkraft.biz
X-Cart 4.0.18 [unix]
Reply With Quote