Dear:
Many thanks for all help. I have zones.php almost working.
Now, the module is capable to find the destination country, calculate the weight and calculate the shipping.
BUT, still cant manage the domestic shipment ( based in zones).
I only split 3 zones:
zone 1: My city ( i go with the box)
zone 2: Near to my city (i go with the box but at more cost)
zone 3: Out of my radious (normally pay on destination)
the 3 zones have flat cost under the own zone.
As i can find into the zones.php the search is only on destination country but i cant split the same country.
I try to add the internally defined zones to the module taking:
$order->delivery['zone_id']
But i see that when is a registered customer no zone to edit.
Any help will be appreciated?
Contribution with software: i found that the zones have not name. So i modify zones.php to add a name to each zone. For example: zone 1 name = "FedEx to Europe"
Code:
$db->Execute("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) values ('Zone " . $i ." name', 'MODULE_SHIPPING_ZONES_NAMES_" . $i ."', 'Example Shipper company', 'text to show to the customer about zone " . $i . ".<br />Example: Mail to Africa.', '6', '0', 'zen_cfg_textarea(', now())");
I cannot attach the zones.php but i can contribute with them.
Bookmarks