- Create a
cleanup
directory in/modules
and navigate to it$ cd /modules/cleanup
- Pull the repo into the current directory
$ git clone [email protected]:GreatPotato/ls-module-cleanup.git .
- Login to the backend of LemonStand and configure your options (Settings > System > Clean-up)
- Create a cron job (once an hour works well) that loads http://yoursite.com/cleanup E.g.
0 * * * * wget http://yoursite.com/cleanup
Add the following to your config.php to enable logging of deleted orders
$CONFIG['TRACE_LOG']['CLEANUP'] = PATH_APP.'/logs/cleanup.txt';