akkinmore Posted November 10, 2005 Share Posted November 10, 2005 Here is one little problem. I installed the zone shipping module and set the zones into 3 different shipping zones with countries and shipping rate. I noticed a little problem when I log-in as a member pressed the checkout button and went into the checkout shipping page. The "No shipping available to the selected country" appear instead of the shipping rate. When I pressed the refresh button on the IE browser, everything was back to normal and the shipping rate was correctly shown. Anyone knows what is the cause of the problem. Any help would be greatly appreciated. I suspect the problem is coming from here: category/includes/modules/shipping/zones.php function quote($method = '') { global $order, $shipping_weight, $shipping_num_boxes; $dest_country = $order->delivery['country']['iso_code_2']; $dest_zone = 0; $error = false; for ($i=1; $i<=$this->num_zones; $i++) { $countries_table = constant('MODULE_SHIPPING_ZONES_COUNTRIES_' . $i); $country_zones = split("[,]", $countries_table); if (in_array($dest_country, $country_zones)) { $dest_zone = $i; break; } } the $dest_zone is getting zero the first pass to the checkout_shipping.php. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.