I don't get this edit (which I had not seen).
if (!defined('DIR_FS_CATALOG')) include ('includes/defined_paths.php');//from Zen Cart 1.55
DIR_FS_CATALOG is defined in configure.php so is ALWAYS defined at this point irrespective of the Zen Cart version: defined_paths will never get loaded and so the Apsona page will not work.
So something needs to be tested for, that existed in configure 154 and not 155, such as DIR_WS_ADMIN:
PHP Code:
if (!defined('DIR_WS_ADMIN')) include ('includes/defined_paths.php');//from Zen Cart 1.55
So to recap, in apsona_svc.php I have:
PHP Code:
if (file_exists('includes/local/configure.php')) {
include ('includes/local/configure.php');}
else {
include ('includes/configure.php');}
if (!defined('DIR_WS_ADMIN')) include ('includes/defined_paths.php');//from Zen Cart 1.55
require (DIR_FS_CATALOG . DIR_WS_INCLUDES . 'database_tables.php');
require ('apsona_config.php');
require ('apsona_functions.php');
I also do not agree with putting the DIR_WS_ADMIN in configure.php.
This seems to be as sticking plaster approach as this will allow other mods that rely on this to continue to work, instead of updating them to work with the ZC155 vanilla code.
I think mod code should be self contained and not need bits added to core code to make them work wherever possible.
Bookmarks