LukasDJ Posted July 4, 2005 Posted July 4, 2005 HI. We found an error when install ZONE RATES function from SHIPPING MODULE Once time I declare that I want to use 6 zones instead 1, and I INSTALL from Admin Panel ZONE RATES voice, the OsC send an error... 1064 - You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'True', 'False'), ', now())' at line 1 insert into configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) VALUES ('Enable Zones Method', 'MODULE_SHIPPING_ZONES_STATUS', 'True', 'Do you want to offer zone rate shipping?', '6', '0', 'tep_cfg_select_option(array('True', 'False'), ', now()) [TEP STOP] We solved this problem reading ZONES.PHP....We found the error here.... original file: 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 Zones Method', 'MODULE_SHIPPING_ZONES_STATUS', 'True', 'Do you want to offer zone rate shipping?', '6', '0', 'tep_cfg_select_option(array(\'True\', \'False\'), ', now())"); It's necessary to use this file: 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 Zones Method', 'MODULE_SHIPPING_ZONES_STATUS', 'True', 'Do you want to offer zone rate shipping?', '6', '0', 'tep_cfg_select_option(array(\'True\', \'False\'))', now())"); You can to see that there is a grammar problem with 'tep_cfg_select_option(array(\'True\', \'False\'), ', now())"); into 'tep_cfg_select_option(array(\'True\', \'False\'))', now())"); But we have found OTHERS ERRORS as these.... It's necessary to read WELL some files...BYE to everyone Qme & Lukas Quote
LukasDJ Posted July 4, 2005 Author Posted July 4, 2005 (edited) Sorry.....we find problem again..... Edited July 4, 2005 by LukasDJ Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.