One big change with OpenCart 4.0 is the requirement of changing your admin folder name, so I'm making the following changes to the OpenCart version of vQmod
1. For the vQmod installer, I'm going to change it to allow entering of the admin folder name instead of just assuming "admin" (See attachment)
2. Since vQmod loads after config.php, we can pre-populate the opencart version of the pathReplaces.php file with this code to automatically detect the admin folder name change so that general vqmod references to "admin/" will automatically map to "your_custom_admin/" without needing to manually alter this file.
Code: Select all
if (defined('DIR_CATALOG')) {
$replaces[] = array('~^admin\b~', basename(DIR_APPLICATION));
}
Looks like the folder structure of opencart changes extensively with this release so most if not all vqmod scripts will need to be updated from 3.x