Page 1 of 2 12 LastLast
Results 1 to 10 of 14
  1. #1

    Default Working on a website off line?

    What is the best way to work on our site offline. I'd like to be able to download the whole site, open it in a program and make changes off line while the site online is still working without any changes.

    Which programs have this capability? Notepad +?


    Our site is www.comicmegastore.com

  2. #2
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,268
    Plugin Contributions
    3

    Default Re: Working on a website off line?

    What exactly is it that you want to change?

    For small edits, you can usually (safely) make changes to a live store during quieter periods.

    For more significant changes, you can put the site into "maintenance" mode.
    20 years a Zencart User

  3. #3
    Join Date
    Oct 2009
    Posts
    37
    Plugin Contributions
    0

    Default Re: Working on a website off line?

    Quote Originally Posted by comicmegastore View Post
    What is the best way to work on our site offline. I'd like to be able to download the whole site, open it in a program and make changes off line while the site online is still working without any changes.

    Which programs have this capability? Notepad +?


    Our site is www.comicmegastore.com
    Down load EasyPHP (free) Install as local host then install ZC You can then run and work on your site from your own computer

    Nick

  4. #4
    Join Date
    Nov 2008
    Posts
    54
    Plugin Contributions
    0

    Default Re: Working on a website off line?

    Set up a test site such as test.mystore.com. Copy all of the files from you working store to your test store. You will need to make a few adjustments in the configuration files. Nothing complicated. I have my test domain set up with password protection.

    You can then use the same database files, or set up a test set and copy from your main DB to the test DB and make necessary changes.

  5. #5

    Default Re: Working on a website off line?

    Quote Originally Posted by schoolboy View Post
    What exactly is it that you want to change?

    For small edits, you can usually (safely) make changes to a live store during quieter periods.

    For more significant changes, you can put the site into "maintenance" mode.
    I'm just looking to mess around with it off line. Some of the improvements I would like to make are complicated and most likely will be by trial and error.

  6. #6

    Default Re: Working on a website off line?

    Quote Originally Posted by libertyguy View Post
    Down load EasyPHP (free) Install as local host then install ZC You can then run and work on your site from your own computer

    Nick
    I'll check this out. I think this is what I am looking for!

  7. #7
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Working on a website off line?

    The best method then would be to install a local server (xampp or easyPHP, or others) and copy and install your site on your computer, so you can test functions locally.

    See the "Making a Local Copy of your Website" article in the wiki for complete instructions.
    http://www.zen-cart.com/wiki/index.php/LocalCopySite
    Last edited by gjh42; 7 Apr 2010 at 10:06 PM.

  8. #8
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,268
    Plugin Contributions
    3

    Default Re: Working on a website off line?

    I re-iterate my earlier question... WHAT type of changes are envisaged using the offline system?

    Bear in mind there are TWO fundamental components to your Zencart store:

    1. The code files and other static resources (including images, html for the "defined pages", etc...)
    2. The database, which contains most of the dynamic data and to which a lot of information is "written" during the operational functioning of the store.

    These two components are intricately intertwined and there are many "dangers" in trying to manage a site "offline" and then transfer that managed material back to the server.

    Consider, for example...

    You successfully create an "offline clone" of your site... And this will require a copy of BOTH COMPONENTS, because without one, the other will not function.

    Now... in the offline site, you make a range of changes and edits, some of which may involve activating certain "switches" that exist in the database - changing side-column widths is one example of the many that are possible.

    After you have made such edits, you may think that all you need do is ftp a copy of the changed files to overwrite those on the server, and then to "truncate" the database and re-import it from the database linked to the offline site.

    However... while you have been busy working on your offline site, people have visited the LIVE site, made purchases, registered their details and conducted a range of activities that will have resulted in data being both ADDED TO and CHANGED WITHIN the live store's database.

    Now... you take your offline database and overwrite the live database, trusting that all the settings you (may) have changed will be evident on the live site...

    You will INSTANTLY lose all the information that has been captured in the interim...

    When a site is LIVE and ACTIVE... the database is sacrosanct. It is working in real time and being altered all the time. If you then over-write it, all that data captured between the time you made your dbase clone, and the time you overwrite the dbase will be lost.

    The FILE SYSTEM, however, is not as critical. You can modify most of the php in real-time.
    20 years a Zencart User

  9. #9
    Join Date
    Nov 2007
    Location
    Sunny Coast, Australia
    Posts
    3,378
    Plugin Contributions
    9

    Default Re: Working on a website off line?

    Quote Originally Posted by gjh42 View Post
    The best method then would be to install a local server (xampp or easyPHP, or others) and copy and install your site on your computer, so you can test functions locally.

    See the "Making a Local Copy of your Website" article in the wiki for complete instructions.
    http://www.zen-cart.com/wiki/index.php/LocalCopySite
    What Glenn is suggesting here is (in my humble opinion) the best way to develop your site locally. Copy your live stuff onto your local machine and go from there.

    When I first delved into Zen Cart some 3 years ago, I had no idea at all and developed everything 'live' - big mistake. You live and you learn.....

    Here is a link to a thread I started a couple of years ago, asking for help about how to do it the reverse way: http://www.zen-cart.com/forum/showthread.php?t=105506

    At the time of posting this, that thread had more than 2000 views.....

    Hope this helps

    Frank

  10. #10
    Join Date
    Nov 2007
    Location
    Sunny Coast, Australia
    Posts
    3,378
    Plugin Contributions
    9

    Default Re: Working on a website off line?

    May I also add that schoolboy's advice must be taken very seriously. Some changes only affect a few files but are not written to the database. In that case you can just upload the modified files. If you are attempting changes that also affect the DB then you can't just overwrite your live DB with a copy of your local development DB.

    Having said that, you can still test changes locally which are written to DB. Once you are happy with the outcome then you can implement same on the live site without uploading a local copy of your DB.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Transfer from Working Website to Primary Website
    By extremeguncare in forum Installing on a Linux/Unix Server
    Replies: 1
    Last Post: 18 Apr 2010, 11:35 PM
  2. i proccess CC off line, how do I?
    By rjgonzalez in forum General Questions
    Replies: 4
    Last Post: 1 Mar 2009, 11:22 PM
  3. Off-line Catalog
    By craftandpaper in forum General Questions
    Replies: 1
    Last Post: 20 Apr 2008, 01:28 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg