
Originally Posted by
creeperkat
I tried uploading the SQL file and got the following error:
1062 Duplicate entry 'STORE_FAX' for key 2
in:
[INSERT INTO configuration VALUES ('', 'Store Fax', 'STORE_FAX', '', 'Enter the fax number for your store.
You can call upon this by using the define STORE_FAX.', 1, 4, now(), now(), NULL, NULL);]
If you were entering information, press the BACK button in your browser and re-check the information you had entered to be sure you left no blank fields.
If I go to phpMyAdmin, I see the so_ tables. I do not see the Admin>Configuration>Super Orders though.
I tried deleting all the so_ tables in phpMyAdmin and rerunning the SQL upload but I got the same error. Any ideas on how to fix this?
The so_* tables were not the problem, but rather the inserts made to the configuration table. Do a search in the SQL file for the following:
Code:
insert into configuration
See all that stuff? If you attempt and fail to run the SQL file, then run it again, it does not overwrite existing entries. Unless you know what you're doing, your best bet is to restore from the backup you made right before running the SQL file and try again. The file works if applied properly.

Originally Posted by
ahelis
Thanks getyourgameshere,
Like too many others, rushed in to install the module without reading enough of the posts in this forum. Maybe it would be better to have a couple of sticky posts at the top of this thread that should be required reading before installing the module.
Or just read the whole README file. Most of it is covered in there. I'd like to comment on your installation procedures (which are great!
), in hopes they save others from this recurring issue...
1. Edit super_orders_sql.sql, add first line USE zen3; to specify the database to access.
2. Install the .sql file from the command line:
$ mysql -u root -p < super_orders_sql.sql
This should typically be a given. The file should be run using a tool that already knows which DB to run on (i.e. phpmyadmin). Your step 2 would be the correct procedure if using the command line (which most shared hosts don't allow).
(Aside: As an FYI, I have a dedicated server like you, and I never use the command line. I think you'll find it far easier to maintain your DB's using phpMyAdmin. Just my opinion, though.)
After logging in and out of zenCart Admin, the SuperOrders menu item was not displaying in the configuration list.
3. Try Admin -> Tools > Install SQL Patches
First sql error:
Duplicate entry 'CA' for key2 in [INSERT INTO so_payment_types VALUES (NULL, 1 'CA', 'Cash');]
Because, I had manually loaded the .sql file first. Ok, comment out the problem line.
Bolding is my emphasis. This is for everyone who gets "duplicate entry" errors when running the SQL. Re-running the file simply won't work; comment out the duplicate line ('cause it went in properly on the first try), or reload your DB, fix the problem that caused the first failure, and try again.
4. Retry using the Install SQL Patches window, and everything loaded without errors.
See? DB properly selected; SQL file and DB properly configured; alls well!
Bookmarks