Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Upgrade from 2.3.3 to 2.3.3.1 tax function stop working


sagitario

Recommended Posts

Hi,

 

After I update v2.3.3 to v2.3.3.1 the tax function stop working. When creating or editing products the tax NET and GROSS have the same value.

 

To continue to work I can't change the follow code in admin/includes/functions/general.php on tep_get_tax_rate_value():

 

function tep_get_tax_rate_value($class_id) {
$tax_query = tep_db_query("select SUM(tax_rate) as tax_rate from " . TABLE_TAX_RATES . " where tax_class_id = '" . (int)$class_id . "' group by tax_priority");
if (tep_db_num_rows($tax_query)) {
$tax_multiplier = 0;
while ($tax = tep_db_fetch_array($tax_query)) {
 $tax_multiplier += $tax['tax_rate'];
}
return $tax_multiplier;
} else {
return 0;
}
}

 

to

 

function tep_get_tax_rate_value($class_id) {
return tep_get_tax_rate($class_id, -1, -1);
}

 

Can someone tell me what is wrong?

 

Thanks in advance.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...