If this is your first visit, check our documentation. To post, register or login.

i've been bad... but want to be good!

Locked

Started by scooter on 4 Jan 2009, 10:48 PM · Views: 1,300

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
4 Jan 2009, 10:48 PM
#1
scooter avatar

scooter

New Zenner

Join Date:
Dec 2008
Posts:
80
Plugin Contributions:
1

i've been bad... but want to be good!

Ok, so i haven't set up the custom/override folders
and i have been hacking all the files..
but i have saved everything before i hack them as
"orginal whatever.php"

now its time for custom folders , i found a
file tree folder diagram so the layout part is easy

what happens if i just move the files and not restore the orginal
ones .. will ZC still work,,,. i read ZC will load all files
eg. like all english.php files it finds . can you force the use of the hacked files only?

any other suggestions?
thanks

4 Jan 2009, 10:58 PM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Re: i've been bad... but want to be good!

  1. NEVER leave the ".php" on any backup files ... in certain directories that can cause you crazy confusion.
  2. You can create your override folder and move the edited files into the override folder.
  3. Then rename the original file back to the original name.
  4. If you've only edited language and template files, you should be fine with this approach.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

5 Jan 2009, 8:08 AM
#3
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,760
Plugin Contributions:
56

Re: i've been bad... but want to be good!

DrByte:

  1. NEVER leave the ".php" on any backup files ... in certain directories that can cause you crazy confusion.

So instead of the "orginal whatever.php" you have been using, use "whatever.php.original"

Scott

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

28 Jan 2009, 8:54 AM
#4
gameoverbeyond avatar

gameoverbeyond

New Zenner

Join Date:
May 2007
Posts:
41
Plugin Contributions:
0

Re: i've been bad... but want to be good!

I had been doing a simular thing, but finally upgraded and created the overides. What I did was to take all the files I had edited and copied them to the CUSTOM folder structure. Then I downloaded a complete fileset for zencart, unzipped, and replaced the original files back. I did this on a test server and would recommend the same. Once everything was copied over and tested, I was able to upgrade with no problems. Using winmerge will help find which files you changed if you lost track like myself. Make sure you back-up everything before you start, just in case!