Gradius Posted May 21, 2003 Posted May 21, 2003 I'm trying to use this module: http://www.oscommerce.com/community/contri...ons,1059/page,2 http://oscommerce.sunsite.dk/contributions/sedex.zip But don't work at all on newer versions like 2.2MS1 and 2.2CVS. Does anyone here can "upgrade" (or migrate) the code to 2.2MS1 or even 2.2CVS please? I'm sure do not need a lot of modifications in order to work on newer versions. Please, I need that URGENT! Thanks, Gradius
Guest Posted January 23, 2004 Posted January 23, 2004 Hello Fernando, I imagine you speak portuguese, but I will keep english here in respect to other forum members. I discover right now the same problem you had and I trying to solve it, contacting the module developer ou even to upgrade the module. Nevertheless, I would like to hear from you if you already had any success on it, so it could save me much time. Thanks for a quick response. Ricardo.
souzadavi Posted March 4, 2004 Posted March 4, 2004 Hello guys, i?m working with the sedex shipping... if we work, we can fixe, i did a few change and start working but not all.... so the code is below... now i want tho know what this mean. if ( ($GLOBALS['shipping_quote_all'] == '1') || ($GLOBALS['shipping_quote_sedex'] == '1') ) { this source is below thankls alot... <?php /* $Id: sedex.php,v 1.1 2002/06/01 12:10:17 jcm Exp $ The Exchange Project - Community Made Shopping! http://www.theexchangeproject.org Copyright © 2000,2001 The Exchange Project Released under the GNU General Public License */ class sedex { var $code, $title, $description, $icon, $enabled; // class constructor function sedex() { global $order; $this->code = 'sedex'; $this->title = MODULE_SHIPPING_SEDEX_TEXT_TITLE; $this->description = MODULE_SHIPPING_SEDEX_TEXT_DESCRIPTION; $this->sort_order = MODULE_SHIPPING_SEDEX_SORT_ORDER; $this->icon = ''; $this->tax_class = MODULE_SHIPPING_SEDEX_TAX_CLASS; $this->enabled = ((MODULE_SHIPPING_SEDEX_STATUS == 'True') ? true : false); if ( ($this->enabled == true) && ((int)MODULE_SHIPPING_SEDEX_ZONE > 0) ) { $check_flag = false; $check_query = tep_db_query("select zone_id from " . TABLE_ZONES_TO_GEO_ZONES . " where geo_zone_id = '" . MODULE_SHIPPING_SEDEX_ZONE . "' and zone_country_id = '" . $order->delivery['country']['id'] . "' order by zone_id"); while ($check = tep_db_fetch_array($check_query)) { if ($check['zone_id'] < 1) { $check_flag = true; break; } elseif ($check['zone_id'] == $order->delivery['zone_id']) { $check_flag = true; break; } } if ($check_flag == false) { $this->enabled = false; } } } // class methods function selection() { $selection_string = 'teste'; $selection_string = '<table border="0" cellspacing="0" cellpadding="0" width="100%">' . "\n" . ' <tr>' . "\n" . ' <td class="main"> ' . (($this->icon) ? tep_image($this->icon, $this->title) : '') . ' ' . MODULE_SHIPPING_SEDEX_TEXT_TITLE . ' </td>' . "\n" . ' <td align="right" class="main"> ' . tep_draw_checkbox_field('shipping_quote_sedex', '1', true) . ' </td>' . "\n" . ' </tr>' . "\n" . '</table>' . "\n"; return $selection_string; } function quote($method = '') { global $cart, $shipping_quoted, $address_values, $shipping_weight, $shipping_sedex_cost, $shipping_sedex_method; if ( ($GLOBALS['shipping_quote_all'] == '1') || ($GLOBALS['shipping_quote_sedex'] == '1') ) { $shipping_quoted = 'sedex'; $zone1 = array('153'); $zone2 = array('142', '145', '147', '152'); $zone3 = array('137', '141'); $zone4 = array('149'); $zone5 = array('138'); $zone6 = array('134', '140', '155'); $zone7 = array('131', '154'); $zone8 = array('144', '146', '150', '156'); $zone9 = array('130', '132', '133', '135', '139', '143', '148'); $zone10 = array('151'); $zone12 = array('168', '172', '174', '179'); $zone13 = array('136','163', '167'); $zone14 = array('176'); $zone15 = array('164'); $zone16 = array('161', '166', '181'); $zone17 = array('158', '180'); $zone18 = array('170', '171', '173', '177'); $zone19 = array('157', '159', '160', '162', '165', '169', '175'); $zone20 = array('178'); if (in_array($address_values['zone_id'], $zone1)) { $sedex_cost = constant('MODULE_SHIPPING_SEDEX_zone1'); } if (in_array($address_values['zone_id'], $zone2)) { $sedex_cost = constant('MODULE_SHIPPING_SEDEX_zone2'); } if (in_array($address_values['zone_id'], $zone3)) { $sedex_cost = constant('MODULE_SHIPPING_SEDEX_zone3'); } if (in_array($address_values['zone_id'], $zone4)) { $sedex_cost = constant('MODULE_SHIPPING_SEDEX_zone4'); } if (in_array($address_values['zone_id'], $zone5)) { $sedex_cost = constant('MODULE_SHIPPING_SEDEX_zone5'); } if (in_array($address_values['zone_id'], $zone6)) { $sedex_cost = constant('MODULE_SHIPPING_SEDEX_zone6'); } if (in_array($address_values['zone_id'], $zone7)) { $sedex_cost = constant('MODULE_SHIPPING_SEDEX_zone7'); } if (in_array($address_values['zone_id'], $zone8)) { $sedex_cost = constant('MODULE_SHIPPING_SEDEX_zone8'); } if (in_array($address_values['zone_id'], $zone9)) { $sedex_cost = constant('MODULE_SHIPPING_SEDEX_zone9'); } if (in_array($address_values['zone_id'], $zone10)) { $sedex_cost = constant('MODULE_SHIPPING_SEDEX_zone10'); } if (in_array($address_values['zone_id'], $zone12)) { $sedex_cost = constant('MODULE_SHIPPING_SEDEX_zone12'); } if (in_array($address_values['zone_id'], $zone13)) { $sedex_cost = constant('MODULE_SHIPPING_SEDEX_zone13'); } if (in_array($address_values['zone_id'], $zone14)) { $sedex_cost = constant('MODULE_SHIPPING_SEDEX_zone14'); } if (in_array($address_values['zone_id'], $zone15)) { $sedex_cost = constant('MODULE_SHIPPING_SEDEX_zone15'); } if (in_array($address_values['zone_id'], $zone16)) { $sedex_cost = constant('MODULE_SHIPPING_SEDEX_zone16'); } if (in_array($address_values['zone_id'], $zone17)) { $sedex_cost = constant('MODULE_SHIPPING_SEDEX_zone17'); } if (in_array($address_values['zone_id'], $zone18)) { $sedex_cost = constant('MODULE_SHIPPING_SEDEX_zone18'); } if (in_array($address_values['zone_id'], $zone19)) { $sedex_cost = constant('MODULE_SHIPPING_SEDEX_zone19'); } if (in_array($address_values['zone_id'], $zone20)) { $sedex_cost = constant('MODULE_SHIPPING_SEDEX_zone20'); } $sedex_table = split("[:,]" , $sedex_cost); for ($i = 0; $i < count($sedex_table); $i+=2) { if ($shipping_weight <= $sedex_table[$i]) { $shipping = $sedex_table[$i+1]; $shipping_sedex_method = $shipping_weight .' '. MODULE_SHIPPING_SEDEX_TEXT_UNITS . ' (' . MODULE_SHIPPING_SEDEX_TEXT_WAY . ')'; break; } } $shipping_sedex_cost = ($shipping + MODULE_SHIPPING_SEDEX_HANDLING); } /* // aqui imprimi os cvalores pre definido $this->quotes = array('id' => $this->code, 'module' => MODULE_SHIPPING_SEDEX_TEXT_TITLE, 'methods' => array(array('id' => $this->code, 'title' => MODULE_SHIPPING_SEDEX_TEXT_DESCRIPTION, 'cost' => $shipping_sedex_cost))); if ($this->tax_class > 0) { $this->quotes['tax'] = tep_get_tax_rate($this->tax_class, $order->delivery['country']['id'], $order->delivery['zone_id']); } if (tep_not_null($this->icon)) $this->quotes['icon'] = tep_image($this->icon, $this->title); return $this->quotes; */ } function cheapest() { global $shipping_count, $shipping_cheapest, $shipping_cheapest_cost, $shipping_sedex_cost; if ( ($GLOBALS['shipping_quote_all'] == '1') || ($GLOBALS['shipping_quote_sedex'] == '1') ) { if ($shipping_count == 0) { $shipping_cheapest = 'sedex'; $shipping_cheapest_cost = $shipping_sedex_cost; } else { if ($shipping_sedex_cost < $shipping_cheapest_cost) { $shipping_cheapest = 'sedex'; $shipping_cheapest_cost = $shipping_sedex_cost; } } $shipping_count++; } } function display() { global $HTTP_GET_VARS, $currencies, $shipping_cheapest, $shipping_sedex_method, $shipping_sedex_cost, $shipping_selected; // set a global for the radio field (auto select cheapest shipping method) if (!$HTTP_GET_VARS['shipping_selected']) $shipping_selected = $shipping_cheapest; if ( ($GLOBALS['shipping_quote_all'] == '1') || ($GLOBALS['shipping_quote_sedex'] == '1') ) { $display_string = '<table border="0" width="100%" cellspacing="0" cellpadding="0">' . "\n" . ' <tr>' . "\n" . ' <td class="main"> ' . (($this->icon) ? tep_image($this->icon, $this->title) : '') . ' ' . MODULE_SHIPPING_SEDEX_TEXT_TITLE . ' <small><i>(' . $shipping_sedex_method . ')</i></small> </td>' . "\n" . ' <td align="right" class="main"> ' . $currencies->format($shipping_sedex_cost); if (tep_count_shipping_modules() > 1) { $display_string .= ' ' . tep_draw_radio_field('shipping_selected', 'sedex') . tep_draw_hidden_field('shipping_sedex_cost', $shipping_sedex_cost) . tep_draw_hidden_field('shipping_sedex_method', $shipping_sedex_method) . ' </td>' . "\n"; } else { $display_string .= ' ' . tep_draw_hidden_field('shipping_selected', 'sedex') . tep_draw_hidden_field('shipping_sedex_cost', $shipping_sedex_cost) . tep_draw_hidden_field('shipping_sedex_method', $shipping_sedex_method) . ' </td>' . "\n"; } $display_string .= ' </tr>' . "\n" . '</table>' . "\n"; } return $display_string; } function confirm() { global $HTTP_POST_VARS, $shipping_cost, $shipping_method; if ($HTTP_POST_VARS['shipping_selected'] == 'sedex') { $shipping_cost = $HTTP_POST_VARS['shipping_sedex_cost']; $shipping_method = $HTTP_POST_VARS['shipping_sedex_method']; } } function check() { if (!isset($this->_check)) { $check_query = tep_db_query("select configuration_value from " . TABLE_CONFIGURATION . " where configuration_key = 'MODULE_SHIPPING_SEDEX_STATUS'"); $this->_check = tep_db_num_rows($check_query); } return $this->_check; } 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 Item Shipping', 'MODULE_SHIPPING_SEDEX_STATUS', 'True', 'Do you want to offer per item 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_SEDEX_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, use_function, set_function, date_added) values ('Shipping Zone', 'MODULE_SHIPPING_SEDEX_ZONE', '0', 'If a zone is selected, only enable this shipping method for that zone.', '6', '0', 'tep_get_zone_class_title', 'tep_cfg_pull_down_zone_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_SEDEX_SORT_ORDER', '0', 'Sort order of display.', '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 ('SP', 'MODULE_SHIPPING_SEDEX_zone1', '1:8.1,2:9.2,3:10.3,4:10.8,5:11.9,6:12.9,7:14,8:15.1,9:16.1,10:17.2,11:18.3,1 2:19.3,13:20.4,14:21.5,15:22.5,16:23.6,17:24.7,18:25.7,19:26.8,20:27.9,21:28.9,22 :30,23:31.1,24:32.1,25:33.2,26:34.3,27:35.3,28:36.4,29:37.5,30:38.5', 'Shipping based on weight of products. Example: 1:3.50,2:5.50,etc.', '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 ('MG, PR, RJ, SC', 'MODULE_SHIPPING_SEDEX_zone2', '1:17.2,2:22.1,3:27,4:29.5,5:34.4,6:39.4,7:44.3,8:49.3,9:54.2,10:59.1,11:64.1 ,12:69,13:74,14:78.9,15:83.8,16:88.8,17:93.7,18:98.6,19:103.6,20:108.5,21:113.5,2 2:118.4,23:123.3,24:128.3,25:133.2,26:138.1,27:143.1,28:148,29:153,30:157.9', 'Shipping based on weight of products. Example: 1:3.50,2:5.50,etc.', '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 ('DF, ES, MS', 'MODULE_SHIPPING_SEDEX_zone3', '1:19.1,2:24.8,3:30.5,4:33.3,5:39,6:44.7,7:50.4,8:56.1,9:61.8,10:67.5,11:73.2 ,12:78.9,13:84.6,14:90.3,15:96,16:101.7,17:107.4,18:113.1,19:118.8,20:124.5,21:13 0.2,22:135.9,23:141.6,24:147.3,25:153,26:158.7,27:164.4,28:170.1,29:175.8,30:181. 5', 'Shipping based on weight of products. Example: 1:3.50,2:5.50,etc.', '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 ('RS', 'MODULE_SHIPPING_SEDEX_zone4', '1:20.1,2:26.3,3:32.3,4:35.4,5:41.4,6:47.5,7:53.5,8:59.6,9:65.6,10:71.7,11:77 .7,12:83.8,13:89.8,14:95.9,15:101.9,16:108,17:114,18:120.1,19:126.1,20:132.2,21:1 38.2,22:144.3,23:150.3,24:156.4,25:162.4,26:168.5,27:174.5,28:180.6,29:186.6,30:1 92.7', 'Shipping based on weight of products. Example: 1:3.50,2:5.50,etc.', '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 ('GO', 'MODULE_SHIPPING_SEDEX_zone5', '1:23,2:30,3:37,4:40.5,5:47.4,6:54.4,7:61.4,8:68.4,9:75.3,10:82.3,11:89.3,12: 96.3,13:103.3,14:110.2,15:117.2,16:124.2,17:131.2,18:138.1,19:145.1,20:152.1,21:1 59.1,22:166,23:173,24:180,25:187,26:194,27:200.9,28:207.9,29:214.9,30:221.9', 'Shipping based on weight of products. Example: 1:3.50,2:5.50,etc.', '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 ('BA, MT TO', 'MODULE_SHIPPING_SEDEX_zone6', '1:23.7,2:31,3:38,4:42,5:49.4,6:56.7,7:64,8:71.3,9:78.7,10:86,11:93.3,12:100. 6,13:100.8,14:115.8,15:122.6,16:129.9,17:137.3,18:144.6,19:151.9,20:159.2,21:166. 6,22:173.9,23:181.2,24:188.5,25:195.9,26:203.2,27:210.5,28:217.8,29:225.2,30:232. 5', 'Shipping based on weight of products. Example: 1:3.50,2:5.50,etc.', '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 ('AL, SE', 'MODULE_SHIPPING_SEDEX_zone7', '1:26,2:34.3,3:42.3,4:46.4,5:54.5,6:62.7,7:70.8,8:79,9:87.1,10:95.2,11:103.4, 12:111.5,13:119.7,14:127.8,15:135.9,16:144.2,17:152.2,18:160.3,19:168.5,20:176.6, 21:184.8,22:173.9,23:181.2,24:209.2,25:217.3,26:225.5,27:233.6,28:241.7,29:249.9, 30:258', 'Shipping based on weight of products. Example: 1:3.50,2:5.50,etc.', '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 ('PB, PE, PI, RO', 'MODULE_SHIPPING_SEDEX_zone8', '1:29.4,2:39,3:48.5,4:53.3,5:62.8,6:72.3,7:81.9,8:91.4,9:100.9,10:110.5,11:12 0,12:129.5,13:139.1,14:148.6,15:158.1,16:167.7,17:177.2,18:186.7,19:196.3,20:205. 8,21:215.3,22:224.9,23:234.4,24:244,25:253.5,26:263,27:272.6,28:282.1,29:291.6,30 :301.2', 'Shipping based on weight of products. Example: 1:3.50,2:5.50,etc.', '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 ('AC, AP, AM, CE, MA, PA, RN', 'MODULE_SHIPPING_SEDEX_zone9', '1:32.6,2:43.3,3:54,4:59.3,5:70,6:80.7,7:91.4,8:102.1,9:112.8,10:123.5,11:134 .2,12:144.9,13:155.6,14:166.3,15:177,16:187.7,17:198.4,18:209.4,19:219.8,20:230.5 ,21:241.2,22:251.9,23:262.6,24:273.3,25:284,26:294.7,27:305.3,28:316,29:326.7,30: 337.4', 'Shipping based on weight of products. Example: 1:3.50,2:5.50,etc.', '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 ('RR', 'MODULE_SHIPPING_SEDEX_zone10', '1:36.6,2:48.5,3:60.3,4:66.3,5:78.1,6:90,7:101.9,8:113.7,9:125.6,10:137.4,11: 149.3,12:161.2,13:173,14:184.9,15:196.7,16:208.6,17:220.5,18:232.3,19:244.2,20:25 6,21:267.9,22:279.8,23:291.6,24:303.5,25:315.3,26:327.2,27:339.1,28:350.9,29:362. 8,30:374.7', 'Shipping based on weight of products. Example: 1:3.50,2:5.50,etc.', '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 ('Capitais: MG, PR, RJ, SC', 'MODULE_SHIPPING_SEDEX_zone12', '1:11.2,2:13.8,3:16.4,4:17.7,5:20.3,6:22.9,7:25.5,8:28.1,9:30.7,10:33.3,11:35 .9,12:38.5,13:41,14:31.6,15:46.2,16:48.8,17:51.4,18:54,19:56.6,20:59.2,21:61.8,22 :64.4,23:67,24:69.6,25:72.2,26:74.8,27:77.3,28:79.9,29:82.5,30:85.1', 'Shipping based on weight of products. Example: 1:3.50,2:5.50,etc.', '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 ('Capitais: DF, ES, MS', 'MODULE_SHIPPING_SEDEX_zone13', '1:14.7,2:18.7,3:22.8,4:24.8,5:28.9,6:33,7:37,8:41.1,9:45.2,10:49.2,11:53.3,1 2:57.4,13:61.5,14:65.5,15:69.6,16:73.7,17:77.7,18:81.8,19:85.9,20:89.9,21:94,22:9 8.1,23:102.2,24:106.2,25:110.3,26:114.4,27:118.4,28:122.5,29:126.6,30:130.6', 'Shipping based on weight of products. Example: 1:3.50,2:5.50,etc.', '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 ('Capital RS', 'MODULE_SHIPPING_SEDEX_zone14', '1:15.6,2:19.9,3:24.2,4:26.4,5:30.7,6:35,7:39.3,8:43.6,9:48,10:52.3,11:56.6,1 2:60.9,13:65.2,14:69.6,15:73.9,16:78.2,17:82.5,18:86.9,19:91.2,20:95.5,21:99.8,22 :104.1,23:108.5,24:112.8,25:117.1,26:121.4,27:125.7,28:130.1,29:134.4,30:138.7', 'Shipping based on weight of products. Example: 1:3.50,2:5.50,etc.', '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 ('Capital GO', 'MODULE_SHIPPING_SEDEX_zone15', '1:17.8,2:22.9,3:28,4:30.6,5:35.7,6:40.8,7:45.9,8:51,9:56.2,10:61.3,11:66.4,1 2:71.5,13:76.6,14:81.7,15:86.9,16:92,17:97.1,18:102.2,19:107.3,20:112.4,21:117.6, 22:122.7,23:127.8,24:132.9,25:138,26:143.1,27:148.3,28:153.4,29:158.5,30:163.6', 'Shipping based on weight of products. Example: 1:3.50,2:5.50,etc.', '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 ('Capitais: BA, MT TO', 'MODULE_SHIPPING_SEDEX_zone16', '1:19.5,2:25.2,3:30.9,4:33.8,5:39.5,6:45.2,7:50.9,8:56.6,9:62.3,10:68,11:73.7 ,12:79.4,13:85.1,14:90.8,15:96.5,16:102.2,17:107.8,18:113.5,19:119.2,20:124.9,21: 130.6,22:136.3,23:142,24:147.7,25:153.4,26:159.1,27:164.8,28:170.5,29:176.2,30:18 1.9', 'Shipping based on weight of products. Example: 1:3.50,2:5.50,etc.', '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 ('Capitais: AL, SE', 'MODULE_SHIPPING_SEDEX_zone17', '1:21.7,2:28.3,3:34.8,4:38,5:44.5,6:51,7:57.6,8:64.1,9:70.6,10:77.1,11:83.6,1 2:90.1,13:96.6,14:103.1,15:109.7,16:116.2,17:122.7,18:129.2,19:135.7,20:142.2,21: 148.7,22:155.2,23:161.7,24:168.3,25:174.8,26:181.3,27:187.8,28:194.3,29:200.8,30: 207.3', 'Shipping based on weight of products. Example: 1:3.50,2:5.50,etc.', '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 ('Capitais: PB, PE, PI, RO', 'MODULE_SHIPPING_SEDEX_zone18', '1:24.9,2:32.8,3:40.7,4:44.7,5:52.6,6:60.5,7:68.4,8:76.3,9:84.2,10:92.1,11:10 0,12:107.9,13:115.8,14:123.7,15:131.6,16:139.5,17:147.4,18:155.3,19:163.3,20:171. 2,21:179.1,22:187,23:194.9,24:202.8,25:210.7,26:218.6,27:226.5,28:234.4,29:242.3, 30:250.2', 'Shipping based on weight of products. Example: 1:3.50,2:5.50,etc.', '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 ('Capitais: AC, AP, AM, CE, MA, PA, RN', 'MODULE_SHIPPING_SEDEX_zone19', '1:28.5,2:37.6,3:46.6,4:51.2,5:60.2,6:69.3,7:78.4,8:87.4,9:96.5,10:105.6,11:1 14.7,12:123.7,13:132.8,14:141.9,15:150.9,16:160,17:169.1,18:178.1,19:187.2,20:196 .3,21:205.3,22:214.4,23:223.5,24:232.6,25:241.6,26:250.7,27:259.8,28:268.8,29:277 .9,30:287', 'Shipping based on weight of products. Example: 1:3.50,2:5.50,etc.', '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 ('Capital: RR', 'MODULE_SHIPPING_SEDEX_zone20', '1:32.2,2:42.6,3:52.9,4:58.1,5:68.4,6:78.8,7:89.1,8:99.5,9:109.8,10:120.2,11: 130.5,12:140.9,13:151.2,14:161.6,15:171.9,16:182.3,17:192.6,18:203,19:213.3,20:22 3.7,21:234,22:244.4,23:254.7,24:265.1,25:275.4,26:285.8,27:296.1,28:306.5,29:316. 8,30:327.2', 'Shipping based on weight of products. Example: 1:3.50,2:5.50,etc.', '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 ('Handling Fee', 'MODULE_SHIPPING_SEDEX_HANDLING', '0', 'Handling Fee for this shipping method', '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 ('Location', 'MODULE_SHIPPING_SEDEX_STORE_PROVINCE', '153', 'Location code of the shop', '6', '0', now())"); } function remove() { tep_db_query("delete from " . TABLE_CONFIGURATION . " where configuration_key in ('" . implode("', '", $this->keys()) . "')"); /* tep_db_query("delete from " . TABLE_CONFIGURATION . " where configuration_key = 'MODULE_SHIPPING_SEDEX_STATUS'"); tep_db_query("delete from " . TABLE_CONFIGURATION . " where configuration_key = 'MODULE_SHIPPING_SEDEX_zone1'"); tep_db_query("delete from " . TABLE_CONFIGURATION . " where configuration_key = 'MODULE_SHIPPING_SEDEX_zone2'"); tep_db_query("delete from " . TABLE_CONFIGURATION . " where configuration_key = 'MODULE_SHIPPING_SEDEX_zone3'"); tep_db_query("delete from " . TABLE_CONFIGURATION . " where configuration_key = 'MODULE_SHIPPING_SEDEX_zone4'"); tep_db_query("delete from " . TABLE_CONFIGURATION . " where configuration_key = 'MODULE_SHIPPING_SEDEX_zone5'"); tep_db_query("delete from " . TABLE_CONFIGURATION . " where configuration_key = 'MODULE_SHIPPING_SEDEX_zone6'"); tep_db_query("delete from " . TABLE_CONFIGURATION . " where configuration_key = 'MODULE_SHIPPING_SEDEX_zone7'"); tep_db_query("delete from " . TABLE_CONFIGURATION . " where configuration_key = 'MODULE_SHIPPING_SEDEX_zone8'"); tep_db_query("delete from " . TABLE_CONFIGURATION . " where configuration_key = 'MODULE_SHIPPING_SEDEX_zone9'"); tep_db_query("delete from " . TABLE_CONFIGURATION . " where configuration_key = 'MODULE_SHIPPING_SEDEX_zone10'"); tep_db_query("delete from " . TABLE_CONFIGURATION . " where configuration_key = 'MODULE_SHIPPING_SEDEX_zone12'"); tep_db_query("delete from " . TABLE_CONFIGURATION . " where configuration_key = 'MODULE_SHIPPING_SEDEX_zone13'"); tep_db_query("delete from " . TABLE_CONFIGURATION . " where configuration_key = 'MODULE_SHIPPING_SEDEX_zone14'"); tep_db_query("delete from " . TABLE_CONFIGURATION . " where configuration_key = 'MODULE_SHIPPING_SEDEX_zone15'"); tep_db_query("delete from " . TABLE_CONFIGURATION . " where configuration_key = 'MODULE_SHIPPING_SEDEX_zone16'"); tep_db_query("delete from " . TABLE_CONFIGURATION . " where configuration_key = 'MODULE_SHIPPING_SEDEX_zone17'"); tep_db_query("delete from " . TABLE_CONFIGURATION . " where configuration_key = 'MODULE_SHIPPING_SEDEX_zone18'"); tep_db_query("delete from " . TABLE_CONFIGURATION . " where configuration_key = 'MODULE_SHIPPING_SEDEX_zone19'"); tep_db_query("delete from " . TABLE_CONFIGURATION . " where configuration_key = 'MODULE_SHIPPING_SEDEX_zone20'"); tep_db_query("delete from " . TABLE_CONFIGURATION . " where configuration_key = 'MODULE_SHIPPING_SEDEX_HANDLING'"); tep_db_query("delete from " . TABLE_CONFIGURATION . " where configuration_key = 'MODULE_SHIPPING_SEDEX_STORE_PROVINCE'"); */} function keys() { return array('MODULE_SHIPPING_SEDEX_STATUS', 'MODULE_SHIPPING_SEDEX_TAX_CLASS', 'MODULE_SHIPPING_SEDEX_ZONE', 'MODULE_SHIPPING_SEDEX_SORT_ORDER', 'MODULE_SHIPPING_SEDEX_STATUS', 'MODULE_SHIPPING_SEDEX_zone1', 'MODULE_SHIPPING_SEDEX_zone2', 'MODULE_SHIPPING_SEDEX_zone3', 'MODULE_SHIPPING_SEDEX_zone4', 'MODULE_SHIPPING_SEDEX_zone5', 'MODULE_SHIPPING_SEDEX_zone6', 'MODULE_SHIPPING_SEDEX_zone7', 'MODULE_SHIPPING_SEDEX_zone8', 'MODULE_SHIPPING_SEDEX_zone9', 'MODULE_SHIPPING_SEDEX_zone10', 'MODULE_SHIPPING_SEDEX_zone12', 'MODULE_SHIPPING_SEDEX_zone13', 'MODULE_SHIPPING_SEDEX_zone14', 'MODULE_SHIPPING_SEDEX_zone15', 'MODULE_SHIPPING_SEDEX_zone16', 'MODULE_SHIPPING_SEDEX_zone17', 'MODULE_SHIPPING_SEDEX_zone18', 'MODULE_SHIPPING_SEDEX_zone19', 'MODULE_SHIPPING_SEDEX_zone20', 'MODULE_SHIPPING_SEDEX_HANDLING', 'MODULE_SHIPPING_SEDEX_STORE_PROVINCE'); } } ?> Davi S Souza
Guest Posted March 10, 2004 Posted March 10, 2004 Hello all! Souzadavi, you are using an old version of this shipping module. I think it will take many time and efforts do fix and upgrade it to osC 2.2MS2. I am using sedex 3.0, which can be found here. This contribution works very well with sedex by states. I am now hacking it to work with brazilian zip codes (CEP). Very soon it will be available on the contributions. Regards, Hermetica
Dudis Posted April 2, 2004 Posted April 2, 2004 Hermetica, Caso consiga adicionar os fretes para os Estados brasileiros, eu agradeceria muito se pudesse me passar. Instalei o sedex3.0 e funcionou, mas n?o sei os valores corretos. Existe algum m?dulo para pagamento por Boleto e Cart?o brasileiros? Foi em portugues pq meu ingr?iz ? foda! Valeu!
souzadavi Posted April 2, 2004 Posted April 2, 2004 I got that, i wrotte all.... so i will speak english, because everybody can help... my numbers it?s for sp state, and interior, if you live in another city itsn?t the right numbers... if ($i == 1) { $default_countries = 'Acre, AC'; $group_price = '1:37.10,2:49.10,3:61.10,4:67.10,5:79.10,6:85.10,7:97.10,8:109.50,9:121.90,10 :133.20'; $handling_fee = '0'; } if ($i == 2) { $default_countries = 'Alagoas, AL'; $group_price = '1:30.10,2:40.10,3:50.10,4:55.10,5:65.10,6:70.10,7:80.10,8:90.50,9:100.90,10: 110.20'; $handling_fee = '0'; } if ($i == 3) { $default_countries = 'Amazonas, AM'; $group_price = '1:37.10,2:49.10,3:61.10,4:67.10,5:79.10,6:85.10,7:97.10,8:109.50,9:121.90,10 :133.20'; $handling_fee = '0'; } if ($i == 4) { $default_countries = 'Amap?, AP'; $group_price = '1:37.10,2:49.10,3:61.10,4:67.10,5:79.10,6:85.10,7:97.10,8:109.50,9:121.90,10 :133.20'; $handling_fee = '0'; } if ($i == 5) { $default_countries = 'Bahia, BA'; $group_price = '1:28.10,2:37.10,3:46.10,4:50.50,5:59.50,6:64.10,7:73.10,8:82.50,9:91.90,10:1 00.20'; $handling_fee = '0'; } if ($i == 6) { $default_countries = 'Cear?, CE'; $group_price = '1:30.10,2:40.10,3:50.10,4:55.10,5:65.10,6:70.10,7:80.10,8:90.50,9:100.90,10: 110.20'; $handling_fee = '0'; } if ($i == 7) { $default_countries = 'Distrito Federal, DF'; $group_price = '1:22.10,2:28.10,3:34.10,4:37.10,5:43.10,6:46.10,7:52.10,8:58.50,9:64.90,10:7 0.20'; $handling_fee = '0'; } if ($i == 8) { $default_countries = 'Espirito Santo, ES'; $group_price = '1:22.10,2:28.10,3:34.10,4:37.10,5:43.10,6:46.10,7:52.10,8:58.50,9:64.90,10:7 0.20'; $handling_fee = '0'; } if ($i == 9) { $default_countries = 'Goi?s, GO'; $group_price = '1:26.10,2:34.10,3:42.10,4:46.10,5:54.10,6:58.10,7:66.10,8:74.50,9:82.90,10:9 0.20'; $handling_fee = '0'; } if ($i == 10) { $default_countries = 'Maranh?o, MA'; $group_price = '1:37.10,2:49.10,3:61.10,4:67.10,5:79.10,6:85.10,7:97.10,8:109.50,9:121.90,10 :133.20'; $handling_fee = '0'; } if ($i == 11) { $default_countries = 'Minas Gerais, MG'; $group_price = '1:18.10,2:23.10,3:28.10,4:30.50,5:35.70,6:38.10,7:43.10,8:48.50,9:53.90,10:5 8.20'; $handling_fee = '0'; } if ($i == 12) { $default_countries = 'Mato Grosso do Sul, MS'; $group_price = '1:22.10,2:28.10,3:34.10,4:37.10,5:43.10,6:46.10,7:52.10,8:58.50,9:64.90,10:7 0.20'; $handling_fee = '0'; } if ($i == 13) { $default_countries = 'Mato Grosso, MT'; $group_price = '1:28.10,2:37.10,3:46.10,4:50.50,5:59.50,6:64.10,7:73.10,8:82.50,9:91.90,10:1 00.20'; $handling_fee = '0'; } if ($i == 14) { $default_countries = 'Par?, PA'; $group_price = '1:37.10,2:49.10,3:61.10,4:67.10,5:79.10,6:85.10,7:97.10,8:109.50,9:121.90,10 :133.20'; $handling_fee = '0'; } if ($i == 15) { $default_countries = 'Para?ba, PB'; $group_price = '1:33.10,2:44.10,3:55.10,4:65.50,5:71.50,6:77.10,7:88.10,8:99.50,9:110.90,10: 121.20'; $handling_fee = '0'; } if ($i == 16) { $default_countries = 'Pernambuco, PE'; $group_price = '1:33.10,2:44.10,3:55.10,4:65.50,5:71.50,6:77.10,7:88.10,8:99.50,9:110.90,10: 121.20'; $handling_fee = '0'; } if ($i == 17) { $default_countries = 'Piau?, PI'; $group_price = '1:33.10,2:44.10,3:55.10,4:65.50,5:71.50,6:77.10,7:88.10,8:99.50,9:110.90,10: 121.20'; $handling_fee = '0'; } if ($i == 18) { $default_countries = 'Paran?, PR'; $group_price = '1:18.10,2:23.10,3:28.10,4:30.50,5:35.70,6:38.10,7:43.10,8:48.50,9:53.90,10:5 8.20'; $handling_fee = '0'; } if ($i == 19) { $default_countries = 'Rio de Janeiro, RJ'; $group_price = '1:18.10,2:23.10,3:28.10,4:30.50,5:35.70,6:38.10,7:43.10,8:48.50,9:53.90,10:5 8.20'; $handling_fee = '0'; } if ($i == 20) { $default_countries = 'Rio Grande do Norte, RN'; $group_price = '1:37.10,2:49.10,3:61.10,4:67.10,5:79.10,6:85.10,7:97.10,8:109.50,9:121.90,10 :133.20'; $handling_fee = '0'; } if ($i == 21) { $default_countries = 'Rond?nia, RO'; $group_price = '1:33.10,2:44.10,3:55.10,4:65.50,5:71.50,6:77.10,7:88.10,8:99.50,9:110.90,10: 121.20'; $handling_fee = '0'; } if ($i == 22) { $default_countries = 'Roraima, RR'; $group_price = '1:44.10,2:58.10,3:72.10,4:79.10,5:93.10,6:100.10,7:114.10,8:128.50,9:142.90, 10:156.20'; $handling_fee = '0'; } if ($i == 23) { $default_countries = 'Rio Grande do Sul, RS'; $group_price = '1:22.10,2:28.10,3:34.10,4:37.10,5:43.10,6:46.10,7:52.10,8:58.50,9:64.90,10:7 0.20'; $handling_fee = '0'; } if ($i == 24) { $default_countries = 'Santa Catarina, SC'; $group_price = '1:18.10,2:23.10,3:28.10,4:30.50,5:35.70,6:38.10,7:43.10,8:48.50,9:53.90,10:5 8.20'; $handling_fee = '0'; } if ($i == 25) { $default_countries = 'Sergipe, SE'; $group_price = '1:7.10,2:8.10,3:9.10,4:10.10,5:11.10,6:12.10,7:13.10,8:15.50,9:16.90,10:18.2 0'; $handling_fee = '0'; } if ($i == 26) { $default_countries = 'S?o Paulo, SP'; $group_price = '1:8.10,2:9.20,3:10.40,4:11.10,5:12.20,6:14.10,7:15.20,8:16.50,9:17.90,10:18. 80'; $handling_fee = '0'; } if ($i == 27) { $default_countries = 'Tocantins, TO'; $group_price = '1:28.10,2:37.10,3:46.10,4:50.50,5:59.50,6:64.10,7:73.10,8:82.50,9:91.90,10:1 00.20'; $handling_fee = '0'; } Davi S Souza
Dudis Posted April 3, 2004 Posted April 3, 2004 Thank?s for the numbers. I?m from SP/Capital. Can you send me the zones database for this values? I?m trying diferent CEPs at correios brasilian site, with diferent citys of same states, and have diferent freight costs for each city of the same state, using Capital and Interior will never be 100% real price. :( I apreciate all the time wasted making this mod, but, what are we doing? Without the correct sedex calculate bases we will never get a brasilian sedex correct module. If i get the trully correct database, form methods or algoritmos with correios, anyone here is capable to develop this mod? ANYONE JOIN THE TEAM? [email protected] -------------------- translated -------------------- Se eu conseguir os dados corretos, ou formul?rios, algu?m daqui pode programar este de m?dulo? Se juntarmos uma meia d?zia de programadores conseguimos desenvolver uma solu??o tupiniquin que seja confi?vel, n?o acham? Caso hajam interessados, por favor, entrem em contato. [email protected]
Guest Posted April 5, 2004 Posted April 5, 2004 Hello Dudis and All, The Sedex freight cost just differ from capital to interior. There is no difference between one city to another, for example, into the SP interior. The only difference is between capital and interior. To allow cost by CEP, ie, by cities, you need to have an e-Sedex contract with ETC (the brazilian post service). Without this contract, no way to use it. With this contract, prices will vary from city to city, calculated by CEP, and also depending of the quantity of posts you make each month. Problem is that you do not have e-Sedex service all over Brazil. To the cities it is not available, you shall use standard Sedex. Dudis, I will send direct to your e-mail the SP Sedex STD table. I am developing a code that automatically choses between Sedex and e-Sedex, allowing the better price for the customer. This code shall be finalized on this month and will be uploaded to the Contributions. A message will be send to this forum informing that. Please contact me by this way in case of any doubts. Regards, Hermetica
Dudis Posted April 5, 2004 Posted April 5, 2004 Hermetica and all interested in BSSM(brasilian sedex shipping module): I?ll put the phrase that is at the bottom of sedex freight costs simulator at http://www.correios.com.br/encomendas/precos/ Original: "Em fun??o da nova estrutura de pre?os do SEDEX, este mecanismo depende agora do fornecimento dos CEPs de origem e destino para seu funcionamento" Resumed and translated: "The system now depends on CEPs of origin and destiny to work" And more, but optional, this means that doenst need to be at the module: now the system use "pre?o declarado(object declared price)", "aviso de recebimento(receve warning)" and "M?o pr?pria(own hands[?])" The "object declared price" adds 10% of the declared price to the freight. Now the sedex use CEPs and diferent prices for diferent citys of the same state! I have tested! Test yourself! I dont know if we are talking about the same sedex service, but the one that i put the link at the second line is the one that i?m talking about. I?m contacting correios and trying to get the new sedex and e-sedex table prices. With CEPs covered. I?m puting this here to warn all of us, to analise the development and if is necessary, start again of the beginning with the right informations. :o Remember, time is money! Let?s do the right thing to do only one time. B)
Dudis Posted April 5, 2004 Posted April 5, 2004 Sorry, the prices for diferent citys of same state its the same!!
souzadavi Posted April 5, 2004 Posted April 5, 2004 Sorry, but this is the only numbers i got, you need to go to the correios, and get the numbers, and type all, i did that... thansk souzadavi Davi S Souza
Guest Posted May 20, 2004 Posted May 20, 2004 Ol?, eu tamb?m estou prescisando do modulo de sedex para 2.2ms2 mais ate agora nao achei nenhum que funciona. j? testei uns codigos aqui mais nao calcula. alguem pode me ajudar a conseguir esse modulo para 2.2ms2 ?? aguardo respostas, obrigado meu ingles ? meu ruim.. postei BR
souzadavi Posted May 20, 2004 Posted May 20, 2004 go to this page http://www.oscommerce.com/community/contri...ll/search,sedex this contribuition oks... thanks Davi S Souza
Dudis Posted May 20, 2004 Posted May 20, 2004 Here is the full table prices from SP-Capital to all brasilian cities, with correios values: if ($i == 1) { $default_states_or_countries = 'SP-Capital e ABCD'; $default_prices = '1:7.50,2:8.50,3:9.50,4:10.00,5:11.00,6:11.50,7:12.50,8:13.50,9:14.50,10:15.50,30:35,50'; } if ($i == 2) { $default_states_or_countries = 'SP-Interior'; $default_prices = '1:8.00,2:9.20,3:10.40,4:11.00,5:12.20,6:12.80,7:14.00,8:15.20,9:16.40,10:17.60,30:41,60'; } if ($i == 3) { $default_states_or_countries = 'MG-Capital,PR-Capital,RJ-Capital,SC-Capital'; $default_prices = '1:12.00,2:15.00,3:18.00,4:19.50,5:22.40,6:24.00,7:27.00,8:30.00,9:33.00,10:36.00,30:96,00'; } if ($i == 4) { $default_states_or_countries = 'MG-Interior,PR-Interior,RJ-Interior,SC-Interior'; $default_prices = '1:18.00,2:23.00,3:28.00,4:30.50,5:35.50,6:38.00,7:43.00,8:48.00,9:53.00,10:58.00,30:158,00'; } if ($i == 5) { $default_states_or_countries = 'DF-Capital,ES-Capital,RS-Capital,MS-Capital'; $default_prices = '1:17.00,2:21.00,3:25.00,4:27.00,5:31.00,6:33.00,7:37.00,8:41.00,9:45.00,10:49.00,30:129,00'; } if ($i == 6) { $default_states_or_countries = 'DF-Interior,ES-Interior,RS-Interior,MS-Interior'; $default_prices = '1:22.00,2:28.00,3:34.00,4:37.00,5:43.00,6:46.00,7:52.00,8:58.00,9:64.00,10:70.00,30:190,00'; } if ($i == 7) { $default_states_or_countries = 'GO-Capital'; $default_prices = '1:21.00,2:27.00,3:33.00,4:36.00,5:42.00,6:45.00,7:51.00,8:57.00,9:63.00,10:69.00,30:189,00'; } if ($i == 8) { $default_states_or_countries = 'GO-Interior'; $default_prices = '1:26.00,2:34.00,3:42.00,4:46.00,5:54.00,6:58.00,7:66.00,8:74.00,9:82.00,10:90.00,30:250,00'; } if ($i == 9) { $default_states_or_countries = 'BA-Capital,MT-Capital,TO-Capital'; $default_prices = '1:23.00,2:30.00,3:37.00,4:40.50,5:47.50,6:51.00,7:58.00,8:65.00,9:72.00,10:79.00,30:219,00'; } if ($i == 10) { $default_states_or_countries = 'BA-Interior,MT-Interior,TO-Interior'; $default_prices = '1:28.00,2:37.00,3:46.00,4:50.50,5:59.50,6:64.00,7:73.00,8:82.00,9:91.00,10:100.00,30:280,00'; } if ($i == 11) { $default_states_or_countries = 'AL-Capital,SE-Capital'; $default_prices = '1:25.00,2:33.00,3:41.00,4:45.00,5:53.00,6:57.00,7:65.00,8:73.00,9:81.00,10:89.00,30:249,00'; } if ($i == 12) { $default_states_or_countries = 'AL-Interior,SE-Interior'; $default_prices = '1:30.00,2:40.00,3:50.00,4:55.00,5:65.00,6:70.00,7:80.00,8:90.00,9:100.00,10:110.00,30:310,00'; } if ($i == 13) { $default_states_or_countries = 'PB-Capital,PE-Capital,RO-Capital,PI-Capital'; $default_prices = '1:28.00,2:37.00,3:46.00,4:50.50,5:59.50,6:64.00,7:73.00,8:82.00,9:91.00,10:100.00,30:280,00'; } if ($i == 14) { $default_states_or_countries = 'PB-Interior,PE-Interior,RO-Interior,PI-Interior'; $default_prices = '1:33.00,2:44.00,3:55.00,4:60.50,5:71.50,6:77.00,7:88.00,8:99.00,9:110.00,10:121.00,30:341,00'; } if ($i == 15) { $default_states_or_countries = 'AC-Capital,AP-Capital,AM-Capital,CE-Capital,MA-Capital,PA-Capital,RN-Capital'; $default_prices = '1:32.00,2:42.00,3:52.00,4:57.00,5:67.00,6:72.00,7:82.00,8:92.00,9:102.00,10:112.00,30:280,00'; } if ($i == 16) { $default_states_or_countries = 'AC-Interior,AP-Interior,AM-Interior,CE-Interior,MA-Interior,PA-Interior,RN-Interior'; $default_prices = '1:37.00,2:49.00,3:61.00,4:67.00,5:79.00,6:85.00,7:97.00,8:109.00,9:121.00,10:133.00,30:373,00'; } if ($i == 17) { $default_states_or_countries = 'RR-Capital'; $default_prices = '1:39.00,2:51.00,3:63.00,4:69.00,5:81.00,6:87.00,7:99.00,8:111.00,9:123.00,10:135.00,30:280,00'; } if ($i == 18) { $default_states_or_countries = 'RR-Interior'; $default_prices = '1:44.00,2:58.00,3:72.00,4:79.00,5:93.00,6:100.00,7:114.00,8:128.00,9:142.00,10:156.00,30:436,00'; } The hard work is here.
Patty Posted August 31, 2004 Posted August 31, 2004 Hello, guys. Has anyone found a way to make a brazilian shipping module yet? I've tried the Sedex contributions posted but I can't make them work. Getting all sort of errors. :( Can anybody shed a light here, please? Patty
Dudis Posted October 24, 2004 Posted October 24, 2004 Demorou mas chegou... M?DULO SEDEX FUNCIONAL!!! B) Acabei de contribuir com um m?dulo de frete via sedex, est? funcional e em uso em um site que desenvolvi, podem baixar: http://www.oscommerce.com/community/contributions,2550 Espero que resolva o problema de todos! :thumbsup: Contribuam com melhorias! Abra?os!
fssilva Posted November 6, 2007 Posted November 6, 2007 Hi all, im looking for a solution about SEDEX brazil.. does anybody has one that is working good?? Im looking for a boleto system too... does anybody has any??? to work with bancodobrasil... Regards, See ya Demorou mas chegou... M�DULO SEDEX FUNCIONAL!!! B) Acabei de contribuir com um m�dulo de frete via sedex, est� funcional e em uso em um site que desenvolvi, podem baixar: http://www.oscommerce.com/community/contributions,2550 Espero que resolva o problema de todos! :thumbsup: Contribuam com melhorias! Abra�os!
dsimi Posted December 21, 2010 Posted December 21, 2010 Here is the full table prices from SP-Capital to all brasilian cities, with correios values: if ($i == 1) { $default_states_or_countries = 'SP-Capital e ABCD'; $default_prices = '1:7.50,2:8.50,3:9.50,4:10.00,5:11.00,6:11.50,7:12.50,8:13.50,9:14.50,10:15.50,30:35,50'; } if ($i == 2) { $default_states_or_countries = 'SP-Interior'; $default_prices = '1:8.00,2:9.20,3:10.40,4:11.00,5:12.20,6:12.80,7:14.00,8:15.20,9:16.40,10:17.60,30:41,60'; } if ($i == 3) { $default_states_or_countries = 'MG-Capital,PR-Capital,RJ-Capital,SC-Capital'; $default_prices = '1:12.00,2:15.00,3:18.00,4:19.50,5:22.40,6:24.00,7:27.00,8:30.00,9:33.00,10:36.00,30:96,00'; } if ($i == 4) { $default_states_or_countries = 'MG-Interior,PR-Interior,RJ-Interior,SC-Interior'; $default_prices = '1:18.00,2:23.00,3:28.00,4:30.50,5:35.50,6:38.00,7:43.00,8:48.00,9:53.00,10:58.00,30:158,00'; } if ($i == 5) { $default_states_or_countries = 'DF-Capital,ES-Capital,RS-Capital,MS-Capital'; $default_prices = '1:17.00,2:21.00,3:25.00,4:27.00,5:31.00,6:33.00,7:37.00,8:41.00,9:45.00,10:49.00,30:129,00'; } if ($i == 6) { $default_states_or_countries = 'DF-Interior,ES-Interior,RS-Interior,MS-Interior'; $default_prices = '1:22.00,2:28.00,3:34.00,4:37.00,5:43.00,6:46.00,7:52.00,8:58.00,9:64.00,10:70.00,30:190,00'; } if ($i == 7) { $default_states_or_countries = 'GO-Capital'; $default_prices = '1:21.00,2:27.00,3:33.00,4:36.00,5:42.00,6:45.00,7:51.00,8:57.00,9:63.00,10:69.00,30:189,00'; } if ($i == 8) { $default_states_or_countries = 'GO-Interior'; $default_prices = '1:26.00,2:34.00,3:42.00,4:46.00,5:54.00,6:58.00,7:66.00,8:74.00,9:82.00,10:90.00,30:250,00'; } if ($i == 9) { $default_states_or_countries = 'BA-Capital,MT-Capital,TO-Capital'; $default_prices = '1:23.00,2:30.00,3:37.00,4:40.50,5:47.50,6:51.00,7:58.00,8:65.00,9:72.00,10:79.00,30:219,00'; } if ($i == 10) { $default_states_or_countries = 'BA-Interior,MT-Interior,TO-Interior'; $default_prices = '1:28.00,2:37.00,3:46.00,4:50.50,5:59.50,6:64.00,7:73.00,8:82.00,9:91.00,10:100.00,30:280,00'; } if ($i == 11) { $default_states_or_countries = 'AL-Capital,SE-Capital'; $default_prices = '1:25.00,2:33.00,3:41.00,4:45.00,5:53.00,6:57.00,7:65.00,8:73.00,9:81.00,10:89.00,30:249,00'; } if ($i == 12) { $default_states_or_countries = 'AL-Interior,SE-Interior'; $default_prices = '1:30.00,2:40.00,3:50.00,4:55.00,5:65.00,6:70.00,7:80.00,8:90.00,9:100.00,10:110.00,30:310,00'; } if ($i == 13) { $default_states_or_countries = 'PB-Capital,PE-Capital,RO-Capital,PI-Capital'; $default_prices = '1:28.00,2:37.00,3:46.00,4:50.50,5:59.50,6:64.00,7:73.00,8:82.00,9:91.00,10:100.00,30:280,00'; } if ($i == 14) { $default_states_or_countries = 'PB-Interior,PE-Interior,RO-Interior,PI-Interior'; $default_prices = '1:33.00,2:44.00,3:55.00,4:60.50,5:71.50,6:77.00,7:88.00,8:99.00,9:110.00,10:121.00,30:341,00'; } if ($i == 15) { $default_states_or_countries = 'AC-Capital,AP-Capital,AM-Capital,CE-Capital,MA-Capital,PA-Capital,RN-Capital'; $default_prices = '1:32.00,2:42.00,3:52.00,4:57.00,5:67.00,6:72.00,7:82.00,8:92.00,9:102.00,10:112.00,30:280,00'; } if ($i == 16) { $default_states_or_countries = 'AC-Interior,AP-Interior,AM-Interior,CE-Interior,MA-Interior,PA-Interior,RN-Interior'; $default_prices = '1:37.00,2:49.00,3:61.00,4:67.00,5:79.00,6:85.00,7:97.00,8:109.00,9:121.00,10:133.00,30:373,00'; } if ($i == 17) { $default_states_or_countries = 'RR-Capital'; $default_prices = '1:39.00,2:51.00,3:63.00,4:69.00,5:81.00,6:87.00,7:99.00,8:111.00,9:123.00,10:135.00,30:280,00'; } if ($i == 18) { $default_states_or_countries = 'RR-Interior'; $default_prices = '1:44.00,2:58.00,3:72.00,4:79.00,5:93.00,6:100.00,7:114.00,8:128.00,9:142.00,10:156.00,30:436,00'; } The hard work is here. What is the meaning for $default_prices. How to set up this?. Iam from India. Iam working for reo de janiero client site. http://www.karateempire.com
Recommended Posts
Archived
This topic is now archived and is closed to further replies.