Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / The override system, does it work in all sub folders?

The override system, does it work in all sub folders?

Locked

Views: 1,830

Results 1 to 11 of 11
This thread is locked. New replies are disabled.
10 Jan 2010, 10:52 PM
#1
kaskudoo avatar

kaskudoo

New Zenner

Join Date:
Jan 2010
Posts:
16
Plugin Contributions:
0

The override system, does it work in all sub folders?

Hi,

I changed a file in the paypal module a little bit. I did not like the paypal express checkout button and made my own. Now, the file i altered was located here:
/includes/modules/payment/paypal/

Am I correct that I could put my 'new' file inside:
/includes/modules/payment/paypal/YOUR_TEMPLATE/

?

I thought I had tried it and it didn't work. Should it work? Or shall I keep track of what I am messing with, so that I can re-do everything when upgrading?

Thanks :)

11 Jan 2010, 8:24 AM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: The override system, does it work in all sub folders?

ONLY Each tree tha has existing by default a "classic" folder has the override ability

11 Jan 2010, 3:17 PM
#4
kaskudoo avatar

kaskudoo

New Zenner

Join Date:
Jan 2010
Posts:
16
Plugin Contributions:
0

Re: The override system, does it work in all sub folders?

Thank you both - this is very helpful. I just installed the zen cart and love it - but as I know me, I make so many changes in all kinds of locations that when it's time to upgrade I am in trouble :)

I better make myself a good list of things I changed (if it's not already too late for that!)

Thanks again :) :bigups:

13 Jan 2010, 4:45 AM
#5
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: The override system, does it work in all sub folders?

That is the beauty of the override system

There will be times where you find it necessary to change a core file that is not overridable...

What I do is copy to my local, change the extention of the one on the server to .orig - when making the alterations, I also place my name in the comment section at the top of the file, in my case this is "kobra"

Then when an upgrade is emminent, I use the developers tool kit and search all files for "kobra" and print the returned list
Now I have a copy of the files I need to attend to

Something similar might assist you

13 Jan 2010, 5:09 AM
#6
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: The override system, does it work in all sub folders?

There are tools that can help identify your own changes vs original files, such as the free WinMerge comparison tool.

13 Jan 2010, 3:12 PM
#7
dysfunctional avatar

dysfunctional

Zen Follower

Join Date:
Apr 2008
Posts:
159
Plugin Contributions:
0

Re: The override system, does it work in all sub folders?

DrByte:

There are tools that can help identify your own changes vs original files, such as the free WinMerge comparison tool.

Or Diffmerge if you're on a Mac :). A great tool!

13 Jan 2010, 3:32 PM
#8
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: The override system, does it work in all sub folders?

dysfunctional:

Or Diffmerge if you're on a Mac :). A great tool!
lol - or many other apps. Lest this thread digress into a discussion of many tools available, they're already discussed here: http://www.zen-cart.com/forum/showthread.php?t=7330

13 Jan 2010, 4:11 PM
#9
kaskudoo avatar

kaskudoo

New Zenner

Join Date:
Jan 2010
Posts:
16
Plugin Contributions:
0

Re: The override system, does it work in all sub folders?

All,

Thanks for your suggestions!

Kobra,

that sounds like a great idea. I will definitely implement this system, as I like to keep control over what I have changed. What better area than to note it in the files themselves :)

I do like the idea of a merging software, but I rather know 'exactly' what changes and keep an eye on it :D

13 Jan 2010, 6:06 PM
#10
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: The override system, does it work in all sub folders?

The point I was making about the merging software is that it will show you exactly all the changes you've made ... even the ones you forgot about.

13 Jan 2010, 7:14 PM
#11
kaskudoo avatar

kaskudoo

New Zenner

Join Date:
Jan 2010
Posts:
16
Plugin Contributions:
0

Re: The override system, does it work in all sub folders?

Mh, will have to try it out :P