Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Shipping Zones


Guest

Recommended Posts

hm i probably sound stupid, but ive been trying to figure this out for hours.

 

ive installed the shipping file that allows for WORLD (rest of the world) but im having bad trouble gettting things right.

 

i want 3 zones (so ive edited shipping.php) and made

 

$this->num_zones = 3;

 

and under that is :

 

// class methods
   function quote($method = '') {
     global $order, $shipping_weight;

     $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;
       }
// rest of the world
       if ($countries_table == 'WORLD') {
         $dest_zone = $i;
         break;
       }
// rest of the world eof
     }

 

when im in the admin panel, i expected it to let me edit more than one zone, but theres only 1 zone i can edit.

 

help, how do i do this? :(

Link to comment
Share on other sites

sok found the answer on google. didnt realise you have to remove and reinstall the shipping module to pick up the extra zones.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...