I have installed Zen Cart v1.5.0 and would like to have more than one Table Rate on my site. I couldn’t find any existing add-on that supports Zen Cart v1.5.0 so have to modify the code. I compare the Table Rate Clone for Zen Cart v1.3.8 with the current version of Zen Cart Table Rate code and found that the only difference starts from line 64 in the original table.php,
Should I modify these lines in order to clone extra rate table? If the answer is Yes, what should I change?PHP Code:if ($this->enabled) {
// check MODULE_SHIPPING_TABLE_HANDLING_METHOD is in
$check_query = $db->Execute("select configuration_value from " . TABLE_CONFIGURATION . " where configuration_key = 'MODULE_SHIPPING_TABLE_HANDLING_METHOD'");
if ($check_query->EOF) {
$db->Execute("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) values ('Handling Per Order or Per Box', 'MODULE_SHIPPING_TABLE_HANDLING_METHOD', 'Order', 'Do you want to charge Handling Fee Per Order or Per Box?', '6', '0', 'zen_cfg_select_option(array(\'Order\', \'Box\'), ', now())");
}
}


Reply With Quote

