I have got it. It works correctly thanks to your consultation.
The solution is here:
open file include/modules/order_total/ot_cod_fee.php
find the line with code:
if (substr_count($_SESSION['shipping']['id'], 'table') !=0) $cod_zones = split("[:,]", MODULE_ORDER_TOTAL_COD_FEE_TABLE);
and under the code insert this code:
if (substr_count($_SESSION['shipping']['id'], 'table2') !=0) $cod_zones = split("[:,]", MODULE_ORDER_TOTAL_COD_FEE_TABLE2);
then find the first occurence of this code
'MODULE_ORDER_TOTAL_COD_FEE_TABLE',
and behalf this code and infront of that code
'MODULE_ORDER_TOTAL_COD_FEE_UPS',
insert this code
'MODULE_ORDER_TOTAL_COD_FEE_TABLE2',
then find this line:
$db->Execute("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('COD Fee for TABLE', 'MODULE_ORDER_TOTAL_COD_FEE_TABLE', 'AT:3.00,DE:3.58,00:9.99', 'TABLE: <Country code>:<COD price>, .... 00 as country code applies for all countries. If country code is 00, it must be the last statement. If no 00:9.99 appears, COD shipping in foreign countries is not calculated (not possible)', '6', '5', now())");
and under this line insert this code:
$db->Execute("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('COD Fee for TABLE2', 'MODULE_ORDER_TOTAL_COD_FEE_TABLE2', 'AT:3.00,DE:3.58,00:9.99', 'TABLE: <Country code>:<COD price>, .... 00 as country code applies for all countries. If country code is 00, it must be the last statement. If no 00:9.99 appears, COD shipping in foreign countries is not calculated (not possible)', '6', '6', now())");
After this we have to change +1 the second value between the code …..(not possible)', and , now())"); in all lines under our inserted line e.g..:
…..(not possible)', '6', '7', now())"); change to ….. (not possible)', '6', '8', now())");
…..(not possible)', '6', '8', now())"); change to….. (not possible)', '6', '9', now())");
…..(not possible)', '6', '9', now())"); change to….. (not possible)', '6', '10', now())");
etc.
then we have to run this sql code in admin:
INSERT INTO `configuration` (`configuration_id`, `configuration_title`, `configuration_key`, `configuration_value`, `configuration_description`, `configuration_group_id`, `sort_order`, `last_modified`, `date_added`, `use_function`, `set_function`) VALUES (999, 'COD Fee for TABLE2', 'MODULE_ORDER_TOTAL_COD_FEE_TABLE2', 'CZ:56', 'TABLE2: <Country code>:<COD price>, .... 00 as country code applies for all countries. If country code is 00, it must be the last statement. If no 00:9.99 appears, COD shipping in foreign countries is not calculated (not possible)', 6, 6, NULL, '2007-03-06 20:50:29', NULL, NULL);
.... and that is all :thumbsup:
It tooks me one week :lamo: