Zen Cart Logo
Forums / Code Collaboration / Table name defines not found

Table name defines not found

Views: 6,526

Results 1 to 2 of 2
26 Mar 2019, 20:48
#1
dave224 avatar

dave224

Zen Follower

Join Date:
Jun 2012
Posts:
481
Plugin Contributions:
0

Table name defines not found

I have a few extra database tables for some custom code. In order to move as much custom code as possible from out-of-the-box Zen Cart files, I moved the defines for the custom table names out of the core file (includes/database_tables.php) and into a separate file in includes/extra_datafiles/my_defines.php. Now admin queries fail because the custom table names are not defined. Why? How can I keep these defines out of core code? Do I need to duplicate the my_defines.php file in admin/includes/extra_datafiles/? Still trying to integrate my code into zc v1.5.6a. PHP v 7.1.x. :(

27 Mar 2019, 05:44
#2
design75 avatar

design75

Totally Zenned

Join Date:
Dec 2009
Location:
Amersfoort, The Netherlands
Posts:
2,862
Plugin Contributions:
5

Re: Table name defines not found

You can create a new file in YOUR_ADMIN/includes/extra_datafiles/my_defines.php, and put the next line in it

<?php
include DIR_FS_CATALOG . '/extra_datafiles/my_defines.php ;