Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Tax not calculated if delivery address changed.


pcdreno

Recommended Posts

Posted

I have a strange issue. If a user changes/updates their address at the checkout_confirmation.php stage, tax is no longer added onto the sale, even if the new state is supposed to charge tax. I'm using the country-state selector contrib along with the fast easy checkout contrib. Has anyone else experienced this problem? Any suggestions on what might be causing this? Thanks in advance!

Posted

Well, I managed to figure it out. Checkout_new_address.php was not using the same state selector drop down code as create_account1.php, thus the state was using the full name, as opposed to the abbreviated version. For anyone else using the fast easy checkout contrib, be sure you replace the sate selector drop down with this:

 

// +Country-State Selector

$zones_array = array();

$zones_array[] = array('id' => 0, 'text' => 'Please select...');

$zones_query = tep_db_query("select zone_id, zone_name, zone_code from " . TABLE_ZONES . " where zone_country_id = " .

(int)$country . " order by zone_name");

while ($zones_values = tep_db_fetch_array($zones_query)) {

$zones_array[] = array('id' => $zones_values['zone_id'], 'text' => $zones_values['zone_name'] . ' (' . $zones_values['zone_code'] . ')');

}

if (count($zones_array) > 1) {

echo tep_draw_pull_down_menu('zone_id', $zones_array);

} else {

echo tep_draw_input_field('state');

}

// -Country-State Selector

Archived

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

×
×
  • Create New...