Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Override vs Overwrite for modules/pages files

Override vs Overwrite for modules/pages files

Views: 2,000

Results 1 to 8 of 8
19 Jul 2011, 12:39 AM
#1
treadle avatar

treadle

New Zenner

Join Date:
Jun 2011
Posts:
13
Plugin Contributions:
0

Override vs Overwrite for modules/pages files

Just a quick question on doing over-rides. I am trying to install the following addon - "Contact_Us - Subject Mod V2". One of the files that I need to install has the following format :

includes/modules/pages/contact_us/header_php.php

I think this file should be installed as an override and I should not overwrite the original file. Actually, I did try an override and placed it in the following folder:

includes/modules/YOUR_TEMPLATE/pages/contact_us/header_php.php

This didn't seem to work. I believe the correct placement should be the following:

includes/modules/YOUR_TEMPLATE/header_php.php

Just wondering if someone with experience can verify this for me. I did purchase the Zen Cart manual and have been pouring over it for the last few days. Its instructions and those that came with the manual haven't been explicit enough to assist me with the particular problem. So any help would be much appreciated.

19 Jul 2011, 2:16 AM
#2
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,603
Plugin Contributions:
0

Re: Override vs Overwrite for modules/pages files

Scroll down to the bottom of this page and check out the similar threads - I believe you will find your answer.

19 Jul 2011, 2:37 AM
#3
treadle avatar

treadle

New Zenner

Join Date:
Jun 2011
Posts:
13
Plugin Contributions:
0

Re: Override vs Overwrite for modules/pages files

Non-answers are frustrating. I will look, but I've used the search function, read through the manual, and spent quite a bit of time framing my question. If you've read a topic where my question could be answered, at least give a link. :censored:

Thank you for at least replying to my question. I do not mean to be rude.

19 Jul 2011, 2:43 AM
#4
drbyte avatar

drbyte

Sensei

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

Re: Override vs Overwrite for modules/pages files

Short answer: No. There are no overrides for /includes/modules/pages/ files/folders.

19 Jul 2011, 2:52 AM
#5
treadle avatar

treadle

New Zenner

Join Date:
Jun 2011
Posts:
13
Plugin Contributions:
0

Re: Override vs Overwrite for modules/pages files

Thank you Dr. Byte. I do have a copy of the original Zen Cart on my computer, so I have a copy of the original file. I will have to come up with a good system for keeping track of the Add On files that I install so I can put them back in place in case of an upgrade. I appreciate your time.

19 Jul 2011, 3:29 AM
#6
drbyte avatar

drbyte

Sensei

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

Re: Override vs Overwrite for modules/pages files

If you read the threads below, as Kim suggested, you'll see approaches others have taken to handle that.
Indeed I'm sure that's why she answered as she did, since reading those threads will give you the information I did as well as what you seek.

19 Jul 2011, 1:20 PM
#7
rstevenson avatar

rstevenson

Totally Zenned

Join Date:
Nov 2006
Location:
Dartmouth, NS Canada
Posts:
2,400
Plugin Contributions:
0

Re: Override vs Overwrite for modules/pages files

It's also true, though puzzling, that the "engine" that produces the Similar Threads links below is better at finding related threads than the search function in the forum. Perhaps this is because the auto-search that finds those Similar Threads is using all of the text in your post rather than just the few terms you'd be likely to use in a search. More than once I've posted a question only to find the answer under Similar Threads, even though I searched for it myself before asking, as you did.

Rob

19 Jul 2011, 4:21 PM
#8
treadle avatar

treadle

New Zenner

Join Date:
Jun 2011
Posts:
13
Plugin Contributions:
0

Re: Override vs Overwrite for modules/pages files

Thank you rtstevenson. And my sincere apologies to Kim. I completely missed the box at the bottom of this page titled "Similar Threads". Now that I now to look for it, I'm sure it will help me quite a bit in the future.

I thought Kim was telling me to go back to the main page and look for other threads, rather than at the bottom of THIS page. Knowing that threads will move up and down as they are answered, I thought it was an inconsiderate response and was not helpful. I'm eating crow now. :yuck:

Setting up this website for my wife is my nighttime job, and although I thoroughly enjoy learning new information, it does get frustrating trying to find the right answers with the overwhelming amount of information that is available. I learned something new thanks to rtstevenson and wish I had understood what Kim tried telling me earlier.

Again thanks to all for your help.