Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

tax default


Guest

Recommended Posts

Posted

when you go to add a new product, --none-- is always selected for tax class.

how can i make my tax selection be default?

Posted

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);

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...