Guest Posted September 19, 2005 Posted September 19, 2005 when you go to add a new product, --none-- is always selected for tax class. how can i make my tax selection be default?
Guest Posted September 19, 2005 Posted September 19, 2005 in admin\categories.php locate this code $tax_class_array = array(array('id' => '0', 'text' => TEXT_NONE)); $tax_class_query = tep_db_query("select tax_class_id, tax_class_title from " . TABLE_TAX_CLASS . " order by tax_class_title"); while ($tax_class = tep_db_fetch_array($tax_class_query)) { $tax_class_array[] = array('id' => $tax_class['tax_class_id'], 'text' => $tax_class['tax_class_title']); } Change it to this $tax_class_array = array(); $tax_class_query = tep_db_query("select tax_class_id, tax_class_title from " . TABLE_TAX_CLASS . " order by tax_class_title"); while ($tax_class = tep_db_fetch_array($tax_class_query)) { $tax_class_array[] = array('id' => $tax_class['tax_class_id'], 'text' => $tax_class['tax_class_title']); } $tax_class_array[] = array('id' => '0', 'text' => TEXT_NONE);
Recommended Posts
Archived
This topic is now archived and is closed to further replies.