Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@ When done, you should see the following files on your server
vqmod/xml/vqmod_opencart.xml
vqmod/install/index.php

4. Run the installer with https:/yourstore.com/vqmod/install
4. Run the installer with https:/yourstore.com/vqmod/install

18 changes: 18 additions & 0 deletions pathReplaces.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?php

/**
* File for path replacements in xml paths. Examples:
*
* $replaces[] = array('~^admin\b~', 'admin123'); // This replaces the admin folder name for use when admin folder's renamed
* $replaces[] = array('~\btheme/default\b~', 'theme/my-theme-name'); // Theme name replace to apply mods to your theme
* $extraMods[] = 'folder/vqmod/*.xml';
*
* Place your replaces between the START and END lines below
**/


// VQMODDED START REPLACES //
if (defined('DIR_CATALOG')) { $replaces[] = array('~^admin\b~', basename(DIR_APPLICATION)); }
if (defined('DIR_EXTENSION')) { $extraMods[] = DIR_EXTENSION . '*/vqmod/*.xml'; }

// END REPLACES //