Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Override Directory for /includes Root ?

Override Directory for /includes Root ?

Locked

Views: 1,229

Results 1 to 2 of 2
This thread is locked. New replies are disabled.
15 Mar 2009, 3:48 PM
#1
dmm2020 avatar

dmm2020

Zen Follower

Join Date:
Feb 2009
Posts:
157
Plugin Contributions:
0

Override Directory for /includes Root ?

Short question. I am about to modify some files to verify correct email addresses.

What is the correct path to use for an override directory to the /includes root directory?

Specifically, the file that I am going to modify is /includes/form_check.js.

15 Mar 2009, 4:01 PM
#2
kobra avatar

kobra

Black Belt

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

Re: Override Directory for /includes Root ?

The override convention is "where ever there exists a "classic" dir, the files at that level can be overridden"

So as there is no "classic" dir at the /includes level, those files will not respect the override system and are not overrideable.

So you will have to edit the core file in this instance. I normally rename any core file that is to be altered and in your case this would be form_check.js.php to form_check.js.orig. I also include in every edited file in the commented area at the top a tag that can be grepped for later when one needs to find files altered and in my case I include the term "kobra" as it is unique. This is mainly to locate altered files quickly when and if an upgrade is to be performed.