I guess x-config does or might do what i want it to do but it looks to complicated. I figured out a way to do this through the extra fields module.
Extra Fields gives you a text box for field name and one for default value. I want to change the default value into a drop down menu and then under where it says Add extra field i want to add, Add extra value, There will be a dropdown menu to choose the field name you want to add to and then a text box for the value.
Is there a way that I can post the same field name multiple times with different values and then do a query for the field name and gather all the values into a combo box?
Here's what I got up to but I wouldn't know how to word it.
Code:
#
# Get extra_fields
#
$extra_fields = func_query("select * from $sql_tbl[extra_fields] where 1 $provider_condition order by fieldid");
$smarty->assign("extra_fields", $extra_fields);
$smarty->assign("main","extra_fields");
@include $xcart_dir."/modules/gold_display.php";
$smarty->display("provider/home.tpl");
it needs to be something like
SELECT * FROM extra_fields GROUP BY fieldname WHERE 1 $provider_condition ORDER BY fieldid
i dont know, help??
Thanks,
Gabe