Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / why is this not overriding?

why is this not overriding?

Locked

Views: 1,810

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
22 Nov 2006, 7:59 PM
#1
recordshow avatar

recordshow

New Zenner

Join Date:
Sep 2005
Posts:
79
Plugin Contributions:
0

why is this not overriding?

I am under the understanding that I am supposed to make a custom_template folder wherever I see a "classic" folder correct? Then if I make changes to .php files I am supposed to copy them into the custom_template folder right?

I'm asking because making changes to:
store/includes/custom_template/shipping/zones.php does nothing but making changes to: store/includes/modules/shipping/zones.php does something.

So why is it still reading the core file when I made the override and set it in the admin etc.. Is my path wrong?

Please help.

22 Nov 2006, 8:12 PM
#2
pixxi avatar

pixxi

Totally Zenned

Join Date:
Jan 2004
Location:
UK
Posts:
1,065
Plugin Contributions:
1

Re: why is this not overriding?

store/includes/modules/shipping/ doesn't have a 'classic' folder in it - and so it isn't an override-able folder. :smile:

23 Nov 2006, 12:38 AM
#3
kobra avatar

kobra

Black Belt

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

Re: why is this not overriding?

custom_template folders are created at the locations where the classic folder is.

What you attempted to do is create a shipping folder fully outside of whare it exists. If there was a a classic folder under shipping...this is where the override folder would be created.

23 Nov 2006, 1:30 AM
#4
website_rob avatar

website_rob

Inactive

Join Date:
Oct 2006
Location:
Alberta, Canada
Posts:
4,572
Plugin Contributions:
0

Re: why is this not overriding?

This might work:
/includes/modules/custom/shipping/zones.php

Have similar settings for other functions.

23 Nov 2006, 11:26 AM
#5
kobra avatar

kobra

Black Belt

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

Re: why is this not overriding?

Just a Post Script to what website Rob suggested:

As there is not a "classic" folder inside of "shipping" these are not available to override...

I suggest that you make a copy, rename the orig with the extention .orig; make your edits to the copy and load to the original location...

Keep a log of these core edits so that prior to an upgrade you can preserve any file that also has a .orig copy there.