Zen Cart Logo
Forums / General Questions / overriding extra_datafiles file deifnintions

overriding extra_datafiles file deifnintions

Views: 445

Results 1 to 3 of 3
27 Aug 2015, 4:25 PM
#1
tifischer avatar

tifischer

New Zenner

Join Date:
Apr 2013
Location:
Allen, TX
Posts:
34
Plugin Contributions:
0

overriding extra_datafiles file deifnintions

I wanted to modify a file definition by creating an override. I added the new filenames.php with the new definition for product_listing.php in the extra_datafiles folder. However, the new file definition is only read if I comment out the original file definition in the includes/filenames.php file. How do I make it so that the extra_datafiles definitions will override the other definitions so that I do not have to modify the original filenames.php file to change a definition?

Blessings,
Tiffany

27 Aug 2015, 6:29 PM
#2
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,107
Plugin Contributions:
56

Re: overriding extra_datafiles file deifnintions

Put the override change into the /extra_configures folder. That folder is loaded prior to the auto_load items which is where the /includes/filenames.php file is loaded.

28 Aug 2015, 1:41 PM
#3
tifischer avatar

tifischer

New Zenner

Join Date:
Apr 2013
Location:
Allen, TX
Posts:
34
Plugin Contributions:
0

Re: overriding extra_datafiles file deifnintions

Bless you! That totally worked.