non so se esiste un altro metodo direttamente dal pannello di amministrazione ma credo di no
PER FARE QUELLO CHE VUOI TU
devi editare a mano IL FILE
CATALOG/INCLUDES/MODULES/SHIPPING/POSTEPACCOCELERE1.PHP
DEVI CAMBIARE
$this->num_zones = 1; DEVE DIVENTARE $this->num_zones = 3;
DOPODICHE DEVI DEFINIRE I COSTI PER LE TRE ZONE
NELLA FUNCTION INSTALL.
TI CONSIGLIO DI FARE RIFERIMENTO AL FILE POSTEPRIORITARIA.PHP CHE GIA' DEFINISCE 3 ZONE E CAPIRE COME E' FATTA LA FUNCTION INSTALL
POI DOVRESTI DISINSTALLARE E REINSTALLARE IL MODULO PACCOCELERE1
FUNCTION INSTALL POSTAPRIORITARIA:
function install() {
tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) VALUES ('Enable PostaPrioritaria Method', 'MODULE_SHIPPING_POSTEPOSTAPRIORITARIA_STATUS', 'True', 'Do you want to offer zone rate shipping?', '6', '0', 'tep_cfg_select_option(array(\'True\', \'False\'), ', now())");
tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, use_function, set_function, date_added) values ('Tax Class', 'MODULE_SHIPPING_POSTEPOSTAPRIORITARIA_TAX_CLASS', '0', 'Use the following tax class on the shipping fee.', '6', '0', 'tep_get_tax_class_title', 'tep_cfg_pull_down_tax_classes(', now())");
tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Sort Order', 'MODULE_SHIPPING_POSTEPOSTAPRIORITARIA_SORT_ORDER', '0', 'Sort order of display.', '6', '0', now())");
for ($i = 1; $i <= $this->num_zones; $i++) {
$default_countries = '';
if ($i == 1) {
//europa (zona 1)
$default_countries = 'FX,ES,GI,MC,BG,CH,HU,PL,CZ,VA,IT,AL,RU,FO,LT,AT,SI,GE,MT,BE,SJ,GR,NL,HR,UA,IS,PT,DK,YU,LV,AD,SM,FI,LU,AZ,GS,DE,MD,BA,SE,GL,NO,CY,GB,IE,RO,EE,LI,AM,SK,FR,MK,BY';
$shipping_table = '0.02:0.62,0.1:1.24,0.349:1.86,1:4.96,2:8.06';
}
if ($i == 2) {
//oceania (zona 3)
$default_countries = 'NZ,AU,HM,MP,FJ,PN,KI,TK,NR,VU,AS,NU,CC,PW,PF,WS,MH,TO,NC,WF,AQ,NF,CK,PG,GU,SB,FM,TV';
$shipping_table = '0.02:0.77,0.1:1.81,0.349:4.39,1:10.33,2:20.66';
}
if ($i == 3) {
//altri paesi (zona 2)
$default_countries = '*';
$shipping_table = '0.02:0.77,0.1:1.55,0.349:4.13,1:8.26,2:16.53';
}
tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Zone " . $i ." Countries', 'MODULE_SHIPPING_POSTEPOSTAPRIORITARIA_COUNTRIES_" . $i ."', '" . $default_countries . "', 'Comma separated list of two character ISO country codes that are part of Zone " . $i . ".', '6', '0', now())");
tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Zone " . $i ." Shipping Table', 'MODULE_SHIPPING_POSTEPOSTAPRIORITARIA_COST_" . $i ."', '" . $shipping_table . "', 'Shipping rates to Zone " . $i . " destinations based on a group of maximum order weights. Example: 3:8.50,7:10.50,... Weights less than or equal to 3 would cost 8.50 for Zone " . $i . " destinations.', '6', '0', now())");
tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Zone " . $i ." Handling Fee', 'MODULE_SHIPPING_POSTEPOSTAPRIORITARIA_HANDLING_" . $i."', '0', 'Handling Fee for this shipping zone', '6', '0', now())");
}
}
iN BOCCA AL LUPO