If this is your first visit, check our documentation. To post, register or login.
Forums / General Questions / Fresh install using existing database?

Fresh install using existing database?

Locked

Started by absoluteblock on 20 Nov 2008, 6:11 AM · Views: 1,317

Results 1 to 2 of 2
This thread is locked. New replies are disabled.
20 Nov 2008, 6:11 AM
#1
absoluteblock avatar

absoluteblock

Zen Follower

Join Date:
Oct 2006
Posts:
107
Plugin Contributions:
0

Fresh install using existing database?

I botched the cosmetic aspects of my first Zencart installation. Instead of applying changes the proper way, I overrode fonts and colors at the local level and even used <!-- and --> tags to prevent certain text from displaying. I also failed to make backups of the original files in some cases.

I'd like to start from scratch - the right way - and then import my old SQL database so that no account or order information is lost.

How should I proceed?

20 Nov 2008, 9:31 AM
#2
fairestcape avatar

fairestcape

Totally Zenned

Join Date:
Mar 2008
Location:
Cape Town &amp; London (depends on the season)
Posts:
2,957
Plugin Contributions:
0

Re: Fresh install using existing database?

The good thing about dbase content-managed websites (of which ZC is an example), is that the database is generally separate from the code files.

If you botch the code, it's usually possible to restore just the code files without having to make adjustments to the database. (Not always the case, but true for the most part.)

Your problem can probably be resolved by doing a full FTP of the core files from your local drive, to the server.

  1. Make sure that the version of the core code you intend to FTP is the same as the version currently used on your site.

  2. Make a full backup of the database before you do anything. Also, make copies of your current configure.php files (one in includes, the other in admin/includes).

  3. If you don't have a copy of ZC on your local drive, download and unzip one from this site's home page.

  4. As you will not be doing a full fresh install, you probably need only FTP the following folders (and their contents) to your server.

  • admin (renamed if you originally renamed the folder)
  • includes

It is unlikely that core files in the other folders have been affected by template changes you made. However, if you did edit files in other folders at some point in the past (such as files in the email directory), you may need to restore the original versions (via FTP as well).

  1. Start by FTP of the includes directory only.

  2. When the FTP is finished, login to your store's admin panel, and select the classic green template (admin>>>tools>>>template selection).

  3. If your FTP was successful, you should see your store rendered in the classic green template.

  4. Now, start a process of rigorous testing - particularly those that relate to product and customer data / actions. For example, open a product to edit its contents, check your currency settings, check your shipping options, look at customer purchase history/orders. Check customer details (addresses). Try all the hyperlinks on your site, particularly those in sideboxes.

  5. Make notes of errors.

  6. Do some test orders, using all available shipping and payment options.

  7. If there are faults/errors in your admin panel, you may need to FTP a fresh copy of the admin folder to your server, (as you did for the includes folder earlier).

  8. If you do need to send a fresh copy of the admin folder, then do all the tests again and see if this resolved conflicts/errors.

  9. Generally, errors relating to the database will be fairly obvious, with onscreen errors reporting a failure to either write to or read from a database table. If you get such errors, then your dbase may need fixing too (but we can deal with this later).

  10. Create a CUSTOM template system (see the wiki/faq for the procedure, which is quite simple).

  11. Come back to this post to report your progress / additional problems.